diff options
Diffstat (limited to 'lib/rubygems/commands/specification_command.rb')
-rw-r--r-- | lib/rubygems/commands/specification_command.rb | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/lib/rubygems/commands/specification_command.rb b/lib/rubygems/commands/specification_command.rb index e4a8afab21..3fddaaaf30 100644 --- a/lib/rubygems/commands/specification_command.rb +++ b/lib/rubygems/commands/specification_command.rb @@ -126,6 +126,12 @@ Specific fields in the specification can be extracted in YAML format: terminate_interaction 1 end + platform = get_platform_from_requirements(options) + + if platform + specs = specs.select{|s| s.platform.to_s == platform } + end + unless options[:all] specs = [specs.max_by {|s| s.version }] end |