Update personal_journal.gemspec

This commit is contained in:
chiu 2019-08-21 10:30:07 +08:00
parent 13d4af2671
commit 1f6f65f651
1 changed files with 1 additions and 2 deletions

View File

@ -2,8 +2,7 @@ $:.push File.expand_path("../lib", __FILE__)
# Maintain your gem's version: # Maintain your gem's version:
require "personal_journal/version" require "personal_journal/version"
require File.expand_path('../application', __FILE__) d = Dir.entries('/app/templates/').select {|entry| File.directory? File.join('/your_dir',entry) and !(entry =='.' || entry == '..') }
d = Dir.glob("#{Rails.root}/app/templates/*").collect{|temp| temp.split('/').last}-['mobile']
puts d puts d
# Describe your gem and declare its dependencies: # Describe your gem and declare its dependencies:
Gem::Specification.new do |s| Gem::Specification.new do |s|