diff options
author | Samuel E. Giddins <segiddins@segiddins.me> | 2015-07-15 20:51:16 -0700 |
---|---|---|
committer | Samuel E. Giddins <segiddins@segiddins.me> | 2015-07-15 20:51:16 -0700 |
commit | af694073229af89af205d24ff449f51f74316a37 (patch) | |
tree | 5258cd3a3832bcc21eaa3249c99cdf410a8f9d0a /lib/bundler/cli/outdated.rb | |
parent | c85c0c9c642dcdccb7d769d7d9a56d51ad314915 (diff) | |
download | bundler-af694073229af89af205d24ff449f51f74316a37.tar.gz |
[RuboCop] Enable Style/SymbolProc
Diffstat (limited to 'lib/bundler/cli/outdated.rb')
-rw-r--r-- | lib/bundler/cli/outdated.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bundler/cli/outdated.rb b/lib/bundler/cli/outdated.rb index 1612adf897..94dd032a9d 100644 --- a/lib/bundler/cli/outdated.rb +++ b/lib/bundler/cli/outdated.rb @@ -41,7 +41,7 @@ module Bundler if options["strict"] active_spec = definition.specs.detect { |spec| spec.name == current_spec.name } else - active_spec = definition.index[current_spec.name].sort_by { |b| b.version } + active_spec = definition.index[current_spec.name].sort_by(&:version) if !current_spec.version.prerelease? && !options[:pre] && active_spec.size > 1 active_spec = active_spec.delete_if { |b| b.respond_to?(:version) && b.version.prerelease? } end |