Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
class method
Gem::Specification.find_by_path
find_by_path(path)
lib/rubygems/specification.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems/specification.rb, line 971
def self.find_by_path(path)
specification_record.find_by_path(path)
end
Return the best specification that contains the file matching path.
See also
.find_by_name
.find_inactive_by_path
.find_by_full_name
.find_in_unresolved
also in
4.1 · 4.0 · 3.3 · 3.2 · 3.1 · 3.0