activejob-retriable 5.0.1 → 5.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/active_job/retriable.rb +26 -5
- data/lib/active_job/retriable/version.rb +1 -1
- data/test/active_job/retriable_test.rb +26 -0
- data/test/dummy/db/test.sqlite3 +0 -0
- data/test/dummy/log/test.log +5371 -0
- data/test/test_helper.rb +12 -0
- metadata +41 -37
data/test/test_helper.rb
CHANGED
@@ -22,4 +22,16 @@ require 'active_job/retriable/test_helper'
|
|
22
22
|
|
23
23
|
class ActiveJob::TestCase
|
24
24
|
include ActiveJob::Retriable::TestHelper
|
25
|
+
|
26
|
+
def capture_stderr
|
27
|
+
begin
|
28
|
+
original_stderr = $stderr
|
29
|
+
|
30
|
+
$stderr = StringIO.new('', 'w')
|
31
|
+
yield
|
32
|
+
$stderr.string
|
33
|
+
ensure
|
34
|
+
$stderr = original_stderr
|
35
|
+
end
|
36
|
+
end
|
25
37
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: activejob-retriable
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 5.0.
|
4
|
+
version: 5.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Coyne
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-08-05 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: activejob
|
@@ -110,6 +110,8 @@ files:
|
|
110
110
|
- test/dummy/config/secrets.yml
|
111
111
|
- test/dummy/db/migrate/20150710003724_create_people.rb
|
112
112
|
- test/dummy/db/schema.rb
|
113
|
+
- test/dummy/db/test.sqlite3
|
114
|
+
- test/dummy/log/test.log
|
113
115
|
- test/dummy/public/404.html
|
114
116
|
- test/dummy/public/422.html
|
115
117
|
- test/dummy/public/500.html
|
@@ -144,49 +146,51 @@ summary: Automatically retry failed jobs.
|
|
144
146
|
test_files:
|
145
147
|
- test/active_job/retriable/test_adapter_test.rb
|
146
148
|
- test/active_job/retriable_test.rb
|
147
|
-
- test/
|
148
|
-
- test/dummy/
|
149
|
-
- test/dummy/
|
150
|
-
- test/dummy/
|
151
|
-
- test/dummy/
|
152
|
-
- test/dummy/app/jobs/callbacks_job.rb
|
153
|
-
- test/dummy/app/jobs/max_job.rb
|
154
|
-
- test/dummy/app/jobs/noop_job.rb
|
155
|
-
- test/dummy/app/jobs/raise_job.rb
|
156
|
-
- test/dummy/app/jobs/rescue_job.rb
|
157
|
-
- test/dummy/app/models/person.rb
|
158
|
-
- test/dummy/app/views/layouts/application.html.erb
|
159
|
-
- test/dummy/bin/bundle
|
160
|
-
- test/dummy/bin/rails
|
161
|
-
- test/dummy/bin/rake
|
162
|
-
- test/dummy/bin/setup
|
163
|
-
- test/dummy/config/application.rb
|
164
|
-
- test/dummy/config/boot.rb
|
165
|
-
- test/dummy/config/database.yml
|
166
|
-
- test/dummy/config/environment.rb
|
167
|
-
- test/dummy/config/environments/development.rb
|
168
|
-
- test/dummy/config/environments/production.rb
|
149
|
+
- test/test_helper.rb
|
150
|
+
- test/dummy/db/test.sqlite3
|
151
|
+
- test/dummy/db/schema.rb
|
152
|
+
- test/dummy/db/migrate/20150710003724_create_people.rb
|
153
|
+
- test/dummy/config/routes.rb
|
169
154
|
- test/dummy/config/environments/test.rb
|
170
|
-
- test/dummy/config/
|
155
|
+
- test/dummy/config/environments/production.rb
|
156
|
+
- test/dummy/config/environments/development.rb
|
157
|
+
- test/dummy/config/boot.rb
|
171
158
|
- test/dummy/config/initializers/backtrace_silencers.rb
|
172
|
-
- test/dummy/config/initializers/cookies_serializer.rb
|
173
|
-
- test/dummy/config/initializers/filter_parameter_logging.rb
|
174
159
|
- test/dummy/config/initializers/inflections.rb
|
160
|
+
- test/dummy/config/initializers/wrap_parameters.rb
|
175
161
|
- test/dummy/config/initializers/mime_types.rb
|
162
|
+
- test/dummy/config/initializers/assets.rb
|
163
|
+
- test/dummy/config/initializers/cookies_serializer.rb
|
176
164
|
- test/dummy/config/initializers/session_store.rb
|
177
|
-
- test/dummy/config/initializers/
|
165
|
+
- test/dummy/config/initializers/filter_parameter_logging.rb
|
178
166
|
- test/dummy/config/locales/en.yml
|
179
|
-
- test/dummy/config/
|
167
|
+
- test/dummy/config/environment.rb
|
168
|
+
- test/dummy/config/application.rb
|
180
169
|
- test/dummy/config/secrets.yml
|
181
|
-
- test/dummy/config.
|
182
|
-
- test/dummy/
|
183
|
-
- test/dummy/
|
184
|
-
- test/dummy/
|
185
|
-
- test/dummy/
|
186
|
-
- test/dummy/
|
187
|
-
- test/dummy/
|
170
|
+
- test/dummy/config/database.yml
|
171
|
+
- test/dummy/app/helpers/application_helper.rb
|
172
|
+
- test/dummy/app/assets/javascripts/application.js
|
173
|
+
- test/dummy/app/assets/stylesheets/application.css
|
174
|
+
- test/dummy/app/views/layouts/application.html.erb
|
175
|
+
- test/dummy/app/jobs/noop_job.rb
|
176
|
+
- test/dummy/app/jobs/max_job.rb
|
177
|
+
- test/dummy/app/jobs/application_job.rb
|
178
|
+
- test/dummy/app/jobs/raise_job.rb
|
179
|
+
- test/dummy/app/jobs/callbacks_job.rb
|
180
|
+
- test/dummy/app/jobs/rescue_job.rb
|
181
|
+
- test/dummy/app/controllers/application_controller.rb
|
182
|
+
- test/dummy/app/models/person.rb
|
188
183
|
- test/dummy/Rakefile
|
189
184
|
- test/dummy/README.rdoc
|
185
|
+
- test/dummy/public/422.html
|
186
|
+
- test/dummy/public/favicon.ico
|
187
|
+
- test/dummy/public/404.html
|
188
|
+
- test/dummy/public/500.html
|
189
|
+
- test/dummy/config.ru
|
190
|
+
- test/dummy/bin/rails
|
191
|
+
- test/dummy/bin/setup
|
192
|
+
- test/dummy/bin/rake
|
193
|
+
- test/dummy/bin/bundle
|
190
194
|
- test/dummy/test/fixtures/people.yml
|
191
195
|
- test/dummy/test/models/person_test.rb
|
192
|
-
- test/
|
196
|
+
- test/dummy/log/test.log
|