summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLucas Mazza <lucastmazza@gmail.com>2016-10-20 13:38:10 -0200
committerThe Bundler Bot <bot@bundler.io>2016-11-15 03:55:30 +0000
commit97c0dcc312509c3c8a9cb01817e5dda621bc02e2 (patch)
tree44d73fd942efd0d32a50a84fd931c4526719373c
parentaa9414e78f527ee2066d21783abb7d52a55f68a9 (diff)
downloadbundler-97c0dcc312509c3c8a9cb01817e5dda621bc02e2.tar.gz
Fix `outdated` listing regression from cc355865
Closes: #5171 Approved by: <try>
-rw-r--r--lib/bundler/cli/outdated.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/bundler/cli/outdated.rb b/lib/bundler/cli/outdated.rb
index 1d5b8e0242..a97cfeae4b 100644
--- a/lib/bundler/cli/outdated.rb
+++ b/lib/bundler/cli/outdated.rb
@@ -54,9 +54,9 @@ module Bundler
dependency = current_dependencies[current_spec.name]
if strict
- active_spec = definition.specs.detect {|spec| spec.name == current_spec.name && spec.platform == current_spec.platform }
+ active_spec = definition.specs.detect {|spec| spec.name == current_spec.name && spec.match_platform(current_spec.platform) }
else
- active_specs = definition.index[current_spec.name].select {|spec| spec.platform == current_spec.platform }.sort_by(&:version)
+ active_specs = definition.index[current_spec.name].select {|spec| spec.match_platform(current_spec.platform) }.sort_by(&:version)
if !current_spec.version.prerelease? && !options[:pre] && active_specs.size > 1
active_spec = active_specs.delete_if {|b| b.respond_to?(:version) && b.version.prerelease? }
end