sidekiq_error_label 1.0.0 → 1.0.1

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: 7e139082e8a73bfdabb2ca42dfee491388accd04
4
- data.tar.gz: 26e5b03da02e6ddc74e2aa8f6ba52f9326c0ccda
3
+ metadata.gz: d7e5a46f7f9a809bd659dfcdd8dbeb3075485152
4
+ data.tar.gz: 82a2d4106594c40a3c0bb683367689a9c7d6f794
5
5
  SHA512:
6
- metadata.gz: 7a7d2b01572ea0803d6ce6f2977907084e9943a07e6c38641766d6f2ab481fde92e22bd88acaccc411bfd283f0baf7e5c3704d08fbfd06c8395ac92a6bda01c6
7
- data.tar.gz: e6c32776b81e353f3a8c269fd730d4ce0255bca4fafc0c0bcc97af3ecd97f404ff2d8960fecb03f14928725a6a53f8c4ab6bf715b9032d3e52feae23f8068fe4
6
+ metadata.gz: 0fb550f2e50b29df39a88d1fe407a7863f7938384cd49d77f2472d59b0c1b50ce404871cad6fe6845c6568bc1277c7c6858393d86689fd1c27410cf866d11db9
7
+ data.tar.gz: 49644e6c74d0d594883065630cb945a567a44535dbacbdb6e2530e31878204152f7c0bed3594365a08de94c9c4292eabc6b4ec48dcd2ec7c19e6f745bc74cc11
@@ -23,7 +23,7 @@ class SidekiqErrorLabel::Middleware
23
23
  end
24
24
 
25
25
  def label_exception?(job)
26
- job['retry_count'] && job['retry_count'] < @retries_threshold
26
+ job['retry_count'].nil? || job['retry_count'] < @retries_threshold
27
27
  end
28
28
 
29
29
  def self.label(name = :default)
@@ -1,3 +1,3 @@
1
1
  module SidekiqErrorLabel
2
- VERSION = "1.0.0"
2
+ VERSION = "1.0.1"
3
3
  end
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq_error_label
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tema Bolshakov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-04 00:00:00.000000000 Z
11
+ date: 2014-08-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ~>
17
+ - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.6'
20
20
  type: :development
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - ~>
24
+ - - "~>"
25
25
  - !ruby/object:Gem::Version
26
26
  version: '1.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - '>='
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
33
  version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - '>='
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
40
  version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rspec
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ~>
45
+ - - "~>"
46
46
  - !ruby/object:Gem::Version
47
47
  version: '3.0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ~>
52
+ - - "~>"
53
53
  - !ruby/object:Gem::Version
54
54
  version: '3.0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: sidekiq
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - '>='
59
+ - - ">="
60
60
  - !ruby/object:Gem::Version
61
61
  version: '0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - '>='
66
+ - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: activesupport
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - '>='
73
+ - - ">="
74
74
  - !ruby/object:Gem::Version
75
75
  version: '0'
76
76
  type: :runtime
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - '>='
80
+ - - ">="
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  description: Label sidekiq exception.
@@ -87,8 +87,8 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - .gitignore
91
- - .rspec
90
+ - ".gitignore"
91
+ - ".rspec"
92
92
  - Gemfile
93
93
  - LICENSE.txt
94
94
  - README.md
@@ -110,12 +110,12 @@ require_paths:
110
110
  - lib
111
111
  required_ruby_version: !ruby/object:Gem::Requirement
112
112
  requirements:
113
- - - '>='
113
+ - - ">="
114
114
  - !ruby/object:Gem::Version
115
115
  version: '0'
116
116
  required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  requirements:
118
- - - '>='
118
+ - - ">="
119
119
  - !ruby/object:Gem::Version
120
120
  version: '0'
121
121
  requirements: []
@@ -127,3 +127,4 @@ summary: Label sidekiq exception.
127
127
  test_files:
128
128
  - spec/sidekiq_error_label/middleware_spec.rb
129
129
  - spec/spec_helper.rb
130
+ has_rdoc: