From 5350ce711db20ed89ff20ac53bfaf31cd388b53f Mon Sep 17 00:00:00 2001
From: Fernando Briano <fernando@picandocodigo.net>
Date: Tue, 9 Jan 2024 16:25:29 +0000
Subject: [PATCH] Lock version of rubygems-update for Ruby 2.6|7

---
 spec/build/update.sh | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/spec/build/update.sh b/spec/build/update.sh
index 6518daaca..9fb02a233 100755
--- a/spec/build/update.sh
+++ b/spec/build/update.sh
@@ -11,6 +11,10 @@ if [[ "${FRAMEWORK}" =~ ^rails-4\.([0-9]) ]]; then
   gem i "rubygems-update:~>2.7" --no-document
   update_rubygems --no-document
   gem i "bundler:~>1.17.3" --no-document
+elif [[ "${RUBY_VERSION}" =~ ^2\.(6|7).+ ]]; then
+  gem i "rubygems-update:~>3.4.0" --no-document
+  update_rubygems --no-document
+  gem i bundler --no-document
 # Install specific dependencies for 2.4.x and 2.5.x ruby versions
 elif [[ "${RUBY_VERSION}" =~ ^2\.(4|5).+ ]]; then
   gem i "rubygems-update:~>2.7" --no-document