From 173408d72fb8e0e61a9df3c0c9e6a92ad532fc11 Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 9 Nov 2018 18:36:18 +1100 Subject: [PATCH] DEV: correctly force Ruby version 2.5.2 and up --- config/application.rb | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/config/application.rb b/config/application.rb index 4a64cead119..73b8deeb233 100644 --- a/config/application.rb +++ b/config/application.rb @@ -1,13 +1,15 @@ # frozen_string_literal: true +# 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 version begin - if !RUBY_VERSION.match?(/^2\.[456]/) - STDERR.puts "Discourse requires Ruby 2.4.0 or up" + if !RUBY_VERSION.match?(/^2\.(([67])|(5\.[2-9]))/) + STDERR.puts "Discourse requires Ruby 2.5.2 or up" exit 1 end rescue # no String#match? - STDERR.puts "Discourse requires Ruby 2.4.0 or up" + STDERR.puts "Discourse requires Ruby 2.5.2 or up" exit 1 end