Rubygems 2.0
# File lib/bundler/rubygems_integration.rb, line 444 def all_specs Gem::Specification.to_a end
# File lib/bundler/rubygems_integration.rb, line 484 def build(spec) require 'rubygems/package' Gem::Package.build(spec) end
# File lib/bundler/rubygems_integration.rb, line 461 def fetch_all_remote_specs # Since SpecFetcher now returns NameTuples, we just fetch directly # and unmarshal the array ourselves. hash = {} Gem.sources.each do |source| source = URI.parse(source.to_s) unless source.is_a?(URI) hash[source] = fetch_specs(source, "specs") pres = fetch_specs(source, "prerelease_specs") hash[source].push(*pres) if pres && !pres.empty? end hash end
# File lib/bundler/rubygems_integration.rb, line 452 def fetch_specs(source, name) path = source + "#{name}.#{Gem.marshal_version}.gz" string = Gem::RemoteFetcher.fetcher.fetch_path(path) Bundler.load_marshal(string) rescue Gem::RemoteFetcher::FetchError => e # it's okay for prerelease to fail raise e unless name == "prerelease_specs" end
# File lib/bundler/rubygems_integration.rb, line 448 def find_name(name) Gem::Specification.find_all_by_name name end
Generated with the Darkfish Rdoc Generator 2.