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 10:20:53 -05:00
committed by GitHub
parent c8982b887d
commit ea1f4cba38
3 changed files with 3 additions and 1 deletions
+1 -1
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).
@@ -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",
},
},
}
@@ -0,0 +1 @@
bogus