Maintenance Ruby 3.4 gets fixes, but no new features. Switch to Ruby 4.0 →
instance method
Gem::Source::Git#specs
specs
lib/rubygems/source/git.rb
View on GitHub ↗
# File tmp/rubies/ruby-3.4.1/lib/rubygems/source/git.rb, line 201
def specs
checkout
return [] unless install_dir
Dir.chdir install_dir do
Dir["{,*,*/*}.gemspec"].filter_map do |spec_file|
directory = File.dirname spec_file
file = File.basename spec_file
Dir.chdir directory do
spec = Gem::Specification.load file
if spec
spec.base_dir = base_dir
spec.extension_dir =
File.join base_dir, "extensions", Gem::Platform.local.to_s,
Gem.extension_api_version, "#{name}-#{dir_shortref}"
spec.full_gem_path = File.dirname spec.loaded_from if spec
end
spec
end
end
end
end
Loads all gemspecs in the repository