From 1f6f65f6514e681e1d048f54a55cdb53b2815a5d Mon Sep 17 00:00:00 2001 From: chiu Date: Wed, 21 Aug 2019 10:30:07 +0800 Subject: [PATCH] Update personal_journal.gemspec --- personal_journal.gemspec | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/personal_journal.gemspec b/personal_journal.gemspec index be865ea..5a67155 100644 --- a/personal_journal.gemspec +++ b/personal_journal.gemspec @@ -2,8 +2,7 @@ $:.push File.expand_path("../lib", __FILE__) # Maintain your gem's version: require "personal_journal/version" -require File.expand_path('../application', __FILE__) -d = Dir.glob("#{Rails.root}/app/templates/*").collect{|temp| temp.split('/').last}-['mobile'] +d = Dir.entries('/app/templates/').select {|entry| File.directory? File.join('/your_dir',entry) and !(entry =='.' || entry == '..') } puts d # Describe your gem and declare its dependencies: Gem::Specification.new do |s|