Skip to content

Commit

Permalink
Allow to use development version of bundled gems for packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
hsbt committed May 9, 2023
1 parent bb75e83 commit 59646e8
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tool/lib/bundled_gem.rb
Expand Up @@ -12,6 +12,12 @@ def unpack(file, *rest)
pkg = Gem::Package.new(file)
prepare_test(pkg.spec, *rest) {|dir| pkg.extract_files(dir)}
puts "Unpacked #{file}"
rescue Gem::Package::FormatError, Errno::ENOENT
puts "Try with hash version of bundled gems instead of #{file}. We don't use this gem with release version of Ruby."
if file =~ /^gems\/(\w+)-/
file = Dir.glob("gems/#{$1}-*.gem").first
end
retry
end

def build(gemspec, version, outdir = ".", validation: true)
Expand Down

0 comments on commit 59646e8

Please sign in to comment.