sidekiq-datadog 0.5.1 → 0.5.2

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: 02d15ba4b6e7d71e6f38be19ecaf8101c3360af31f59c6e11553c5c93d37f508
4
- data.tar.gz: 61a1c4b3c26d636eb145548b1f7e795db2416df53aef320ab5ee57ac87f4395b
3
+ metadata.gz: d4081ba1d7c98f105056005ee817b0013b0bdad331917644807d9c8669071da6
4
+ data.tar.gz: c782bc25f3477e1d6a3bcca92c39d3fe197cfa9db20373f1244336a29e5f39b8
5
5
  SHA512:
6
- metadata.gz: d41323865474c21cf476fe2a2d26745fe15154334f3486e9ca2ed01ba98193711b31d4822e5328dc810a0594eb8228aff4e35fd2d4c711ae3f5651886ba1ef89
7
- data.tar.gz: 745c5c73bf6b82d7bedf500529ed9758a7f1f21628fd1f7af0a271ce4d6cc475f5e19e35bff6e61afee5b08c5b74597ddd49e6013fa8ebcd45087b223632136c
6
+ metadata.gz: db25b7d0596f3a95c48d6db579b444ceb10f4c6c1981015b7d4f9307171ad76b60a8f6ec8d06b5395a98f1c56b50d791a7887dd78d51e928efed5e451b3855dc
7
+ data.tar.gz: 29b29a9d23f26800633deee60f09cdfd128db8e96ad63a45aad93782dc841f800d1cbbd02a083dae28733897b7aaa8234a89fef59654c3d57c144f216eaa233c
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sidekiq-datadog (0.5.1)
4
+ sidekiq-datadog (0.5.2)
5
5
  dogstatsd-ruby (>= 4.2.0)
6
6
  sidekiq
7
7
 
@@ -35,7 +35,7 @@ GEM
35
35
  diff-lcs (>= 1.2.0, < 2.0)
36
36
  rspec-support (~> 3.8.0)
37
37
  rspec-support (3.8.0)
38
- rubocop (0.69.0)
38
+ rubocop (0.70.0)
39
39
  jaro_winkler (~> 1.5.1)
40
40
  parallel (~> 1.10)
41
41
  parser (>= 2.6)
@@ -44,7 +44,7 @@ GEM
44
44
  unicode-display_width (>= 1.4.0, < 1.7)
45
45
  rubocop-performance (1.3.0)
46
46
  rubocop (>= 0.68.0)
47
- ruby-progressbar (1.10.0)
47
+ ruby-progressbar (1.10.1)
48
48
  sidekiq (5.2.7)
49
49
  connection_pool (~> 2.2, >= 2.2.2)
50
50
  rack (>= 1.5.0)
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module Datadog
3
- VERSION = '0.5.1'.freeze
3
+ VERSION = '0.5.2'.freeze
4
4
  end
5
5
  end
@@ -42,7 +42,7 @@ module Sidekiq
42
42
 
43
43
  def call(worker, job, queue, *)
44
44
  start = Time.now
45
- clock = Process.clock_gettime(Process::CLOCK_MONOTONIC, :millisecond)
45
+ clock = ::Process.clock_gettime(::Process::CLOCK_MONOTONIC, :millisecond)
46
46
 
47
47
  begin
48
48
  yield
@@ -56,7 +56,7 @@ module Sidekiq
56
56
  private
57
57
 
58
58
  def record(worker, job, queue, start, clock, error=nil) # rubocop:disable Metrics/ParameterLists
59
- msec = Process.clock_gettime(Process::CLOCK_MONOTONIC, :millisecond) - clock
59
+ msec = ::Process.clock_gettime(::Process::CLOCK_MONOTONIC, :millisecond) - clock
60
60
  tags = build_tags(worker, job, queue, error)
61
61
 
62
62
  @statsd.increment @metric_name, tags: tags
@@ -93,4 +93,16 @@ describe Sidekiq::Middleware::Server::Datadog do
93
93
  ])
94
94
  end
95
95
  end
96
+
97
+ context 'when sidekiq/api is required' do
98
+ before do
99
+ require 'sidekiq/api'
100
+ end
101
+
102
+ it 'should not raise any errors' do
103
+ expect do
104
+ subject.call(worker, { 'enqueued_at' => enqueued_at }, 'default') { 'ok' }
105
+ end.not_to raise_error
106
+ end
107
+ end
96
108
  end
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.5.1
4
+ version: 0.5.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dimitrij Denissenko
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-16 00:00:00.000000000 Z
11
+ date: 2019-05-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dogstatsd-ruby