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|