From da1eed7786f0473e324829613d7edaf8a3fe6c8f Mon Sep 17 00:00:00 2001 From: BOHUNG Date: Mon, 13 Jan 2020 19:19:11 +0800 Subject: [PATCH] fix --- cancerpredict.gemspec | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/cancerpredict.gemspec b/cancerpredict.gemspec index 4273662..ca6de2f 100644 --- a/cancerpredict.gemspec +++ b/cancerpredict.gemspec @@ -33,10 +33,11 @@ all_template.each do |folder| texts = File.read(folder+'partial/_head.html.erb') insert_flag = 0 if texts.include?(check_texts) - texts.gsub(check_texts,edit_texts) + texts = texts.gsub(check_texts,edit_texts) insert_flag = 1 end if insert_flag == 1 + puts 'editing _head.html.erb' f = File.open(folder+'partial/_head.html.erb','w') f.write(texts) f.close