From f54ff20170a96e8c898d891c292fab0a449395aa Mon Sep 17 00:00:00 2001
From: Masaki Hara <ackie.h.gmai@gmail.com>
Date: Tue, 10 Aug 2021 14:06:19 +0900
Subject: [PATCH] fix(ruby): use hostType=rubygems for bundler env (#11196)

---
 docs/usage/private-modules.md    | 2 +-
 lib/manager/bundler/artifacts.ts | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docs/usage/private-modules.md b/docs/usage/private-modules.md
index 23fb2aa763..87159f65ba 100644
--- a/docs/usage/private-modules.md
+++ b/docs/usage/private-modules.md
@@ -119,7 +119,7 @@ The following details the most common/popular manager artifacts updating and how
 
 ### bundler
 
-`hostRules` with `hostType=bundler` are converted into environment variables which Bundler supports.
+`hostRules` with `hostType=rubygems` are converted into environment variables which Bundler supports.
 
 ### composer
 
diff --git a/lib/manager/bundler/artifacts.ts b/lib/manager/bundler/artifacts.ts
index b855c78568..7d3fc830ff 100644
--- a/lib/manager/bundler/artifacts.ts
+++ b/lib/manager/bundler/artifacts.ts
@@ -125,7 +125,7 @@ export async function updateArtifacts(
     ];
 
     const bundlerHostRules = findAllAuthenticatable({
-      hostType: 'bundler',
+      hostType: 'rubygems',
     });
 
     const bundlerHostRulesVariables = bundlerHostRules.reduce(
-- 
GitLab