From 110eeabf5c88684fd6adc596feda7cd8c2391587 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Rafael=20Mendon=C3=A7a=20Fran=C3=A7a?= Date: Thu, 6 Jan 2022 00:48:06 +0000 Subject: [PATCH] Only run test for gem templates in Ruby < 3.1 --- guides/Rakefile | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/guides/Rakefile b/guides/Rakefile index 694976fe84..ad8f4193bb 100644 --- a/guides/Rakefile +++ b/guides/Rakefile @@ -75,7 +75,11 @@ HELP end task :test do - templates = Dir.glob("bug_report_templates/*.rb") + templates = if RUBY_VERSION < "3.1.0" + Dir.glob("bug_report_templates/*.rb") + else + Dir.glob("bug_report_templates/*_main.rb") + end counter = templates.count do |file| puts "--- Running #{file}" Bundler.unbundled_system(Gem.ruby, "-w", file) ||