diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-29 07:04:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-09-29 07:04:29 +0000 |
commit | a0ff2a6aaf99a4f542909a58603338c449084b00 (patch) | |
tree | 1d989a3f573528ba1f01cf37aeb1ab58b272cbb7 /tool | |
parent | b8c23ce39e20bfd2cc51f2b34b6380d2c77d4ba9 (diff) | |
download | ruby-a0ff2a6aaf99a4f542909a58603338c449084b00.tar.gz |
Expand gemspec path to the real path
`make install` has loaded forwardable.rb twice, from
forwardable.gemspec and prime.gemspec.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64882 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'tool')
-rwxr-xr-x | tool/rbinstall.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tool/rbinstall.rb b/tool/rbinstall.rb index 2584ac1e91..a3361e69a4 100755 --- a/tool/rbinstall.rb +++ b/tool/rbinstall.rb @@ -726,6 +726,7 @@ install?(:ext, :arch, :gem, :'default-gems', :'default-gems-arch') do end def load_gemspec(file) + file = File.realpath(file) code = File.read(file, encoding: "utf-8:-") code.gsub!(/`git.*?`/m, '""') begin |