Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem::Specification.add_spec
add_spec(spec)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems/specification.rb, line 858
def self.add_spec(spec)
specification_record.add_spec(spec)
end
Adds spec to the known specifications, keeping the collection properly sorted.