module Bundler::SharedHelpers

def default_lockfile

def default_lockfile
  gemfile = default_gemfile
  case gemfile.basename.to_s
  when 'gems.rb' then Pathname.new(gemfile.sub(/.rb$/, '.locked'))
  else Pathname.new("#{gemfile}.lock")
  end
end