sidekiq-retries 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: ddb014b67c73e8344197f534186e3a74f29a8c25
4
+ data.tar.gz: e42449e681a1f1668ebde836c04d1af2258cbfff
5
+ SHA512:
6
+ metadata.gz: ede6f871ffc51e94be143f95b3a0df833f90cdbd90797b1bd2df4a71aeaea4718f8362bf09400bfa08f5ab4f4cef8c32b4f467974e09707fb26297060ecab0f6
7
+ data.tar.gz: 2a6218b7778df1bfdfbec88dea2fd897cee59fe053e27946f6238502b07a8b3350d601fca3e48d06de9cb5639a6003cf89da12013cad3291dc505b819fa35b0c
@@ -0,0 +1,10 @@
1
+ # Changelog
2
+
3
+ ## 0.1.0
4
+
5
+ * sidekiq 3 compatibility
6
+
7
+ ## 0.0.1
8
+
9
+ * initial release for sidekiq 2.17.x
10
+
@@ -38,10 +38,10 @@ module Sidekiq
38
38
  msg['error_message'] = e.message
39
39
  msg['error_class'] = e.class.name
40
40
  count = if msg['retry_count']
41
- msg['retried_at'] = Time.now.utc
41
+ msg['retried_at'] = Time.now.to_f
42
42
  msg['retry_count'] += 1
43
43
  else
44
- msg['failed_at'] = Time.now.utc
44
+ msg['failed_at'] = Time.now.to_f
45
45
  msg['retry_count'] = 0
46
46
  end
47
47
 
@@ -1,5 +1,5 @@
1
1
  module Sidekiq
2
2
  module Retries
3
- VERSION = "0.0.1"
3
+ VERSION = "0.1.0"
4
4
  end
5
5
  end
@@ -18,10 +18,8 @@ Gem::Specification.new do |spec|
18
18
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
19
19
  spec.require_paths = ["lib"]
20
20
 
21
+ spec.add_dependency 'sidekiq', '~>3.0'
21
22
  spec.add_development_dependency "bundler", "~> 1.3"
22
- spec.add_development_dependency "rake"
23
-
24
- spec.add_dependency 'sidekiq', '~>2.17'
25
23
  spec.add_development_dependency 'rake'
26
24
  spec.add_development_dependency 'rspec'
27
25
  spec.add_development_dependency 'rspec-mocks'
@@ -1,4 +1,5 @@
1
1
  require 'spec_helper'
2
+ require 'sidekiq/api'
2
3
 
3
4
  module Sidekiq
4
5
  module Retries
@@ -0,0 +1,19 @@
1
+ begin
2
+ require 'pry'
3
+ rescue LoadError
4
+ end
5
+
6
+ require 'rspec/autorun'
7
+ require 'rspec'
8
+
9
+ require 'celluloid/test'
10
+ require 'sidekiq'
11
+ require 'sidekiq/retries'
12
+ require 'sidekiq/cli'
13
+ Sidekiq.logger.level = Logger::ERROR
14
+
15
+ require 'sidekiq/redis_connection'
16
+ redis_url = ENV['REDIS_URL'] || 'redis://localhost/15'
17
+ REDIS = Sidekiq::RedisConnection.create(:url => redis_url, :namespace => 'sidekiq_retries')
18
+
19
+ Dir[File.join(File.dirname(__FILE__), 'support', '**', '*.rb')].each { |f| require f }
metadata CHANGED
@@ -1,158 +1,125 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sidekiq-retries
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 0.1.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Benjamin Ortega
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2014-02-06 00:00:00.000000000 Z
11
+ date: 2014-08-18 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
- name: bundler
14
+ name: sidekiq
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ~>
17
+ - - "~>"
20
18
  - !ruby/object:Gem::Version
21
- version: '1.3'
22
- type: :development
19
+ version: '3.0'
20
+ type: :runtime
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ~>
24
+ - - "~>"
28
25
  - !ruby/object:Gem::Version
29
- version: '1.3'
26
+ version: '3.0'
30
27
  - !ruby/object:Gem::Dependency
31
- name: rake
28
+ name: bundler
32
29
  requirement: !ruby/object:Gem::Requirement
33
- none: false
34
30
  requirements:
35
- - - ! '>='
31
+ - - "~>"
36
32
  - !ruby/object:Gem::Version
37
- version: '0'
33
+ version: '1.3'
38
34
  type: :development
39
35
  prerelease: false
40
36
  version_requirements: !ruby/object:Gem::Requirement
41
- none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
45
- version: '0'
46
- - !ruby/object:Gem::Dependency
47
- name: sidekiq
48
- requirement: !ruby/object:Gem::Requirement
49
- none: false
50
- requirements:
51
- - - ~>
52
- - !ruby/object:Gem::Version
53
- version: '2.17'
54
- type: :runtime
55
- prerelease: false
56
- version_requirements: !ruby/object:Gem::Requirement
57
- none: false
58
37
  requirements:
59
- - - ~>
38
+ - - "~>"
60
39
  - !ruby/object:Gem::Version
61
- version: '2.17'
40
+ version: '1.3'
62
41
  - !ruby/object:Gem::Dependency
63
42
  name: rake
64
43
  requirement: !ruby/object:Gem::Requirement
65
- none: false
66
44
  requirements:
67
- - - ! '>='
45
+ - - ">="
68
46
  - !ruby/object:Gem::Version
69
47
  version: '0'
70
48
  type: :development
71
49
  prerelease: false
72
50
  version_requirements: !ruby/object:Gem::Requirement
73
- none: false
74
51
  requirements:
75
- - - ! '>='
52
+ - - ">="
76
53
  - !ruby/object:Gem::Version
77
54
  version: '0'
78
55
  - !ruby/object:Gem::Dependency
79
56
  name: rspec
80
57
  requirement: !ruby/object:Gem::Requirement
81
- none: false
82
58
  requirements:
83
- - - ! '>='
59
+ - - ">="
84
60
  - !ruby/object:Gem::Version
85
61
  version: '0'
86
62
  type: :development
87
63
  prerelease: false
88
64
  version_requirements: !ruby/object:Gem::Requirement
89
- none: false
90
65
  requirements:
91
- - - ! '>='
66
+ - - ">="
92
67
  - !ruby/object:Gem::Version
93
68
  version: '0'
94
69
  - !ruby/object:Gem::Dependency
95
70
  name: rspec-mocks
96
71
  requirement: !ruby/object:Gem::Requirement
97
- none: false
98
72
  requirements:
99
- - - ! '>='
73
+ - - ">="
100
74
  - !ruby/object:Gem::Version
101
75
  version: '0'
102
76
  type: :development
103
77
  prerelease: false
104
78
  version_requirements: !ruby/object:Gem::Requirement
105
- none: false
106
79
  requirements:
107
- - - ! '>='
80
+ - - ">="
108
81
  - !ruby/object:Gem::Version
109
82
  version: '0'
110
83
  - !ruby/object:Gem::Dependency
111
84
  name: activesupport
112
85
  requirement: !ruby/object:Gem::Requirement
113
- none: false
114
86
  requirements:
115
- - - ~>
87
+ - - "~>"
116
88
  - !ruby/object:Gem::Version
117
89
  version: '3'
118
90
  type: :development
119
91
  prerelease: false
120
92
  version_requirements: !ruby/object:Gem::Requirement
121
- none: false
122
93
  requirements:
123
- - - ~>
94
+ - - "~>"
124
95
  - !ruby/object:Gem::Version
125
96
  version: '3'
126
97
  - !ruby/object:Gem::Dependency
127
98
  name: simplecov
128
99
  requirement: !ruby/object:Gem::Requirement
129
- none: false
130
100
  requirements:
131
- - - ! '>='
101
+ - - ">="
132
102
  - !ruby/object:Gem::Version
133
103
  version: '0'
134
104
  type: :development
135
105
  prerelease: false
136
106
  version_requirements: !ruby/object:Gem::Requirement
137
- none: false
138
107
  requirements:
139
- - - ! '>='
108
+ - - ">="
140
109
  - !ruby/object:Gem::Version
141
110
  version: '0'
142
111
  - !ruby/object:Gem::Dependency
143
112
  name: rspec-sidekiq
144
113
  requirement: !ruby/object:Gem::Requirement
145
- none: false
146
114
  requirements:
147
- - - ! '>='
115
+ - - ">="
148
116
  - !ruby/object:Gem::Version
149
117
  version: '0'
150
118
  type: :development
151
119
  prerelease: false
152
120
  version_requirements: !ruby/object:Gem::Requirement
153
- none: false
154
121
  requirements:
155
- - - ! '>='
122
+ - - ">="
156
123
  - !ruby/object:Gem::Version
157
124
  version: '0'
158
125
  description: Enhanced retry logic for Sidekiq workers
@@ -162,8 +129,9 @@ executables: []
162
129
  extensions: []
163
130
  extra_rdoc_files: []
164
131
  files:
165
- - .gitignore
132
+ - ".gitignore"
166
133
  - Gemfile
134
+ - HISTORY.md
167
135
  - LICENSE.txt
168
136
  - README.md
169
137
  - Rakefile
@@ -173,36 +141,31 @@ files:
173
141
  - lib/sidekiq/retries/version.rb
174
142
  - sidekiq-retries.gemspec
175
143
  - spec/lib/sidekiq/retries/server/middleware_spec.rb
144
+ - spec/spec_helper.rb
176
145
  homepage: ''
177
146
  licenses:
178
147
  - MIT
148
+ metadata: {}
179
149
  post_install_message:
180
150
  rdoc_options: []
181
151
  require_paths:
182
152
  - lib
183
153
  required_ruby_version: !ruby/object:Gem::Requirement
184
- none: false
185
154
  requirements:
186
- - - ! '>='
155
+ - - ">="
187
156
  - !ruby/object:Gem::Version
188
157
  version: '0'
189
- segments:
190
- - 0
191
- hash: -4325984513531570110
192
158
  required_rubygems_version: !ruby/object:Gem::Requirement
193
- none: false
194
159
  requirements:
195
- - - ! '>='
160
+ - - ">="
196
161
  - !ruby/object:Gem::Version
197
162
  version: '0'
198
- segments:
199
- - 0
200
- hash: -4325984513531570110
201
163
  requirements: []
202
164
  rubyforge_project:
203
- rubygems_version: 1.8.23
165
+ rubygems_version: 2.2.2
204
166
  signing_key:
205
- specification_version: 3
167
+ specification_version: 4
206
168
  summary: Enhanced retry logic for Sidekiq workers
207
169
  test_files:
208
170
  - spec/lib/sidekiq/retries/server/middleware_spec.rb
171
+ - spec/spec_helper.rb