lib/spandx/parsers/pipfile_lock.rb in spandx-0.5.0 vs lib/spandx/parsers/pipfile_lock.rb in spandx-0.6.0

- old
+ new

@@ -1,17 +1,17 @@ # frozen_string_literal: true module Spandx module Parsers - class PipfileLock < Base + class PipfileLock < ::Spandx::Core::Parser def self.matches?(filename) filename.match?(/Pipfile.*\.lock/) end def parse(lockfile) results = [] dependencies_from(lockfile) do |x| - results << Dependency.new( + results << ::Spandx::Core::Dependency.new( name: x[:name], version: x[:version], licenses: x[:licenses] ) end