summaryrefslogtreecommitdiff
path: root/tool/lib/bundled_gem.rb
diff options
context:
space:
mode:
authorNobuyoshi Nakada <[email protected]>2023-01-18 20:36:31 +0900
committerNobuyoshi Nakada <[email protected]>2023-01-26 12:50:39 +0900
commit17f5631c6ea118b9ce0e8776dc50c7b1dcdaf596 ()
tree93cc91fcdd336690d7d7e3862fa02415f4f4cce1 /tool/lib/bundled_gem.rb
parent78fcc9847a9db6d42c8c263154ec05903a370b6b (diff)
[Bug #19340] Fix bundle gems with test revision
Build temporary gem package from cloned repository if test revision is set.
Notes: Merged: https://.com/ruby/ruby/pull/7146
-rw-r--r--tool/lib/bundled_gem.rb13
1 files changed, 13 insertions, 0 deletions
@@ -14,6 +14,19 @@ module BundledGem
puts "Unpacked #{file}"
end
def copy(path, *rest)
path, n = File.split(path)
spec = Dir.chdir(path) {Gem::Specification.load(n)} or raise "Cannot load #{path}"