sidekiq-instrumental 0.3.2 → 0.3.3.beta1

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
  SHA256:
3
- metadata.gz: 554f7530d3719b65ba7c9cc9defedaea1cec95adea137a0627ad81b98cee4405
4
- data.tar.gz: fca6e4182df43e4c1980efe397623248c66c9d6c1510294d01727ef6118ce17f
3
+ metadata.gz: 2014d2899db54a56adf4eba1b904e2535f1913ab8cf85cca87b2c0e2c3d70d3d
4
+ data.tar.gz: 8075a76ffa10c9ab9a7c9665d32997fa7cbf0d5d462ff13a1899f15fe3181239
5
5
  SHA512:
6
- metadata.gz: d04a719ca6409deeacf6cb4ed59acf544521617b75226a4888b2559e94b8bd8ed71132451594d9ef3a2981b9d60760c57b6fb3278b9d0646e0ef44e1286675ba
7
- data.tar.gz: 3fb5692dc389eb03581a3c0b1ad1dffab4116a410ea21d82887bea2a289657612a9c3deef08b03afdf89335336160db95466ec060e829ed6d38f0bcd8af887bb
6
+ metadata.gz: ad52c52631e1721a628a0381df96efc1f6ddb6336d898abdd0695366fa70581fc5924d045434b8ac67903d6c460b64902d18a06330a53655ad5166f615b08fe6
7
+ data.tar.gz: 9c38a6c7a8744885651773321d523f012f1584685c9b9c021fb4986403a0e778f3003ce7f18b322e797f68e764ee1fcb587fec66510537c185270f4fd78b40b3
data/CHANGELOG.md CHANGED
@@ -9,6 +9,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.
9
9
  ### Changed
10
10
  ### Fixed
11
11
 
12
+ ## [0.3.3]
13
+ ### Fixed
14
+ - Fix unwrap_class_name, it was wrongly expecting an instance not a class.
15
+
12
16
  ## [0.3.2]
13
17
  ### Added
14
18
  - Implement a custom version of Sidekiq's display\_class\_name that fix an issues with ActiveJob > 6 when the job's class is passed as class not String
@@ -70,7 +70,7 @@ module Sidekiq
70
70
  display_class = job.display_class
71
71
 
72
72
  if %w[ActionMailer::DeliveryJob ActionMailer::MailDeliveryJob]
73
- .include?(display_class.class.name)
73
+ .include?(display_class.to_s)
74
74
  # The class name was not unwrapped correctly by the +display_class+ method
75
75
  job.args[0]['arguments'][0..1].join('#')
76
76
  else
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Sidekiq
4
4
  module Instrumental
5
- VERSION = '0.3.2'
5
+ VERSION = '0.3.3.beta1'
6
6
  end
7
7
  end
@@ -107,7 +107,7 @@ RSpec.describe Sidekiq::Instrumental::Middleware::Client do
107
107
  end
108
108
 
109
109
  context "when sidekiq's wrapped class is set as a Class" do
110
- let(:wrapped_class) { stub_const('ActionMailer::DeliveryJob', Class.new).new }
110
+ let(:wrapped_class) { stub_const('ActionMailer::DeliveryJob', Class.new) }
111
111
 
112
112
  it 'unwraps the class name and increments the metric' do
113
113
  expect(middleware)
@@ -156,7 +156,7 @@ RSpec.describe Sidekiq::Instrumental::Middleware::Server do
156
156
  end
157
157
 
158
158
  context "when sidekiq's wrapped class is set as a Class" do
159
- let(:wrapped_class) { stub_const('ActionMailer::DeliveryJob', Class.new).new }
159
+ let(:wrapped_class) { stub_const('ActionMailer::DeliveryJob', Class.new) }
160
160
 
161
161
  it 'unwraps the class name and increments the metric' do
162
162
  expect(middleware)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-instrumental
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.2
4
+ version: 0.3.3.beta1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Edward Rudd
@@ -194,9 +194,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
194
194
  version: '2.3'
195
195
  required_rubygems_version: !ruby/object:Gem::Requirement
196
196
  requirements:
197
- - - ">="
197
+ - - ">"
198
198
  - !ruby/object:Gem::Version
199
- version: '0'
199
+ version: 1.3.1
200
200
  requirements: []
201
201
  rubygems_version: 3.1.6
202
202
  signing_key: