mirror of
https://github.com/discourse/discourse.git
synced 2024-11-25 09:42:07 +08:00
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:
parent
8de45602ff
commit
e014635a12
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user