diff options
author | Andre Arko <andre@arko.net> | 2013-08-31 18:56:43 -0700 |
---|---|---|
committer | Andre Arko <andre@arko.net> | 2013-08-31 19:03:42 -0700 |
commit | b89e304cab8c92c969b0a700e5e66c114f23e58d (patch) | |
tree | 2b0ed10c3d25fa6330b3e8ecb887a9e624d8aa4f /lib/bundler.rb | |
parent | 0ab0cd9058d39a7c8ead6a796fa319ec877c53e5 (diff) | |
download | bundler-b89e304cab8c92c969b0a700e5e66c114f23e58d.tar.gz |
extract Bundler.locked_gems
Diffstat (limited to 'lib/bundler.rb')
-rw-r--r-- | lib/bundler.rb | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/lib/bundler.rb b/lib/bundler.rb index 883917cb..2db880ec 100644 --- a/lib/bundler.rb +++ b/lib/bundler.rb @@ -152,6 +152,13 @@ module Bundler end end + def locked_gems + @locked_gems ||= begin + lock = Bundler.read_file(Bundler.default_lockfile) + LockfileParser.new(lock) + end + end + def ruby_scope "#{Bundler.rubygems.ruby_engine}/#{Gem::ConfigMap[:ruby_version]}" end |