summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-20 04:03:07 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-12-20 04:03:07 (GMT)
commit5a846eb65766c445597cdf8ea61b109e3adaaa6a (patch)
treeb30fe8a18bd122da259656758b54c7d5f9459bc1 /tool
parent4df4b48455636eb196ee4d4df2067df5c97bb021 (diff)
rbinstall.rb: purge %x[git ls-files] too
[Bug #13423] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@66461 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-xtool/rbinstall.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb
index 0e2d61d..3338f1e 100755
--- a/tool/rbinstall.rb
+++ b/tool/rbinstall.rb
@@ -743,6 +743,7 @@ def load_gemspec(file)
file = File.realpath(file)
code = File.read(file, encoding: "utf-8:-")
code.gsub!(/`git.*?`/m, '""')
+ code.gsub!(/%x\[git.*?\]/m, '""')
spec = eval(code, binding, file)
unless Gem::Specification === spec
raise TypeError, "[#{file}] isn't a Gem::Specification (#{spec.class} instead)."