Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Requirement#specific?
specific?
lib/rubygems/requirement.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/requirement.rb, line 254
def specific?
return true if @requirements.length > 1 # GIGO, > 1, > 2 is silly
!%w[> >=].include? @requirements.first.first # grab the operator
end
True if the requirement will not always match the latest version.
See also
#_sorted_requirements
#_tilde_requirements
#satisfied_by?
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0