summaryrefslogtreecommitdiff
path: root/lib/bundler/endpoint_specification.rb
diff options
context:
space:
mode:
authorSamuel Giddins <segiddins@segiddins.me>2017-02-13 17:34:47 -0600
committerSamuel Giddins <segiddins@segiddins.me>2017-02-13 17:34:47 -0600
commit573d6f8ac64d604d71e78933117716b4ca77833f (patch)
tree87068e2ba6b1c79f602c08051405638fd97cf888 /lib/bundler/endpoint_specification.rb
parent986a2ea581edfd70cd1a2a6936c981fd4c92f6d0 (diff)
downloadbundler-573d6f8ac64d604d71e78933117716b4ca77833f.tar.gz
Compare deps in a manner compatible with old RGs
Diffstat (limited to 'lib/bundler/endpoint_specification.rb')
-rw-r--r--lib/bundler/endpoint_specification.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/endpoint_specification.rb b/lib/bundler/endpoint_specification.rb
index 65f6b6fbcf..5e14f03265 100644
--- a/lib/bundler/endpoint_specification.rb
+++ b/lib/bundler/endpoint_specification.rb
@@ -91,9 +91,9 @@ module Bundler
end
def __swap__(spec)
- without_type = proc {|d| Gem::Dependency.new(d.name, d.requirements_list) }
+ without_type = proc {|d| Gem::Dependency.new(d.name, d.requirements_list.sort) }
if (extra_deps = spec.runtime_dependencies.map(&without_type).-(dependencies.map(&without_type))) && extra_deps.any?
- Bundler.ui.debug "#{full_name} from #{remote} has corrupted API dependencies"
+ Bundler.ui.debug "#{full_name} from #{remote} has corrupted API dependencies (API returned #{dependencies}, real spec has (#{spec.runtime_dependencies}))"
raise APIResponseMismatchError,
"Downloading #{full_name} revealed dependencies not in the API (#{extra_deps.map(&:to_s).join(", ")})." \
"\nInstalling with `--full-index` should fix the problem."