specs()public
Loads all gemspecs in the repository
# File lib/rubygems/source/git.rb, line 197
def specs
checkout
return [] unless install_dir
Dir.chdir install_dir do
Dir['{,*,*/*}.gemspec'].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 then
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.compact
end
end Related methods
- Instance methods
- <=>
- ==
- base_dir
- cache
- checkout
- dir_shortref
- download
- install_dir
- pretty_print
- repo_cache_dir
- rev_parse
- specs
- uri_hash
- Class methods
- new