mirror of
https://github.com/discourse/discourse.git
synced 2024-11-29 08:23:43 +08:00
Bump minimum Ruby version to 3.1 (#19848)
This commit is contained in:
parent
5dcb245eac
commit
ab9ea50917
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user