diff options
author | joyicecloud <joyicecloud@gmail.com> | 2013-09-20 14:30:13 -0700 |
---|---|---|
committer | joyicecloud <joyicecloud@gmail.com> | 2013-09-23 19:09:46 -0700 |
commit | f02f0fcc218b89e35b59c704c488c185aa23aca0 (patch) | |
tree | 22fe83546e118c41e1a306e0827e000965631eae /lib/bundler/source.rb | |
parent | 43732e9c1b3a7510d0592d2a2f357855abab18d7 (diff) | |
download | bundler-f02f0fcc218b89e35b59c704c488c185aa23aca0.tar.gz |
Put old version message in the block level
Change bundle update message format
Change rspec bundle update message text to match in files (rubygem, git, path
source, etc)
Diffstat (limited to 'lib/bundler/source.rb')
-rw-r--r-- | lib/bundler/source.rb | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/bundler/source.rb b/lib/bundler/source.rb index 2a7f0944..76a67b1d 100644 --- a/lib/bundler/source.rb +++ b/lib/bundler/source.rb @@ -7,9 +7,10 @@ module Bundler def version_message(spec) locked_spec = Bundler.locked_gems.specs.find { |s| s.name == spec.name } if Bundler.locked_gems locked_spec_version = locked_spec.version if locked_spec - message = "#{spec.name} (#{spec.version})" - old_version = " was (#{locked_spec_version})" - message << old_version if locked_spec_version && spec.version != locked_spec_version + message = "#{spec.name} #{spec.version}" + if locked_spec_version && spec.version != locked_spec_version + message << " (was #{locked_spec_version})" + end message end |