From 75d2aade19336871943ba120c732f6408359aab3 Mon Sep 17 00:00:00 2001 From: Toshimaru Date: Thu, 16 May 2024 21:08:48 +0900 Subject: [PATCH 1/3] ci: CI against Ruby v3.3 --- .github/workflows/ci.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index f106cfe..95f1bf3 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -10,7 +10,7 @@ jobs: test: strategy: matrix: - ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', 'head'] + ruby: ["2.6", "2.7", "3.0", "3.1", "3.2", "3.3"] gemfile: - gemfiles/jekyll_3.9.gemfile - gemfiles/jekyll_4.0.gemfile From a8c16cff23b89761c6c0f081e49b2458a0ccfeb5 Mon Sep 17 00:00:00 2001 From: Toshimaru Date: Thu, 16 May 2024 21:14:41 +0900 Subject: [PATCH 2/3] fix: Fix rubocop warning ``` The following RuboCop extension libraries are installed but not loaded in config: * rubocop-rake ``` --- .rubocop.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.rubocop.yml b/.rubocop.yml index c753fcc..ab07b89 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -8,8 +8,9 @@ AllCops: - Rakefile - Gemfile require: - - rubocop-performance - rubocop-minitest + - rubocop-rake + - rubocop-performance Metrics/MethodLength: Enabled: false From bc3de06e34c6c1f0cc8e12a8a3b0fca80a6115a1 Mon Sep 17 00:00:00 2001 From: Toshimaru Date: Thu, 16 May 2024 21:15:51 +0900 Subject: [PATCH 3/3] fix: Fix `Style/RedundantRegexpArgument` error ``` Style/RedundantRegexpArgument: Use string '
    ' as argument instead of regexp /
      /. ``` --- test/parser/test_ordered_list.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/parser/test_ordered_list.rb b/test/parser/test_ordered_list.rb index 98af378..de8659f 100644 --- a/test/parser/test_ordered_list.rb +++ b/test/parser/test_ordered_list.rb @@ -55,7 +55,7 @@ def test_ordered_list_subheadings_with_classes_nested_structure parse_with_ordered_list_and_classes html = @parser.toc - occurrences = html.scan(/
        /).count + occurrences = html.scan('
          ').count assert_equal(5, occurrences) end