Class: Spandx::Python::Parsers::PipfileLock
Constant Summary
Constants inherited
from Core::Parser
Core::Parser::UNKNOWN
Instance Method Summary
collapse
for, parse
#all, #each, #inherited, #registry
Instance Method Details
#match?(path) ⇒ Boolean
7
8
9
|
# File 'lib/spandx/python/parsers/pipfile_lock.rb', line 7
def match?(path)
path.basename.fnmatch?('Pipfile*.lock')
end
|
#parse(lockfile) ⇒ Object
11
12
13
14
15
16
17
|
# File 'lib/spandx/python/parsers/pipfile_lock.rb', line 11
def parse(lockfile)
results = []
dependencies_from(lockfile) do |dependency|
results << dependency
end
results
end
|