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)