nadir 1.1.0 → 1.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b477b9b8e545334e8eafd0d2f4a0753de0177c000f5011ca7852e2762ccd29d2
4
- data.tar.gz: '0865d783c06af66785076b118d8d88865c7dead023760f9435b2030229fbeaf1'
3
+ metadata.gz: d082eb1b9703274e2e4acddaab0926944198cdbf06b1ede7bb1ced1dc9f8df5f
4
+ data.tar.gz: 6dea178a0ac5092104705b5b5b068880e5748dee33374cc6b6394edc4f531f8b
5
5
  SHA512:
6
- metadata.gz: 7dc6246246797ccb33e9dad2293c1ac2278f363b6bbb1ef360087bfa6fed05aa177fdfb6a9e8eb1cc47f74963cbf46308658d073e7bcbb6c8049456032f40089
7
- data.tar.gz: d0be6415f97b7157543ef52cd0cdff50a415c912222cd23738c2886a25247f59014159b64f391b6ef8098d07d75f125f529c76c910004dcf13a2cde91e942082
6
+ metadata.gz: 93db3911eb8d93ddb14c17a6c1b147ce5ad7807c92dffe0911bcd2c9fea202637f3f54046bcad3319336a18af70215fea41d608e6437019f99612217c09a665d
7
+ data.tar.gz: c5a6af04b60d96d0ab77696e21d6dd5285065e833de67af613fdb0e6d69fef47b4101dfdf5b7ecb2c98f66c1ea875571fff11d0afddb2f1c87defe587951576e
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- nadir (1.1.0)
4
+ nadir (1.1.1)
5
5
  commander (~> 4.4)
6
6
  concurrent-ruby (~> 1.0)
7
7
 
@@ -1,8 +1,20 @@
1
1
  module Nadir
2
2
  class Sidekiq
3
3
  def self.notify(exception, context)
4
- job_params = context[:job].slice('class', 'args', 'retry_count', 'queue', 'jid')
5
- location = context[:job]['class']
4
+ if context[:job]['class'] == 'ActiveJob::QueueAdapters::SidekiqAdapter::JobWrapper'
5
+ job_params = {
6
+ class: context[:job]['args'].first['job_class'],
7
+ args: context[:job]['args'].first['arguments'],
8
+ queue: context[:job]['args'].first['queue_name'],
9
+ job_id: context[:job]['args'].first['job_id'],
10
+ retry_count: context[:job]['retry_count'],
11
+ jid: context[:job]['jid'],
12
+ }
13
+ location = job_params[:class]
14
+ else
15
+ job_params = context[:job].slice('class', 'args', 'retry_count', 'queue', 'jid')
16
+ location = job_params['class']
17
+ end
6
18
 
7
19
  Nadir.notify exception, job: job_params, location: location
8
20
  end
data/lib/nadir/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Nadir
2
- VERSION = '1.1.0'
2
+ VERSION = '1.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nadir
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Georgi Mitrev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-10 00:00:00.000000000 Z
11
+ date: 2019-09-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: concurrent-ruby