| Class | Bundler::RemoteSpecification |
| In: |
lib/bundler/remote_specification.rb
|
| Parent: | Object |
Represents a lazily loaded gem specification, where the full specification is on the source server in rubygems’ "quick" index. The proxy object is to be seeded with what we‘re given from the source‘s abbreviated index - the full specification will only be fetched when necessary.
| name | [R] | |
| platform | [R] | |
| remote | [RW] | |
| source | [RW] | |
| version | [R] |
Compare this specification against another object. Using sort_obj is compatible with Gem::Specification and other Bundler or RubyGems objects. Otherwise, use the default Object comparison.
Because Rubyforge cannot be trusted to provide valid specifications once the remote gem is downloaded, the backend specification will be swapped out.
Needed before installs, since the arch matters then and quick specs don‘t bother to include the arch in the platform string
Create a delegate used for sorting. This strategy is copied from RubyGems 2.23 and ensures that Bundler‘s specifications can be compared and sorted with RubyGems’ own specifications.
@see #<=> @see Gem::Specification#sort_obj
@return [Array] an object you can use to compare and sort this
specification against other specifications