diff options
author | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-02-21 23:24:24 +0900 |
---|---|---|
committer | Nobuyoshi Nakada <nobu@ruby-lang.org> | 2023-02-22 02:07:59 +0900 |
commit | 37b6d988404a280da4a5d7f9f181d0565f7e91fc (patch) | |
tree | b46d1093bf7b7f3a0a72708f463d4e849d7b1c1b | |
parent | 289080e4d86c70f8231a74a78892b2db65a86e9a (diff) | |
download | ruby-37b6d988404a280da4a5d7f9f181d0565f7e91fc.tar.gz |
Use `Gem::Package#build` instead of the class method for old baseruby
-rw-r--r-- | tool/lib/bundled_gem.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/tool/lib/bundled_gem.rb b/tool/lib/bundled_gem.rb index 81549acbdf..7fdaaf816f 100644 --- a/tool/lib/bundled_gem.rb +++ b/tool/lib/bundled_gem.rb @@ -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 |