From ab9ea509170c07569c007bd8bd6a24bd03a33434 Mon Sep 17 00:00:00 2001 From: David Taylor Date: Thu, 12 Jan 2023 13:52:50 +0000 Subject: [PATCH] Bump minimum Ruby version to 3.1 (#19848) --- config/application.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/config/application.rb b/config/application.rb index 0c31d3a327c..466fe3fcc97 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("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