Use Gem::Package#build instead of the class method for old baseruby

This commit is contained in:
Nobuyoshi Nakada 2023-02-21 23:24:24 +09:00
parent 289080e4d8
commit 37b6d98840
Notes: git 2023-02-21 17:08:20 +00:00

View File

@ -23,7 +23,9 @@ module BundledGem
abort "Unexpected version #{spec.version}" unless spec.version == Gem::Version.new(version)
output = File.join(outdir, spec.file_name)
FileUtils.rm_rf(output)
Gem::Package.build(spec, validation == false, validation, output)
package = Gem::Package.new(output)
package.spec = spec
package.build(validation == false)
end
end