diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml index 20e273a..bfafd10 100644 --- a/.github/workflows/main.yml +++ b/.github/workflows/main.yml @@ -17,6 +17,7 @@ jobs: - '3.1.4' - '3.2.3' - '3.3.0' + - '3.4.0' steps: - uses: actions/checkout@v4 - name: Set up Ruby diff --git a/Gemfile.lock b/Gemfile.lock index 9a997c5..02a878d 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -97,9 +97,9 @@ GEM timeout net-smtp (0.5.0) net-protocol - nokogiri (1.16.7-arm64-darwin) + nokogiri (1.18.2-arm64-darwin) racc (~> 1.4) - nokogiri (1.16.7-x86_64-linux) + nokogiri (1.18.2-x86_64-linux-gnu) racc (~> 1.4) parallel (1.26.3) parser (3.3.4.2) @@ -158,8 +158,8 @@ GEM rubocop-ast (>= 1.31.1, < 2.0) ruby-progressbar (1.13.0) securerandom (0.3.1) - sqlite3 (2.0.4-arm64-darwin) - sqlite3 (2.0.4-x86_64-linux-gnu) + sqlite3 (2.5.0-arm64-darwin) + sqlite3 (2.5.0-x86_64-linux-gnu) standard (1.40.0) language_server-protocol (~> 3.17.0.2) lint_roller (~> 1.0) diff --git a/app/models/solid_errors/backtrace_line.rb b/app/models/solid_errors/backtrace_line.rb index 8ac75c5..8d8194b 100644 --- a/app/models/solid_errors/backtrace_line.rb +++ b/app/models/solid_errors/backtrace_line.rb @@ -2,7 +2,7 @@ module SolidErrors # adapted from: https://github.com/honeybadger-io/honeybadger-ruby/blob/master/lib/honeybadger/backtrace.rb class BacktraceLine # Backtrace line regexp (optionally allowing leading X: for windows support). - INPUT_FORMAT = %r{^((?:[a-zA-Z]:)?[^:]+):(\d+)(?::in `([^']+)')?$} + INPUT_FORMAT = %r{^((?:[a-zA-Z]:)?[^:]+):(\d+)(?::in [`']([^']+)')?$} STRING_EMPTY = "".freeze GEM_ROOT = "[GEM_ROOT]".freeze PROJECT_ROOT = "[PROJECT_ROOT]".freeze diff --git a/test/test_backtrace.rb b/test/test_backtrace.rb new file mode 100644 index 0000000..24d6226 --- /dev/null +++ b/test/test_backtrace.rb @@ -0,0 +1,10 @@ +# frozen_string_literal: true + +require "test_helper" + +class TestSolidErrors < Minitest::Test + def test_backtrace + backtrace = SolidErrors::Backtrace.parse(caller(0)).to_a + assert_includes backtrace[0][:method], "test_backtrace" + end +end