diff options
author | Guillermo Guerrero <[email protected]> | 2019-04-12 18:59:35 +0200 |
---|---|---|
committer | Hiroshi SHIBATA <[email protected]> | 2019-08-03 09:29:59 +0900 |
commit | e1ccaa8782fa722b842ba59c955a212697afde9c () | |
tree | 3d1051344299a2ef5e22529ec7790d456a016e3d /lib/bundler/cli/outdated.rb | |
parent | 759930dd11aedfd563d11bdef4b0a562b0f00ad9 (diff) |
[bundler/bundler] Extract a `print_gems` method
https://.com/bundler/bundler/commit/0d8c8d207e
-rw-r--r-- | lib/bundler/cli/outdated.rb | 29 |
1 files changed, 13 insertions, 16 deletions
@@ -133,24 +133,10 @@ module Bundler end end - gems.each do |gem| - print_gem( - gem[:current_spec], - gem[:active_spec], - gem[:dependency], - groups, - ) - end end else - outdated_gems_list.each do |gem| - print_gem( - gem[:current_spec], - gem[:active_spec], - gem[:dependency], - gem[:groups], - ) - end end exit 1 @@ -193,6 +179,17 @@ module Bundler end end def print_gem(current_spec, active_spec, dependency, groups) spec_version = "#{active_spec.version}#{active_spec.git_version}" spec_version += " (from #{active_spec.loaded_from})" if Bundler.ui.debug? && active_spec.loaded_from |