Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Djiit committed Nov 22, 2024
1 parent f990642 commit 8daac75
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions lib/modules/manager/bundler/extract.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,13 +169,10 @@ export async function extractPackageFile(
const currentValue = gemMatch.currentValue;
dep.currentValue = currentValue;
}
if (gemMatch.groups?.registryUrl) {
const registryUrl = gemMatch.groups.registryUrl;
dep.registryUrls = [registryUrl];
}
if (gemMatch.groups?.sourceName) {
const registryUrl = variables[gemMatch.groups.sourceName];
dep.registryUrls = [registryUrl];
if (gemMatch.registryUrl) {
dep.registryUrls = [gemMatch.registryUrl];

Check warning on line 173 in lib/modules/manager/bundler/extract.ts

View check run for this annotation

Codecov / codecov/patch

lib/modules/manager/bundler/extract.ts#L173

Added line #L173 was not covered by tests
} else if (gemMatch.sourceName) {
dep.registryUrls = [variables[gemMatch.sourceName]];

Check warning on line 175 in lib/modules/manager/bundler/extract.ts

View check run for this annotation

Codecov / codecov/patch

lib/modules/manager/bundler/extract.ts#L175

Added line #L175 was not covered by tests
}
dep.datasource = RubygemsDatasource.id;
res.deps.push(dep);
Expand Down

0 comments on commit 8daac75

Please sign in to comment.