From 3ebe249ce1f93db9c6178230ae21166e35579da6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Rodr=C3=ADguez?= Date: Mon, 19 Aug 2024 13:50:55 +0200 Subject: [PATCH] [rubygems/rubygems] Add better error when trying to develop RubyGems with an unsupported Ruby version https://github.com/rubygems/rubygems/commit/9d41c4088a --- spec/bundler/support/rubygems_ext.rb | 2 ++ 1 file changed, 2 insertions(+) diff --git a/spec/bundler/support/rubygems_ext.rb b/spec/bundler/support/rubygems_ext.rb index fb76e34a74..1fc5aa16c0 100644 --- a/spec/bundler/support/rubygems_ext.rb +++ b/spec/bundler/support/rubygems_ext.rb @@ -1,5 +1,7 @@ # frozen_string_literal: true +abort "RubyGems only supports Ruby 3.0 or higher" if RUBY_VERSION < "3.0.0" + require_relative "path" $LOAD_PATH.unshift(Spec::Path.source_lib_dir.to_s)