diff options
author | David RodrÃguez <[email protected]> | 2021-05-28 12:47:49 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2021-07-07 13:30:20 +0900 |
commit | 6e2240a2f954c84ed12357382c9c065ae4b91e11 () | |
tree | ef4b33a9a67843cbc45aad510d7bca9f2a763496 /lib/bundler/cli/outdated.rb | |
parent | 9952e9358ea73a1bda8d5f8c8672ee1c04892ce4 (diff) |
Sync latest bundler & rubygems development version
Notes: Merged: https://.com/ruby/ruby/pull/4533
-rw-r--r-- | lib/bundler/cli/outdated.rb | 19 |
1 files changed, 9 insertions, 10 deletions
@@ -146,17 +146,16 @@ module Bundler end def retrieve_active_spec(definition, current_spec) - if strict - active_spec = definition.find_resolved_spec(current_spec) - else - active_specs = definition.find_indexed_specs(current_spec) - if !current_spec.version.prerelease? && !options[:pre] && active_specs.size > 1 - active_specs.delete_if {|b| b.respond_to?(:version) && b.version.prerelease? } - end - active_spec = active_specs.last - end - active_spec end def print_gems(gems_list) |