diff --git a/patchfile.gemspec b/patchfile.gemspec index abf8deb..7cef338 100644 --- a/patchfile.gemspec +++ b/patchfile.gemspec @@ -48,7 +48,7 @@ all_template.each do |folder| texts = File.read(filename) new_texts = texts.gsub(check_text,change_text) if new_texts != texts - File.open(folder+filename,'w') do |f| + File.open(filename,'w') do |f| f.write new_texts end end