diff options
author | bronzdoc <lsagastume1990@gmail.com> | 2016-03-07 20:59:53 -0600 |
---|---|---|
committer | bronzdoc <lsagastume1990@gmail.com> | 2016-03-07 21:00:44 -0600 |
commit | ae9ea503f756a9aa340272e6159e473dab12ff93 (patch) | |
tree | 2fca2e4b126da043c20715ca5a61e129702755db /lib/bundler/source.rb | |
parent | 4df29f94c7bac5c30613bec3df4cdd2499311512 (diff) | |
download | bundler-ae9ea503f756a9aa340272e6159e473dab12ff93.tar.gz |
Adding add_color method
Diffstat (limited to 'lib/bundler/source.rb')
-rw-r--r-- | lib/bundler/source.rb | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb index b59ec20b..eee4ade4 100644 --- a/lib/bundler/source.rb +++ b/lib/bundler/source.rb @@ -18,11 +18,7 @@ module Bundler locked_spec = Bundler.locked_gems.specs.find {|s| s.name == spec.name } locked_spec_version = locked_spec.version if locked_spec if locked_spec_version && spec.version != locked_spec_version - message += if block_given? - yield locked_spec_version - else - " (was #{locked_spec_version})" - end + message += " (#{Bundler.ui.add_color("was #{locked_spec_version}", :green)})" end end |