Maintenance Ruby 3.3 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem::Specification.find_in_unresolved_tree
find_in_unresolved_tree(path)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.3.0/lib/rubygems/specification.rb, line 1079
def self.find_in_unresolved_tree(path)
unresolved_specs.each do |spec|
spec.traverse do |_from_spec, _dep, to_spec, trail|
if to_spec.has_conflicts? || to_spec.conficts_when_loaded_with?(trail)
:next
else
return trail.reverse if to_spec.contains_requirable_file? path
end
end
end
[]
end
Search through all unresolved deps and sub-dependencies and return specs that contain the file matching path.
See also
.find_in_unresolved
.from_yaml
.find_inactive_by_path
.gemspec_stubs_in
also in
4.1 · 4.0 · 3.4 · 3.2 · 3.1 · 3.0