From 020ffce16c3cd8ca018c188e10d7e009b05c4f69 Mon Sep 17 00:00:00 2001 From: chiu Date: Tue, 25 Feb 2020 23:35:34 +0800 Subject: [PATCH] write to file --- announcement.gemspec | 3 +++ 1 file changed, 3 insertions(+) diff --git a/announcement.gemspec b/announcement.gemspec index c662cf8..8dc86a5 100644 --- a/announcement.gemspec +++ b/announcement.gemspec @@ -38,6 +38,9 @@ all_template.each do |folder| if !texts.include? "$theme-white" texts = "$theme-white: #fff;\n" + texts end + File.open(filename,'w') do |f| + f.write texts + end tp_text = File.read(folder+'assets/stylesheets/template/template.scss') rescue '' tp_last_text = tp_text tp_text.scan(/@import.*http.*;/).each do |pat|