From cc5ae01fb2dfaf2e322f9af7ad0e1c3531b3197a Mon Sep 17 00:00:00 2001 From: Benjamin Curtis Date: Tue, 17 Dec 2024 11:13:56 -0800 Subject: [PATCH] chore: add ruby-head to test matrix (#654) --------- Co-authored-by: Roel Bondoc --- .github/workflows/ruby.yml | 2 +- Gemfile | 3 +++ gemfiles/binding_of_caller.gemfile | 3 +++ gemfiles/delayed_job.gemfile | 3 +++ gemfiles/hanami.gemfile | 8 +++----- gemfiles/rack.gemfile | 3 +++ gemfiles/rack_1.gemfile | 3 +++ gemfiles/rails.gemfile | 3 +++ gemfiles/rails6.1.gemfile | 3 +++ gemfiles/rails7.0.gemfile | 3 +++ gemfiles/rails7.1.gemfile | 3 +++ gemfiles/rails7.2.gemfile | 3 +++ gemfiles/rails8.gemfile | 3 +++ gemfiles/resque.gemfile | 3 +++ gemfiles/sidekiq.gemfile | 3 +++ gemfiles/sidekiq7.gemfile | 3 +++ gemfiles/sinatra.gemfile | 3 +++ gemfiles/standalone.gemfile | 3 +++ lib/honeybadger/backtrace.rb | 2 +- 19 files changed, 53 insertions(+), 7 deletions(-) diff --git a/.github/workflows/ruby.yml b/.github/workflows/ruby.yml index 6ae97d87..329de1f9 100644 --- a/.github/workflows/ruby.yml +++ b/.github/workflows/ruby.yml @@ -18,6 +18,7 @@ jobs: - '3.1' - '3.2' - '3.3' + - 'ruby-head' gemfile: - binding_of_caller.gemfile - delayed_job.gemfile @@ -56,7 +57,6 @@ jobs: with: ruby-version: ${{ matrix.ruby }} bundler-cache: true - rubygems: latest - name: Build and test regular ruby run: | diff --git a/Gemfile b/Gemfile index 08913c26..f680d99a 100644 --- a/Gemfile +++ b/Gemfile @@ -10,6 +10,9 @@ gem "rspec-its", "~> 1.3.1" gem 'ruby-prof', platforms: :mri, require: false gem 'timecop' gem 'webmock' +gem 'bigdecimal' +gem 'base64' +gem 'mutex_m' # Required by feature specs. gem 'capistrano' diff --git a/gemfiles/binding_of_caller.gemfile b/gemfiles/binding_of_caller.gemfile index eb9b1e51..8c3d8677 100644 --- a/gemfiles/binding_of_caller.gemfile +++ b/gemfiles/binding_of_caller.gemfile @@ -10,6 +10,9 @@ gem "rspec-its", "~> 1.3.1" gem "ruby-prof", platforms: :mri, require: false gem "timecop" gem "webmock" +gem "bigdecimal" +gem "base64" +gem "mutex_m" gem "capistrano" gem "rake" gem "bump", "~> 0.10.0" diff --git a/gemfiles/delayed_job.gemfile b/gemfiles/delayed_job.gemfile index e0b66f75..58d524ca 100644 --- a/gemfiles/delayed_job.gemfile +++ b/gemfiles/delayed_job.gemfile @@ -10,6 +10,9 @@ gem "rspec-its", "~> 1.3.1" gem "ruby-prof", platforms: :mri, require: false gem "timecop" gem "webmock" +gem "bigdecimal" +gem "base64" +gem "mutex_m" gem "capistrano" gem "rake" gem "bump", "~> 0.10.0" diff --git a/gemfiles/hanami.gemfile b/gemfiles/hanami.gemfile index ecb51a88..bdb42bfd 100644 --- a/gemfiles/hanami.gemfile +++ b/gemfiles/hanami.gemfile @@ -10,6 +10,9 @@ gem "rspec-its", "~> 1.3.1" gem "ruby-prof", platforms: :mri, require: false gem "timecop" gem "webmock" +gem "bigdecimal" +gem "base64" +gem "mutex_m" gem "capistrano" gem "rake" gem "bump", "~> 0.10.0" @@ -17,11 +20,6 @@ gem "hanami", "~> 2.0" gem "hanami-router", "~> 2.0" gem "rack-test" -# Pin the dry-system gem because hanami 2.1.1 relies on a method -# (#find_and_load_provider) that was removed from dry-system 1.1.0. Once hanami -# 2.2.0 is released, we can remove this gem and rely on the dependency only. -gem "dry-system", "~> 1.0.1" - group :development do gem "guard" gem "guard-rspec" diff --git a/gemfiles/rack.gemfile b/gemfiles/rack.gemfile index 852c5f56..911435a1 100644 --- a/gemfiles/rack.gemfile +++ b/gemfiles/rack.gemfile @@ -10,6 +10,9 @@ gem "rspec-its", "~> 1.3.1" gem "ruby-prof", platforms: :mri, require: false gem "timecop" gem "webmock" +gem "bigdecimal" +gem "base64" +gem "mutex_m" gem "capistrano" gem "rake" gem "bump", "~> 0.10.0" diff --git a/gemfiles/rack_1.gemfile b/gemfiles/rack_1.gemfile index 5fb4c7be..73563b3d 100644 --- a/gemfiles/rack_1.gemfile +++ b/gemfiles/rack_1.gemfile @@ -10,6 +10,9 @@ gem "rspec-its", "~> 1.3.1" gem "ruby-prof", platforms: :mri, require: false gem "timecop" gem "webmock" +gem "bigdecimal" +gem "base64" +gem "mutex_m" gem "capistrano" gem "rake" gem "bump", "~> 0.10.0" diff --git a/gemfiles/rails.gemfile b/gemfiles/rails.gemfile index e93d4d18..b2571d1a 100644 --- a/gemfiles/rails.gemfile +++ b/gemfiles/rails.gemfile @@ -10,6 +10,9 @@ gem "rspec-its", "~> 1.3.1" gem "ruby-prof", platforms: :mri, require: false gem "timecop" gem "webmock" +gem "bigdecimal" +gem "base64" +gem "mutex_m" gem "capistrano", "~> 3.0" gem "rake" gem "bump", "~> 0.10.0" diff --git a/gemfiles/rails6.1.gemfile b/gemfiles/rails6.1.gemfile index 450a0a9c..a8d1c33b 100644 --- a/gemfiles/rails6.1.gemfile +++ b/gemfiles/rails6.1.gemfile @@ -10,6 +10,9 @@ gem "rspec-its", "~> 1.3.1" gem "ruby-prof", platforms: :mri, require: false gem "timecop" gem "webmock" +gem "bigdecimal" +gem "base64" +gem "mutex_m" gem "capistrano" gem "rake" gem "bump", "~> 0.10.0" diff --git a/gemfiles/rails7.0.gemfile b/gemfiles/rails7.0.gemfile index 8d4ff4d4..c665f4f3 100644 --- a/gemfiles/rails7.0.gemfile +++ b/gemfiles/rails7.0.gemfile @@ -10,6 +10,9 @@ gem "rspec-its", "~> 1.3.1" gem "ruby-prof", platforms: :mri, require: false gem "timecop" gem "webmock" +gem "bigdecimal" +gem "base64" +gem "mutex_m" gem "capistrano" gem "rake" gem "bump", "~> 0.10.0" diff --git a/gemfiles/rails7.1.gemfile b/gemfiles/rails7.1.gemfile index a3ab237e..19927569 100644 --- a/gemfiles/rails7.1.gemfile +++ b/gemfiles/rails7.1.gemfile @@ -10,6 +10,9 @@ gem "rspec-its", "~> 1.3.1" gem "ruby-prof", platforms: :mri, require: false gem "timecop" gem "webmock" +gem "bigdecimal" +gem "base64" +gem "mutex_m" gem "capistrano" gem "rake" gem "bump", "~> 0.10.0" diff --git a/gemfiles/rails7.2.gemfile b/gemfiles/rails7.2.gemfile index a5ba00e7..2e0ff4d2 100644 --- a/gemfiles/rails7.2.gemfile +++ b/gemfiles/rails7.2.gemfile @@ -10,6 +10,9 @@ gem "rspec-its", "~> 1.3.1" gem "ruby-prof", platforms: :mri, require: false gem "timecop" gem "webmock" +gem "bigdecimal" +gem "base64" +gem "mutex_m" gem "capistrano" gem "rake" gem "bump", "~> 0.10.0" diff --git a/gemfiles/rails8.gemfile b/gemfiles/rails8.gemfile index 3a28376b..75226f12 100644 --- a/gemfiles/rails8.gemfile +++ b/gemfiles/rails8.gemfile @@ -10,6 +10,9 @@ gem "rspec-its", "~> 1.3.1" gem "ruby-prof", platforms: :mri, require: false gem "timecop" gem "webmock" +gem "bigdecimal" +gem "base64" +gem "mutex_m" gem "capistrano" gem "rake" gem "bump", "~> 0.10.0" diff --git a/gemfiles/resque.gemfile b/gemfiles/resque.gemfile index d3752451..e2f63c87 100644 --- a/gemfiles/resque.gemfile +++ b/gemfiles/resque.gemfile @@ -10,6 +10,9 @@ gem "rspec-its", "~> 1.3.1" gem "ruby-prof", platforms: :mri, require: false gem "timecop" gem "webmock" +gem "bigdecimal" +gem "base64" +gem "mutex_m" gem "capistrano" gem "rake" gem "bump", "~> 0.10.0" diff --git a/gemfiles/sidekiq.gemfile b/gemfiles/sidekiq.gemfile index 0559ed3c..b62a5607 100644 --- a/gemfiles/sidekiq.gemfile +++ b/gemfiles/sidekiq.gemfile @@ -10,6 +10,9 @@ gem "rspec-its", "~> 1.3.1" gem "ruby-prof", platforms: :mri, require: false gem "timecop" gem "webmock" +gem "bigdecimal" +gem "base64" +gem "mutex_m" gem "capistrano" gem "rake" gem "bump", "~> 0.10.0" diff --git a/gemfiles/sidekiq7.gemfile b/gemfiles/sidekiq7.gemfile index 1f3b8807..a158f30f 100644 --- a/gemfiles/sidekiq7.gemfile +++ b/gemfiles/sidekiq7.gemfile @@ -10,6 +10,9 @@ gem "rspec-its", "~> 1.3.1" gem "ruby-prof", platforms: :mri, require: false gem "timecop" gem "webmock" +gem "bigdecimal" +gem "base64" +gem "mutex_m" gem "capistrano" gem "rake" gem "bump", "~> 0.10.0" diff --git a/gemfiles/sinatra.gemfile b/gemfiles/sinatra.gemfile index ec123efe..1a99c948 100644 --- a/gemfiles/sinatra.gemfile +++ b/gemfiles/sinatra.gemfile @@ -10,6 +10,9 @@ gem "rspec-its", "~> 1.3.1" gem "ruby-prof", platforms: :mri, require: false gem "timecop" gem "webmock" +gem "bigdecimal" +gem "base64" +gem "mutex_m" gem "capistrano" gem "rake" gem "bump", "~> 0.10.0" diff --git a/gemfiles/standalone.gemfile b/gemfiles/standalone.gemfile index 4dc512e9..7e741038 100644 --- a/gemfiles/standalone.gemfile +++ b/gemfiles/standalone.gemfile @@ -10,6 +10,9 @@ gem "rspec-its", "~> 1.3.1" gem "ruby-prof", platforms: :mri, require: false gem "timecop" gem "webmock" +gem "bigdecimal" +gem "base64" +gem "mutex_m" gem "capistrano" gem "rake" gem "bump", "~> 0.10.0" diff --git a/lib/honeybadger/backtrace.rb b/lib/honeybadger/backtrace.rb index 26071ea3..d1e76663 100644 --- a/lib/honeybadger/backtrace.rb +++ b/lib/honeybadger/backtrace.rb @@ -7,7 +7,7 @@ class Backtrace # Handles backtrace parsing line by line. class Line # Backtrace line regexp (optionally allowing leading X: for windows support). - INPUT_FORMAT = %r{^((?:[a-zA-Z]:)?[^:]+):(\d+)(?::in `([^']+)')?$}.freeze + INPUT_FORMAT = %r{^((?:[a-zA-Z]:)?[^:]+):(\d+)(?::in (?:`|')([^']+)')?$}.freeze # The file portion of the line (such as app/models/user.rb). attr_reader :file