feat: add support for Gemfile.next.lock (#4457)

Signed-off-by: Alexandre Steppé <alexandre.steppe@gmail.com>
This commit is contained in:
Alexandre Steppé 2025-12-12 16:20:53 +01:00 committed by GitHub
parent c8982b887d
commit ea1f4cba38
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 3 additions and 1 deletions

View File

@ -11,7 +11,7 @@ import (
// NewGemFileLockCataloger returns a new Bundler cataloger object tailored for parsing index-oriented files (e.g. Gemfile.lock).
func NewGemFileLockCataloger() pkg.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).

View File

@ -17,6 +17,7 @@ func Test_GemFileLock_Globs(t *testing.T) {
fixture: "test-fixtures/glob-paths",
expected: []string{
"src/Gemfile.lock",
"src/Gemfile.next.lock",
},
},
}