From 72203371c347239cd84a51ea8f8221ed9e5340b1 Mon Sep 17 00:00:00 2001 From: chiu Date: Mon, 10 Aug 2020 14:46:29 +0800 Subject: [PATCH] text --- patchfile.gemspec | 1 + 1 file changed, 1 insertion(+) diff --git a/patchfile.gemspec b/patchfile.gemspec index 47d4759..02ba81a 100644 --- a/patchfile.gemspec +++ b/patchfile.gemspec @@ -46,6 +46,7 @@ all_template.each do |folder| filename = folder+'partial/_head.html.erb' texts = File.read(filename).force_encoding('UTF-8') new_texts = texts.gsub(/<.*javascript_include_tag.*bootstrap.*>/,"<%= javascript_include_tag \"bootstrap.min\"%>") + puts ['include?',new_texts.include?('jquery_prefix')] if new_texts.include?('jquery_prefix') new_texts = new_texts.gsub(/<.*javascript_include_tag.*\/jquery\.min.*>|<.*javascript_include_tag.*\/jquery-1\.11\.0\.min.*>/,"<%= javascript_include_tag \"jquery.min\"%>") else