From 8c2971f2e3d214d63aeedcc495bd37debc40c6df Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 1 Oct 2019 00:26:14 +0800 Subject: [PATCH] Update personal_journal.gemspec,add patchfile module --- personal_journal.gemspec | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/personal_journal.gemspec b/personal_journal.gemspec index 92177d9..2d11fdf 100644 --- a/personal_journal.gemspec +++ b/personal_journal.gemspec @@ -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