bin/test_runner.rb in rbs-0.11.0 vs bin/test_runner.rb in rbs-0.12.0

- old
+ new

@@ -1,13 +1,18 @@ #!/usr/bin/env ruby -RUBY_27 = Gem::Version.new(RUBY_VERSION).yield_self do |ruby_version| - Gem::Version.new('2.7.0') <= ruby_version && ruby_version < Gem::Version.new("2.8.0") +$LOAD_PATH << File.join(__dir__, "../lib") + +STDLIB_TEST = Gem::Version.new(RUBY_VERSION).yield_self do |ruby_version| + Gem::Version.new('2.7.0') <= ruby_version && + ruby_version <= Gem::Version.new('2.8.0') end -unless RUBY_27 - STDERR.puts "🚨🚨🚨 stdlib test requires Ruby 2.7 but RUBY_VERSION==#{RUBY_VERSION}, exiting... 🚨🚨🚨" - exit +unless STDLIB_TEST + unless ENV["FORCE_STDLIB_TEST"] + STDERR.puts "🚨🚨🚨 stdlib test requires Ruby 2.7 or later but RUBY_VERSION==#{RUBY_VERSION}, exiting... 🚨🚨🚨" + exit + end end ARGV.each do |arg| load arg end