diff options
author | Andre Arko <andre@arko.net> | 2013-12-18 16:03:35 -0800 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2013-12-18 16:03:35 -0800 |
commit | 89235d86ec81006f5647fcd383af981690b3264c (patch) | |
tree | f37103bfd02a1792272022390803ae128829c551 /lib/bundler.rb | |
parent | 3c5446a3b700d0da44cb990a68aa73e199d7b2a1 (diff) | |
parent | f02f0fcc218b89e35b59c704c488c185aa23aca0 (diff) | |
download | bundler-89235d86ec81006f5647fcd383af981690b3264c.tar.gz |
Merge pull request #2639 from joyicecloud/show-version-of-gem-updated
Displays the previous version of the gem when run bundle update
Conflicts:
lib/bundler/source.rb
lib/bundler/source/git/git_proxy.rb
lib/bundler/source/rubygems.rb
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r-- | lib/bundler.rb | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb index 50fed969..de450871 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -154,9 +154,12 @@ module Bundler end def locked_gems - @locked_gems ||= begin + return @locked_gems if defined?(@locked_gems) + if Bundler.default_lockfile.exist? lock = Bundler.read_file(Bundler.default_lockfile) - LockfileParser.new(lock) + @lock_gems = LockfileParser.new(lock) + else + @locked_gems = nil end end |