summaryrefslogtreecommitdiff
path: root/lib/rubygems/commands/specification_command.rb
diff options
context:
space:
mode:
-rw-r--r--lib/rubygems/commands/specification_command.rb4
1 files changed, 2 insertions, 2 deletions
@@ -119,7 +119,7 @@ Specific fields in the specification can be extracted in YAML format:
dep.prerelease = options[:prerelease]
found, _ = Gem::SpecFetcher.fetcher.spec_for_dependency dep
- specs.push(*found.map { |spec,| spec })
end
if specs.empty?
@@ -128,7 +128,7 @@ Specific fields in the specification can be extracted in YAML format:
end
unless options[:all]
- specs = [specs.max_by { |s| s.version }]
end
specs.each do |s|