airbrake 7.3.2 → 7.3.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: a27eb749de63ef8453d049851837903f764bc348
4
- data.tar.gz: 65eebc14b5978d78eb9552f0376ba89c57b8d51a
3
+ metadata.gz: b725f58fb8bcbe584bcb48667958d69b6d624d3c
4
+ data.tar.gz: 51e95705e618dcdb841c8d7a2715e34add84aa64
5
5
  SHA512:
6
- metadata.gz: 100d7fd3e919f3122003593ef536d39300b0ef90ff4caa00d50cdc99465fb359d50973db20a19bee7bf96af95b8ae40291a119734220f85e13dc8ce40ab37bbe
7
- data.tar.gz: 85498c0b5b1b23e7bc7223e1bbeb61e4c16bffb0b8fe0565e4611819115e03e23ea388a7c41f516f8e320019b7f9cba567f7953dccfefffc066334aaf724e082
6
+ metadata.gz: e62eb59355112c63942617ff37aad78f29b03ef28ddb734f9669432478d681b4e5ffe9694a2bb30e740055851cd3ee73c2f48a7da0d8696194efdd3125a822ed
7
+ data.tar.gz: cec780dee54d1fda0746110b27e45f88ce841fdb8bbc89d04b45d57e65527d92ccafe0c6cebe05257616df538cf3474ad9bec91ee703744f1d0b1f27a7e6fbda
@@ -17,10 +17,12 @@ module Resque
17
17
  # @return [String] job's name. When ActiveJob is present, retrieve
18
18
  # job_class. When used directly, use worker's name
19
19
  def action(payload)
20
- klass = payload['class'].to_s
21
- return klass unless payload['args'] && payload['args'].first
22
- return klass unless (job_class = payload['args'].first['job_class'])
23
- job_class
20
+ active_job_args = payload['args'].first if payload['args']
21
+ if active_job_args.is_a?(Hash) && active_job_args['job_class']
22
+ active_job_args['job_class']
23
+ else
24
+ payload['class'].to_s
25
+ end
24
26
  end
25
27
  end
26
28
  end
@@ -1,5 +1,5 @@
1
1
  # We use Semantic Versioning v2.0.0
2
2
  # More information: http://semver.org/
3
3
  module Airbrake
4
- AIRBRAKE_VERSION = '7.3.2'.freeze
4
+ AIRBRAKE_VERSION = '7.3.3'.freeze
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: airbrake
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.3.2
4
+ version: 7.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Airbrake Technologies, Inc.
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-05-08 00:00:00.000000000 Z
11
+ date: 2018-05-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: airbrake-ruby