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
This commit is contained in:
nobu 2018-09-29 07:04:29 +00:00
Родитель b8c23ce39e
Коммит a0ff2a6aaf
1 изменённых файлов: 1 добавлений и 0 удалений

Просмотреть файл

@ -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