diff --git a/patchfile.gemspec b/patchfile.gemspec index 2706022..f772035 100644 --- a/patchfile.gemspec +++ b/patchfile.gemspec @@ -86,9 +86,9 @@ 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/" + puts @f.closed? rescue => e puts "Permission denied in #{ENV['PWD']}/app/helpers/application_helper.rb" @f.close