From 6e09325680d3d74cd9c1dabcdc1f77dfd68f02b2 Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 25 Feb 2020 20:49:58 +0800 Subject: [PATCH] try --- announcement.gemspec | 5 +++++ 1 file changed, 5 insertions(+) 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|