DEV: Update minimum Ruby version 3.2 (#20955)

We are now using features like Regex.timeout, which are only supported in Ruby 3.2
This commit is contained in:
David Taylor 2023-04-04 10:04:59 +01:00 committed by GitHub
parent 8de45602ff
commit e014635a12
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("3.1.0")
STDERR.puts "Discourse requires Ruby 3.1 or above"
if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("3.2.0")
STDERR.puts "Discourse requires Ruby 3.2 or above"
exit 1
end