aboutsummaryrefslogtreecommitdiffstats
path: root/lib/bundler.rb
diff options
context:
space:
mode:
authorAndre Arko <andre@arko.net>2013-12-18 16:03:35 -0800
committerAndre Arko <andre@arko.net>2013-12-18 16:03:35 -0800
commit89235d86ec81006f5647fcd383af981690b3264c (patch)
treef37103bfd02a1792272022390803ae128829c551 /lib/bundler.rb
parent3c5446a3b700d0da44cb990a68aa73e199d7b2a1 (diff)
parentf02f0fcc218b89e35b59c704c488c185aa23aca0 (diff)
downloadbundler-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.rb7
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