Method: Gem::Resolver::APISpecification#spec
- Defined in:
- lib/rubygems/resolver/api_specification.rb
#spec ⇒ Object
Fetches a Gem::Specification for this APISpecification.
89 90 91 92 93 94 95 96 97 98 99 100 |
# File 'lib/rubygems/resolver/api_specification.rb', line 89 def spec # :nodoc: @spec ||= begin tuple = Gem::NameTuple.new @name, @version, @platform source.fetch_spec tuple rescue Gem::RemoteFetcher::FetchError raise if @original_platform == @platform tuple = Gem::NameTuple.new @name, @version, @original_platform source.fetch_spec tuple end end |