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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 2014d2899db54a56adf4eba1b904e2535f1913ab8cf85cca87b2c0e2c3d70d3d
|
4
|
+
data.tar.gz: 8075a76ffa10c9ab9a7c9665d32997fa7cbf0d5d462ff13a1899f15fe3181239
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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.
|
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
|
@@ -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)
|
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)
|
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.
|
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:
|
199
|
+
version: 1.3.1
|
200
200
|
requirements: []
|
201
201
|
rubygems_version: 3.1.6
|
202
202
|
signing_key:
|