diff --git a/announcement.gemspec b/announcement.gemspec index 96cc106..7d5183b 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -48,6 +48,11 @@ all_template.each do |folder| tp_last_text = tp_last_text.sub(pat,pat1) end end + if tp_last_text != tp_text + File.open(folder+'assets/stylesheets/template/template.scss','w') do |f| + f.write tp_last_text + end + end if texts.split(regex_pattern).count > 1 auto_save_text = texts.scan(regex_pattern).join('') File.open(folder+'assets/stylesheets/template/base/_autobackup.bak', 'a') do |file|