A platform for community discussion. Free, open, simple.
DEV: Correct the ruby version check (#12551)
tison21b4fef1755e
diff --git a/config/application.rb b/config/application.rbindex 111c989f899..7fb65e036f0 100644--- a/config/application.rb+++ b/config/application.rb@@ -3,7 +3,7 @@# note, we require 2.5.2 and up cause 2.5.1 had some mail bugs we no longer# monkey patch, so this avoids people booting with this problem versionbegin- if !RUBY_VERSION.match?(/^2\.(([67])|(5\.[2-9]))/)+ if Gem::Version.new(RUBY_VERSION) < Gem::Version.new("2.5.2")STDERR.puts "Discourse requires Ruby 2.5.2 or up"exit 1end