End of Life Ruby 3.1 has reached end of life and gets no more fixes. Switch to Ruby 4.0 →
instance method
Gem::Specification#has_conflicts?
has_conflicts?
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.1.3/lib/rubygems/specification.rb, line 1694
def has_conflicts?
return true unless Gem.env_requirement(name).satisfied_by?(version)
self.dependencies.any? do |dep|
if dep.runtime?
spec = Gem.loaded_specs[dep.name]
spec && !spec.satisfies_requirement?(dep)
else
false
end
end
end
Return true if there are possible conflicts against the currently loaded specs.
See also
#gems_dir
#initialize_copy
#full_name
#invalidate_memoized_attributes
also in
4.1 · 4.0 · 3.4 · 3.3 · 3.2 · 3.0