class Bundler::Environment

def specs_for_lock_file

def specs_for_lock_file
  requested_specs.map do |s|
    hash = {
      :name => s.name,
      :load_paths => s.load_paths
    }
    if s.respond_to?(:relative_loaded_from) && s.relative_loaded_from
      hash[:virtual_spec] = s.to_ruby
    end
    hash[:loaded_from] = s.loaded_from.to_s
    hash
  end
end