Skip to content
Snippets Groups Projects
Unverified Commit adeca3fc authored by Sergei Zharinov's avatar Sergei Zharinov Committed by GitHub
Browse files

fix(rubygems): Case-sensitive package names (#22800)

parent f6112172
Branches
Tags 35.119.1
No related merge requests found
......@@ -57,12 +57,11 @@ export class RubyGemsDatasource extends Datasource {
cachedVersions.type === 'not-supported' &&
registryHostname !== 'rubygems.org'
) {
const pkgName = packageName.toLowerCase();
const hostname = registryHostname;
return hostname === 'rubygems.pkg.github.com' ||
hostname === 'gitlab.com'
? await this.getDependencyFallback(registryUrl, pkgName)
: await this.getDependency(registryUrl, pkgName);
? await this.getDependencyFallback(registryUrl, packageName)
: await this.getDependency(registryUrl, packageName);
}
} catch (error) {
this.handleGenericErrors(error);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment