summaryrefslogtreecommitdiff
path: root/tool
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-29 07:04:29 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-09-29 07:04:29 +0000
commita0ff2a6aaf99a4f542909a58603338c449084b00 (patch)
tree1d989a3f573528ba1f01cf37aeb1ab58b272cbb7 /tool
parentb8c23ce39e20bfd2cc51f2b34b6380d2c77d4ba9 (diff)
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-xtool/rbinstall.rb1
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