From e014635a127dd787c3e0d1bb433a109a0073c024 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Tue, 4 Apr 2023 10:04:59 +0100 Subject: [PATCH] DEV: Update minimum Ruby version 3.2 (#20955) We are now using features like Regex.timeout, which are only supported in Ruby 3.2 --- config/application.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/application.rb b/config/application.rb index 466fe3fcc97..f436921ec62 100644 --- a/config/application.rb +++ b/config/application.rb @@ -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