Use Gem::Package#build
instead of the class method for old baseruby
This commit is contained in:
parent
289080e4d8
commit
37b6d98840
Notes:
git
2023-02-21 17:08:20 +00:00
@ -23,7 +23,9 @@ module BundledGem
|
|||||||
abort "Unexpected version #{spec.version}" unless spec.version == Gem::Version.new(version)
|
abort "Unexpected version #{spec.version}" unless spec.version == Gem::Version.new(version)
|
||||||
output = File.join(outdir, spec.file_name)
|
output = File.join(outdir, spec.file_name)
|
||||||
FileUtils.rm_rf(output)
|
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
|
||||||
end
|
end
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user