module Bundler
def locked_gems
def locked_gems return @locked_gems if defined?(@locked_gems) if Bundler.default_lockfile.exist? lock = Bundler.read_file(Bundler.default_lockfile) @locked_gems = LockfileParser.new(lock) else @locked_gems = nil end end