class Bundler::LockfileParser

def parse_spec(line)

def parse_spec(line)
  return unless line =~ NAME_VERSION
  spaces = $1
  name = $2
  version = $3
  platform = $4
  if spaces.size == 4
    version = Gem::Version.new(version)
    platform = platform ? Gem::Platform.new(platform) : Gem::Platform::RUBY
    @current_spec = LazySpecification.new(name, version, platform)
    @current_spec.source = @current_source
    @current_source.add_dependency_names(name)
    @specs[@current_spec.identifier] = @current_spec
  elsif spaces.size == 6
    version = version.split(",").map(&:strip) if version
    dep = Gem::Dependency.new(name, version)
    @current_spec.dependencies << dep
  end
end