sidekiq-datadog 0.3.3 → 0.3.4

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: 2216936de3502de5739584e0be78caa77e8834fb
4
- data.tar.gz: cb1d90bc357dfe246be8b2a6e466fc71d14f3418
3
+ metadata.gz: 5dfebb153ac12dde87ee440d051a43a2ef9ee35c
4
+ data.tar.gz: ad56261bcef44e41e2b241287294a4f6ae131190
5
5
  SHA512:
6
- metadata.gz: f11b04e960e36aa3176102fefefed57bc18a696840f1965a566b8d21c9e06ad0cf69a7b0a7f0aa14d00b84096d1a1d36ee251517e18ef731d795e4860660a182
7
- data.tar.gz: c12ef2cde101b8b37ca7356340658ab846be420e8cc5837adff966944907e959d499a0e708dc72e05bd223588836dff6b8e2d5a200583e9955d26fce3a3a0b3c
6
+ metadata.gz: e36d6f039160b15332cf99dcb6d7c9938424d44baa2a6cbfa07fec33e359c90cc99c1538b21cf5174d3d10e51d9f0578111f15c904564642bd305d404bae7fd2
7
+ data.tar.gz: 19f9a9facb8b2547bf058c902c12fc33e3fe358f86f597d409aa92fc31fa7e5d38c06993042ef7522427b58e1664aa4e123492b1a1ac8e607fb15b11eb982771
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sidekiq-datadog (0.3.3)
5
- dogstatsd-ruby
4
+ sidekiq-datadog (0.3.4)
5
+ dogstatsd-ruby (~> 2.0.0)
6
6
  sidekiq
7
7
 
8
8
  GEM
@@ -11,17 +11,17 @@ GEM
11
11
  concurrent-ruby (1.0.2)
12
12
  connection_pool (2.2.0)
13
13
  diff-lcs (1.2.5)
14
- dogstatsd-ruby (1.6.0)
15
- rack (1.6.4)
14
+ dogstatsd-ruby (2.0.0)
15
+ rack (2.0.1)
16
16
  rack-protection (1.5.3)
17
17
  rack
18
- rake (11.2.2)
18
+ rake (11.3.0)
19
19
  redis (3.3.1)
20
20
  rspec (3.5.0)
21
21
  rspec-core (~> 3.5.0)
22
22
  rspec-expectations (~> 3.5.0)
23
23
  rspec-mocks (~> 3.5.0)
24
- rspec-core (3.5.2)
24
+ rspec-core (3.5.4)
25
25
  rspec-support (~> 3.5.0)
26
26
  rspec-expectations (3.5.0)
27
27
  diff-lcs (>= 1.2.0, < 2.0)
@@ -30,16 +30,11 @@ GEM
30
30
  diff-lcs (>= 1.2.0, < 2.0)
31
31
  rspec-support (~> 3.5.0)
32
32
  rspec-support (3.5.0)
33
- sidekiq (4.1.4)
33
+ sidekiq (4.2.2)
34
34
  concurrent-ruby (~> 1.0)
35
35
  connection_pool (~> 2.2, >= 2.2.0)
36
+ rack-protection (~> 1.5)
36
37
  redis (~> 3.2, >= 3.2.1)
37
- sinatra (>= 1.4.7)
38
- sinatra (1.4.7)
39
- rack (~> 1.5)
40
- rack-protection (~> 1.4)
41
- tilt (>= 1.3, < 3)
42
- tilt (2.0.5)
43
38
 
44
39
  PLATFORMS
45
40
  ruby
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module Datadog
3
- VERSION = "0.3.3"
3
+ VERSION = "0.3.4"
4
4
  end
5
5
  end
@@ -1,6 +1,6 @@
1
1
  require 'sidekiq'
2
2
  require 'sidekiq/datadog/version'
3
- require 'statsd'
3
+ require 'datadog/statsd'
4
4
  require 'socket'
5
5
 
6
6
  module Sidekiq
@@ -29,7 +29,7 @@ module Sidekiq
29
29
  statsd_port = (opts[:statsd_port] || ENV['STATSD_PORT'] || 8125).to_i
30
30
 
31
31
  @metric_name = opts[:metric_name] || "sidekiq.job"
32
- @statsd = opts[:statsd] || ::Statsd.new(statsd_host, statsd_port)
32
+ @statsd = opts[:statsd] || ::Datadog::Statsd.new(statsd_host, statsd_port)
33
33
  @tags = opts[:tags] || []
34
34
 
35
35
  if @tags.none? {|t| t =~ /^host\:/ }
@@ -18,7 +18,7 @@ Gem::Specification.new do |s|
18
18
  s.require_paths = ["lib"]
19
19
 
20
20
  s.add_runtime_dependency(%q<sidekiq>)
21
- s.add_runtime_dependency(%q<dogstatsd-ruby>)
21
+ s.add_runtime_dependency(%q<dogstatsd-ruby>, "~> 2.0.0")
22
22
 
23
23
  s.add_development_dependency(%q<rake>)
24
24
  s.add_development_dependency(%q<bundler>)
data/spec/spec_helper.rb CHANGED
@@ -9,7 +9,7 @@ module Mock
9
9
  class Worker
10
10
  end
11
11
 
12
- class Statsd < ::Statsd
12
+ class Statsd < ::Datadog::Statsd
13
13
  def timing(stat, ms, opts={}); super(stat, 333, opts); end
14
14
  def flush_buffer; end
15
15
  alias :send_stat :send_to_buffer
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-datadog
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.3
4
+ version: 0.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitrij Denissenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-30 00:00:00.000000000 Z
11
+ date: 2016-10-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sidekiq
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: dogstatsd-ruby
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ">="
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: 2.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ">="
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 2.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement