sidekiq-instrument 0.2.1 → 0.3.0

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: a0113b47286ae22861aebf10c72e39cffadc74f1
4
- data.tar.gz: 0f78b976a8885e8682ff86900052727d7e6497a4
3
+ metadata.gz: f907351c4becc7617a69866ceaf1c98baab5492b
4
+ data.tar.gz: 8d2a41b4569b60c5b740c877cd25f1f35aba8eef
5
5
  SHA512:
6
- metadata.gz: fa562b6bc7b4ec1564ba296563fba16d8d9c40e1ce599e602ba8b0f7cdbde06bb27dd463383c36d19fa29f4430566ed0440980e8bd71853815013b9df40cbceb
7
- data.tar.gz: 75b6b58d2c980ad89af65f8663add2c5bb9860c4938dafa931ccd396e152d5fa8c78688c21fbe3b9df6a5896f0eea3d0fca3dc2b30ed06d60a4274d3697321f8
6
+ metadata.gz: 916b22e338ae724503a55c9dba66f997f8565124e755d0e86cec033a8c78b6ec849b05fedcc2541d7c18ae6db3a8223b5160a84788d16ec36f2c18b8a31623b1
7
+ data.tar.gz: 91d513258a4f7f01159f88b0a12cc97cc55e474816ab5d8e60dc1e3f739e64753ddeee7af439dd305717688e0f9e8c738b7ed164dd783e1bd7e658c8d995ed74
@@ -4,7 +4,7 @@ module Sidekiq::Instrument
4
4
  if worker.respond_to?(:statsd_metric_name)
5
5
  worker.send(:statsd_metric_name, event)
6
6
  else
7
- queue = worker.sidekiq_options_hash['queue']
7
+ queue = worker.class.get_sidekiq_options['queue']
8
8
  name = worker.class.name.gsub('::', '_')
9
9
 
10
10
  "shared.sidekiq.#{queue}.#{name}.#{event}"
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module Instrument
3
- VERSION = "0.2.1"
3
+ VERSION = "0.3.0"
4
4
  end
5
5
  end
@@ -16,11 +16,11 @@ Gem::Specification.new do |spec|
16
16
  spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
17
17
  spec.require_paths = ['lib']
18
18
 
19
- spec.add_dependency 'sidekiq', '~> 4.0'
19
+ spec.add_dependency 'sidekiq', '>= 4.2', '< 6'
20
20
  spec.add_dependency 'statsd-instrument', '~> 2.0', '>= 2.0.4'
21
21
 
22
22
  spec.add_development_dependency 'bundler', '~> 1.12'
23
- spec.add_development_dependency 'rake', '~> 10.0'
23
+ spec.add_development_dependency 'rake', '~> 12.0'
24
24
  spec.add_development_dependency 'rspec', '~> 3.0'
25
25
  spec.add_development_dependency 'pry-byebug', '~> 3.4'
26
26
  spec.add_development_dependency 'coveralls', '~> 0.8'
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-instrument
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Larraz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-10-19 00:00:00.000000000 Z
11
+ date: 2017-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
+ - !ruby/object:Gem::Version
19
+ version: '4.2'
20
+ - - "<"
18
21
  - !ruby/object:Gem::Version
19
- version: '4.0'
22
+ version: '6'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - "~>"
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ version: '4.2'
30
+ - - "<"
25
31
  - !ruby/object:Gem::Version
26
- version: '4.0'
32
+ version: '6'
27
33
  - !ruby/object:Gem::Dependency
28
34
  name: statsd-instrument
29
35
  requirement: !ruby/object:Gem::Requirement
@@ -64,14 +70,14 @@ dependencies:
64
70
  requirements:
65
71
  - - "~>"
66
72
  - !ruby/object:Gem::Version
67
- version: '10.0'
73
+ version: '12.0'
68
74
  type: :development
69
75
  prerelease: false
70
76
  version_requirements: !ruby/object:Gem::Requirement
71
77
  requirements:
72
78
  - - "~>"
73
79
  - !ruby/object:Gem::Version
74
- version: '10.0'
80
+ version: '12.0'
75
81
  - !ruby/object:Gem::Dependency
76
82
  name: rspec
77
83
  requirement: !ruby/object:Gem::Requirement
@@ -158,7 +164,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
158
164
  version: '0'
159
165
  requirements: []
160
166
  rubyforge_project:
161
- rubygems_version: 2.6.7
167
+ rubygems_version: 2.6.11
162
168
  signing_key:
163
169
  specification_version: 4
164
170
  summary: StatsD instrumentation for Sidekiq