forked from saurabh/personal-journal
Update personal_journal.gemspec,add patchfile module
This commit is contained in:
parent
e1293a4e7e
commit
8c2971f2e3
|
@ -17,6 +17,16 @@ all_template.each do |folder|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
system ('rm -r '+app_path + '/modules/')
|
system ('rm -r '+app_path + '/modules/')
|
||||||
|
filedata = File.read(ENV['PWD']+"/built_in_extensions.rb")
|
||||||
|
exist_str = "gem 'patchfile', git: 'http://gitlab.tp.rulingcom.com/chiu/patch_file.git'"
|
||||||
|
if filedata.include? exist_str
|
||||||
|
puts "patchfile exist"
|
||||||
|
else
|
||||||
|
@file = ENV['PWD']+"/built_in_extensions.rb"
|
||||||
|
open(@file, 'a') { |f|
|
||||||
|
f.puts exist_str
|
||||||
|
}
|
||||||
|
end
|
||||||
Gem::Specification.new do |s|
|
Gem::Specification.new do |s|
|
||||||
s.name = "personal_journal"
|
s.name = "personal_journal"
|
||||||
s.version = PersonalJournal::VERSION
|
s.version = PersonalJournal::VERSION
|
||||||
|
|
Loading…
Reference in New Issue