aboutsummaryrefslogtreecommitdiffstats
path: root/lib/rubygems/commands/query_command.rb
diff options
context:
space:
mode:
Diffstat (limited to 'lib/rubygems/commands/query_command.rb')
-rw-r--r--lib/rubygems/commands/query_command.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/rubygems/commands/query_command.rb b/lib/rubygems/commands/query_command.rb
index fb2d6a53c8..f25d120b88 100644
--- a/lib/rubygems/commands/query_command.rb
+++ b/lib/rubygems/commands/query_command.rb
@@ -259,7 +259,7 @@ is too hard to use.
if options[:domain] == :remote || specs.all? { |spec| spec.is_a? Gem::Source }
version
else
- spec = specs.select { |spec| spec.version == version }
+ spec = specs.select { |s| s.version == version }
if spec.first.default_gem?
"default: #{version}"
else