From 6b800842c4880cff5003bd7d58f351b5d3fe3969 Mon Sep 17 00:00:00 2001 From: BOHUNG Date: Wed, 1 Apr 2020 17:41:32 +0800 Subject: [PATCH] test --- patchfile.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patchfile.gemspec b/patchfile.gemspec index 2abcbf0..2706022 100644 --- a/patchfile.gemspec +++ b/patchfile.gemspec @@ -78,7 +78,6 @@ change_html_new = 'html.gsub("%7B%7Blogo_url_1%7D%7D",((site.site_logo_1.url.nil begin @file_text = File.read(ENV['PWD']+'/app/helpers/application_helper.rb') @f = File.open(ENV['PWD']+'/app/helpers/application_helper.rb','w') - puts @file_text if @file_text.include?(change_html_old) @file_text = @file_text.gsub(change_html_old,change_html_new) @f.write(@file_text) @@ -87,6 +86,7 @@ begin @file_text.insert(insert_index,change_html_new+"\n") @f.write(@file_text) end + puts @f.methods @f.close puts "finish change application_helper.rb in #{ENV['PWD']}/app/helpers/" rescue => e