From adeca3fcb7aa6657f9bc051fa5ecc01fab3b6a69 Mon Sep 17 00:00:00 2001 From: Sergei Zharinov <zharinov@users.noreply.github.com> Date: Thu, 15 Jun 2023 21:11:30 +0300 Subject: [PATCH] fix(rubygems): Case-sensitive package names (#22800) --- lib/modules/datasource/rubygems/index.ts | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/lib/modules/datasource/rubygems/index.ts b/lib/modules/datasource/rubygems/index.ts index 0916cb325e..1ef7ac332a 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); -- GitLab