bin/test_runner.rb in rbs-0.12.0 vs bin/test_runner.rb in rbs-0.12.1
- old
+ new
@@ -1,18 +1,15 @@
#!/usr/bin/env ruby
$LOAD_PATH << File.join(__dir__, "../lib")
-STDLIB_TEST = Gem::Version.new(RUBY_VERSION).yield_self do |ruby_version|
+IS_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')
end
-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
+unless IS_RUBY_27
+ STDERR.puts "⚠️⚠️⚠️⚠️ stdlib test assumes Ruby 2.7 but RUBY_VERSION==#{RUBY_VERSION} ⚠️⚠️⚠️⚠️"
end
ARGV.each do |arg|
load arg
end