[rubygems/rubygems] Add better error when trying to develop RubyGems with an unsupported Ruby version

https://github.com/rubygems/rubygems/commit/9d41c4088a
This commit is contained in:
David Rodríguez 2024-08-19 13:50:55 +02:00 committed by git
parent 54b6025887
commit 3ebe249ce1

View File

@ -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)