Merge branch 'master' into 'master'

Update personal_journal.gemspec,add patchfile module

add patchfile module to built_in_extensions.rb

See merge request !3
This commit is contained in:
wmcheng 2019-10-01 10:54:21 +08:00
commit 295b6cbf0f
1 changed files with 10 additions and 0 deletions

View File

@ -17,6 +17,16 @@ all_template.each do |folder|
end
end
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|
s.name = "personal_journal"
s.version = PersonalJournal::VERSION