diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 5a84f24fa..d687e8890 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -27,7 +27,7 @@ jobs: bundler-cache: true - name: Setup Pages id: pages - uses: actions/configure-pages@v4 + uses: actions/configure-pages@v5 - name: Build with RDoc # Outputs to the './_site' directory by default run: bundle exec rake rdoc diff --git a/lib/rake/backtrace.rb b/lib/rake/backtrace.rb index 31ff05450..c87f2f991 100644 --- a/lib/rake/backtrace.rb +++ b/lib/rake/backtrace.rb @@ -10,6 +10,7 @@ module Backtrace # :nodoc: all map { |f| File.expand_path(f) }. reject { |s| s.nil? || s =~ /^ *$/ } SUPPRESSED_PATHS_RE = SUPPRESSED_PATHS.map { |f| Regexp.quote(f) }.join("|") + SUPPRESSED_PATHS_RE << "|^" SUPPRESSED_PATHS_RE << "|^org\\/jruby\\/\\w+\\.java" if Object.const_defined?(:RUBY_ENGINE) and RUBY_ENGINE == "jruby" diff --git a/lib/rake/version.rb b/lib/rake/version.rb index 5d423ee19..bba5f1b74 100644 --- a/lib/rake/version.rb +++ b/lib/rake/version.rb @@ -1,6 +1,6 @@ # frozen_string_literal: true module Rake - VERSION = "13.2.0" + VERSION = "13.2.1" module Version # :nodoc: all MAJOR, MINOR, BUILD, *OTHER = Rake::VERSION.split "." diff --git a/test/test_rake_backtrace.rb b/test/test_rake_backtrace.rb index f605384e2..e4c7fb0ff 100644 --- a/test/test_rake_backtrace.rb +++ b/test/test_rake_backtrace.rb @@ -32,6 +32,14 @@ def test_near_system_dir_isnt_suppressed assert_equal paths, actual end + + def test_ruby_array_each_suppressed + paths = [":52:in 'Array#each'"] + + actual = Rake::Backtrace.collapse(paths) + + assert_equal [], actual + end end class TestRakeBacktrace < Rake::TestCase # :nodoc: