From ca500a936e52be93f075ae558fc0d72a7708f0ff Mon Sep 17 00:00:00 2001 From: BOHUNG Date: Wed, 1 Apr 2020 17:36:00 +0800 Subject: [PATCH] test --- patchfile.gemspec | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patchfile.gemspec b/patchfile.gemspec index 79417f1..c515a89 100644 --- a/patchfile.gemspec +++ b/patchfile.gemspec @@ -81,7 +81,7 @@ begin if @file_text.include?(change_html_old) @file_text = @file_text.gsub(change_html_old,change_html_new) @f.write(@file_text) - elsif !@file_text.include?(change_html_old) && !@file_text.include?(change_html_new) + elsif (!@file_text.include?(change_html_old) && !@file_text.include?(change_html_new)) insert_index = @file_text.index('html.gsub("%7B%7Blogo_url%7D%7D"') @file_text.insert(insert_index,change_html_new+"\n") @f.write(@file_text)