From c639bacd454dcf43619591f0f0eaa1ac7226f77c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Tue, 9 Jul 2024 17:37:13 +0200 Subject: [PATCH] [rubygems/rubygems] Fix detection of `gem_repo1` being updated https://github.com/rubygems/rubygems/commit/9f9493c77c --- spec/bundler/support/builders.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/spec/bundler/support/builders.rb b/spec/bundler/support/builders.rb index dd61d64c20..b2de94601a 100644 --- a/spec/bundler/support/builders.rb +++ b/spec/bundler/support/builders.rb @@ -245,7 +245,7 @@ module Spec end def update_repo(path, build_compact_index: true) - if path == gem_repo1 && caller.first.split(" ").last == "`build_repo`" + if path == gem_repo1 && caller.first.split(" ").last != "`build_repo'" raise "Updating gem_repo1 is unsupported -- use gem_repo2 instead" end return unless block_given?