diff --git a/lib/modules/datasource/rubygems/index.ts b/lib/modules/datasource/rubygems/index.ts index 0916cb325eea26c21f9abb5226e3be8d79a730c8..1ef7ac332aa6288ae493351cf8b043ed0ae201dc 100644 --- a/lib/modules/datasource/rubygems/index.ts +++ b/lib/modules/datasource/rubygems/index.ts @@ -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);