class Bundler::LockfileParser

def parse_spec(line)

def parse_spec(line)
  if line =~ NAME_VERSION_4
    name, version = $1, Gem::Version.new($2)
    platform = $3 ? Gem::Platform.new($3) : Gem::Platform::RUBY
    @current_spec = LazySpecification.new(name, version, platform)
    @current_spec.source = @current_source
    # Avoid introducing multiple copies of the same spec (caused by
    # duplicate GIT sections)
    @specs[@current_spec.identifier] ||= @current_spec
  elsif line =~ NAME_VERSION_6
    name, version = $1, $2
    version = version.split(',').map { |d| d.strip } if version
    dep = Gem::Dependency.new(name, version)
    @current_spec.dependencies << dep
  end
end