class Bundler::LockfileParser
def parse_spec(line)
def parse_spec(line) return unless line =~ NAME_VERSION spaces = $1 name = -$2 version = $3 if spaces.size == 4 # only load platform for non-dependency (spec) line platform = $4 version = Gem::Version.new(version) platform = platform ? Gem::Platform.new(platform) : Gem::Platform::RUBY @current_spec = LazySpecification.new(name, version, platform, @current_source) @current_source.add_dependency_names(name) @specs[@current_spec.full_name] = @current_spec elsif spaces.size == 6 version = version.split(",").each(&:strip!) if version dep = Gem::Dependency.new(name, version) @current_spec.dependencies << dep end end