diff --git a/patchfile.gemspec b/patchfile.gemspec index ee6980e..abf8deb 100644 --- a/patchfile.gemspec +++ b/patchfile.gemspec @@ -32,12 +32,11 @@ f.write(@file_text) f.close puts "finish change patchfile in #{ENV['PWD']}/app/views/shared" check_text = ' {{site_name}}' -change_text = ' - - {{site_name}}' +change_text = ' {{site_name}}' all_template.each do |folder| if !folder.include?('mobile') begin + puts "changing header.html.erb in #{folder}/home/header.html.erb" if folder.split('/')[-1] != 'mobile' unity_text = File.read(folder+'home/header.html.erb') rescue '' if unity_text.split(/\n/).join.strip.empty? @@ -55,7 +54,7 @@ all_template.each do |folder| end end rescue => e - puts "#{e.inspect}\nnot found #{folder}assets/stylesheets/template/base/_variables.scss" + puts "#{e.inspect}\nnot found #{folder}home/header.html.erb" end end end