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