Method: Bundler::RemoteSpecification#__swap__
- Defined in:
- lib/bundler/remote_specification.rb
#__swap__(spec) ⇒ Object
Because Rubyforge cannot be trusted to provide valid specifications once the remote gem is downloaded, the backend specification will be swapped out.
54 55 56 57 58 59 |
# File 'lib/bundler/remote_specification.rb', line 54 def __swap__(spec) raise APIResponseInvalidDependenciesError unless spec.dependencies.all? {|d| d.is_a?(Gem::Dependency) } SharedHelpers.ensure_same_dependencies(self, dependencies, spec.dependencies) @_remote_specification = spec end |