mirror of
https://github.com/anchore/syft.git
synced 2026-02-12 02:26:42 +01:00
feat: add support for Gemfile.next.lock (#4457)
Signed-off-by: Alexandre Steppé <alexandre.steppe@gmail.com>
This commit is contained in:
parent
c8982b887d
commit
ea1f4cba38
@ -11,7 +11,7 @@ import (
|
|||||||
// NewGemFileLockCataloger returns a new Bundler cataloger object tailored for parsing index-oriented files (e.g. Gemfile.lock).
|
// NewGemFileLockCataloger returns a new Bundler cataloger object tailored for parsing index-oriented files (e.g. Gemfile.lock).
|
||||||
func NewGemFileLockCataloger() pkg.Cataloger {
|
func NewGemFileLockCataloger() pkg.Cataloger {
|
||||||
return generic.NewCataloger("ruby-gemfile-cataloger").
|
return generic.NewCataloger("ruby-gemfile-cataloger").
|
||||||
WithParserByGlobs(parseGemFileLockEntries, "**/Gemfile.lock")
|
WithParserByGlobs(parseGemFileLockEntries, "**/Gemfile.lock", "**/Gemfile.next.lock")
|
||||||
}
|
}
|
||||||
|
|
||||||
// NewInstalledGemSpecCataloger returns a new Bundler cataloger object tailored for detecting installations of gems (e.g. Gemspec).
|
// NewInstalledGemSpecCataloger returns a new Bundler cataloger object tailored for detecting installations of gems (e.g. Gemspec).
|
||||||
|
|||||||
@ -17,6 +17,7 @@ func Test_GemFileLock_Globs(t *testing.T) {
|
|||||||
fixture: "test-fixtures/glob-paths",
|
fixture: "test-fixtures/glob-paths",
|
||||||
expected: []string{
|
expected: []string{
|
||||||
"src/Gemfile.lock",
|
"src/Gemfile.lock",
|
||||||
|
"src/Gemfile.next.lock",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
}
|
}
|
||||||
|
|||||||
@ -0,0 +1 @@
|
|||||||
|
bogus
|
||||||
Loading…
x
Reference in New Issue
Block a user