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
This commit is contained in:
parent
4df4b48455
commit
5a846eb657
@ -743,6 +743,7 @@ def load_gemspec(file)
|
|||||||
file = File.realpath(file)
|
file = File.realpath(file)
|
||||||
code = File.read(file, encoding: "utf-8:-")
|
code = File.read(file, encoding: "utf-8:-")
|
||||||
code.gsub!(/`git.*?`/m, '""')
|
code.gsub!(/`git.*?`/m, '""')
|
||||||
|
code.gsub!(/%x\[git.*?\]/m, '""')
|
||||||
spec = eval(code, binding, file)
|
spec = eval(code, binding, file)
|
||||||
unless Gem::Specification === spec
|
unless Gem::Specification === spec
|
||||||
raise TypeError, "[#{file}] isn't a Gem::Specification (#{spec.class} instead)."
|
raise TypeError, "[#{file}] isn't a Gem::Specification (#{spec.class} instead)."
|
||||||
|
Loading…
x
Reference in New Issue
Block a user