End of Life Ruby 3.2 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem::PackageTask.new
new(gem_spec) { |self| ... }
lib/rubygems/package_task.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.2.0/lib/rubygems/package_task.rb, line 72
def initialize(gem_spec)
init gem_spec
yield self if block_given?
define if block_given?
end