From 5d3285308ffae3e871b44985d769cecf3c32cffa Mon Sep 17 00:00:00 2001 From: Nobuyoshi Nakada Date: Thu, 11 Jan 2024 15:01:41 +0900 Subject: [PATCH] Test for TruffleRuby --- .github/workflows/test.yml | 1 + lib/rdoc/parser.rb | 1 + 2 files changed, 2 insertions(+) diff --git a/.github/workflows/test.yml b/.github/workflows/test.yml index 479a27169b..37f8b4889c 100644 --- a/.github/workflows/test.yml +++ b/.github/workflows/test.yml @@ -12,6 +12,7 @@ jobs: test: needs: ruby-versions strategy: + fail-fast: false matrix: ruby: ${{ fromJson(needs.ruby-versions.outputs.versions) }} os: [ubuntu-latest, macos-latest, windows-latest] diff --git a/lib/rdoc/parser.rb b/lib/rdoc/parser.rb index 425105effa..21ba59e33c 100644 --- a/lib/rdoc/parser.rb +++ b/lib/rdoc/parser.rb @@ -128,6 +128,7 @@ def self.can_parse_by_name file_name case mode = check_modeline(file_name) when nil, 'rdoc' then # continue else + raise "#{mode.inspect} should be a String" unless String === mode RDoc::Parser.parsers.find { |_, p| return p if mode.casecmp?(p.name[/\w+\z/]) } return nil end