End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
class method
Gem::Specification.remove_spec
remove_spec(spec)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/specification.rb, line 903
def self.remove_spec(spec)
_all.delete spec.to_spec
stubs.delete spec
(@@stubs_by_name[spec.name] || []).delete spec
end
Removes spec from the known specs.
See also
.outdated_and_latest_version
.required_attribute?
.outdated
.required_attributes
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2