diff --git a/.travis.yml b/.travis.yml index 02f39a097..cf8f94dc0 100644 --- a/.travis.yml +++ b/.travis.yml @@ -26,12 +26,12 @@ jobs: - BUNDLE_VERSION=1.12.0 - GEMSETS=test - stage: test - rvm: 2.0.0 + rvm: 2.0 env: - BUNDLE_VERSION=1.12.0 - GEMSETS=test - stage: test - rvm: 2.1. + rvm: 2.1 env: - BUNDLE_VERSION=1.12.0 - GEMSETS=test @@ -39,22 +39,27 @@ jobs: env: - BUNDLE_VERSION=1.12.0 - GEMSETS="test sidekiq" - rvm: 2.2.4 + rvm: 2.2 - stage: test env: - BUNDLE_VERSION=1.12.0 - - GEMSETS="test sidekiq coverage" - rvm: 2.3.0 + - GEMSETS="test sidekiq" + rvm: 2.3 - stage: test env: - BUNDLE_VERSION=1.12.0 - GEMSETS="test sidekiq" - rvm: 2.4.1 + rvm: 2.4 + - stage: test + env: + - BUNDLE_VERSION=1.12.0 + - GEMSETS="test sidekiq coverage" + rvm: 2.5 - stage: test env: - BUNDLE_VERSION=1.12.0 - GEMSETS="test rubocop" - rvm: 2.4.1 + rvm: 2.5 script: bundle exec ./bin/rubocop lib/ # - stage: test # addons: diff --git a/README.md b/README.md index f04c4c391..3d19ba075 100644 --- a/README.md +++ b/README.md @@ -1,8 +1,5 @@ # Bugsnag exception reporter for Ruby [![build status](https://travis-ci.org/bugsnag/bugsnag-ruby.svg?branch=master)](https://travis-ci.org/bugsnag/bugsnag-ruby) -![Gem Version](https://badge.fury.io/rb/bugsnag.svg) -[![SemVer](https://api.dependabot.com/badges/compatibility_score?dependency-name=bugsnag&package-manager=bundler&version-scheme=semver)](https://dependabot.com/compatibility-score.html?dependency-name=bugsnag&package-manager=bundler&version-scheme=semver) - The Bugsnag exception reporter for Ruby gives you instant notification of exceptions thrown from your **[Rails](https://www.bugsnag.com/platforms/rails)**, **Sinatra**, **Rack** or **plain Ruby** app. Any uncaught exceptions will trigger a notification to be sent to your Bugsnag project. diff --git a/lib/bugsnag/middleware/delayed_job.rb b/lib/bugsnag/middleware/delayed_job.rb index 88278e6dc..b83765833 100644 --- a/lib/bugsnag/middleware/delayed_job.rb +++ b/lib/bugsnag/middleware/delayed_job.rb @@ -48,6 +48,8 @@ def construct_job_payload(payload) data[:args] = payload.args elsif payload.respond_to?(:to_h) data[:args] = payload.to_h + elsif payload.respond_to?(:instance_values) + data[:args] = payload.instance_values end if payload.is_a?(::Delayed::PerformableMethod) && (object = payload.object)