Bump minimum Ruby version to 3.1 (#19848)

This commit is contained in:
David Taylor 2023-01-12 13:52:50 +00:00 committed by GitHub
parent 5dcb245eac
commit ab9ea50917
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -1,7 +1,7 @@
# frozen_string_literal: true
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.7.0")
STDERR.puts "Discourse requires Ruby 2.7 or above"
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.1.0")
STDERR.puts "Discourse requires Ruby 3.1 or above"
exit 1
end