1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Resolved the file path of gemspec for ruby core repository

This commit is contained in:
Hiroshi SHIBATA 2020-05-11 17:26:43 +09:00
parent cf9619084b
commit fcb5a9ee46
Notes: git 2020-05-13 07:55:14 +09:00
2 changed files with 5 additions and 1 deletions

View file

@ -330,7 +330,7 @@ module Spec
replace_version_file(version, dir: build_path) # rubocop:disable Style/HashSyntax
gem_command! "build bundler.gemspec", :dir => build_path
gem_command! "build #{shipped_gemspec}", :dir => build_path
yield(bundler_path)
ensure

View file

@ -37,6 +37,10 @@ module Spec
@tracked_files ||= sys_exec(ruby_core? ? "git ls-files -z -- lib/bundler lib/bundler.rb spec/bundler man/bundler*" : "git ls-files -z", :dir => root).split("\x0")
end
def shipped_gemspec
@shipped_gemspec ||= ruby_core? ? "lib/bundler/bundler.gemspec" : "bundler.gemspec"
end
def shipped_files
@shipped_files ||= sys_exec(ruby_core? ? "git ls-files -z -- lib/bundler lib/bundler.rb man/bundler* libexec/bundle*" : "git ls-files -z -- lib man exe CHANGELOG.md LICENSE.md README.md bundler.gemspec", :dir => root).split("\x0")
end