taskinator 0.0.15 → 0.0.16

Sign up to get free protection for your applications and to get access to all the features.
Files changed (47) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +77 -0
  3. data/Gemfile.lock +2 -1
  4. data/README.md +1 -1
  5. data/lib/taskinator/api.rb +3 -1
  6. data/lib/taskinator/create_process_worker.rb +60 -0
  7. data/lib/taskinator/definition.rb +47 -8
  8. data/lib/taskinator/job_worker.rb +2 -2
  9. data/lib/taskinator/logger.rb +13 -75
  10. data/lib/taskinator/persistence.rb +48 -40
  11. data/lib/taskinator/process.rb +13 -6
  12. data/lib/taskinator/process_worker.rb +3 -1
  13. data/lib/taskinator/queues/delayed_job.rb +12 -5
  14. data/lib/taskinator/queues/resque.rb +16 -5
  15. data/lib/taskinator/queues/sidekiq.rb +14 -5
  16. data/lib/taskinator/queues.rb +12 -0
  17. data/lib/taskinator/task.rb +21 -8
  18. data/lib/taskinator/task_worker.rb +3 -1
  19. data/lib/taskinator/tasks.rb +1 -1
  20. data/lib/taskinator/version.rb +1 -1
  21. data/lib/taskinator.rb +20 -1
  22. data/spec/examples/queue_adapter_examples.rb +10 -0
  23. data/spec/spec_helper.rb +11 -0
  24. data/spec/support/mock_definition.rb +22 -0
  25. data/spec/support/spec_support.rb +3 -1
  26. data/spec/support/test_definition.rb +3 -0
  27. data/spec/support/test_process.rb +2 -0
  28. data/spec/support/test_queue.rb +7 -1
  29. data/spec/support/test_task.rb +2 -0
  30. data/spec/taskinator/api_spec.rb +2 -2
  31. data/spec/taskinator/create_process_worker_spec.rb +44 -0
  32. data/spec/taskinator/definition/builder_spec.rb +5 -5
  33. data/spec/taskinator/definition_spec.rb +103 -6
  34. data/spec/taskinator/executor_spec.rb +1 -1
  35. data/spec/taskinator/job_worker_spec.rb +3 -3
  36. data/spec/taskinator/persistence_spec.rb +12 -19
  37. data/spec/taskinator/process_spec.rb +29 -5
  38. data/spec/taskinator/process_worker_spec.rb +3 -3
  39. data/spec/taskinator/queues/delayed_job_spec.rb +23 -6
  40. data/spec/taskinator/queues/resque_spec.rb +27 -6
  41. data/spec/taskinator/queues/sidekiq_spec.rb +28 -10
  42. data/spec/taskinator/task_spec.rb +80 -7
  43. data/spec/taskinator/task_worker_spec.rb +3 -3
  44. data/spec/taskinator/{intermodal_spec.rb → taskinator_spec.rb} +35 -1
  45. data/spec/taskinator/tasks_spec.rb +1 -2
  46. data/taskinator.gemspec +17 -15
  47. metadata +30 -4
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: taskinator
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.15
4
+ version: 0.0.16
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Stefano
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-05-28 00:00:00.000000000 Z
11
+ date: 2015-06-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis
@@ -164,6 +164,20 @@ dependencies:
164
164
  - - ">="
165
165
  - !ruby/object:Gem::Version
166
166
  version: 10.3.0
167
+ - !ruby/object:Gem::Dependency
168
+ name: activesupport
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - ">="
172
+ - !ruby/object:Gem::Version
173
+ version: 4.0.0
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: 4.0.0
167
181
  - !ruby/object:Gem::Dependency
168
182
  name: rspec
169
183
  requirement: !ruby/object:Gem::Requirement
@@ -233,6 +247,7 @@ files:
233
247
  - ".ruby-gemset"
234
248
  - ".ruby-version"
235
249
  - ".travis.yml"
250
+ - CHANGELOG.md
236
251
  - Gemfile
237
252
  - Gemfile.lock
238
253
  - LICENSE.txt
@@ -241,6 +256,7 @@ files:
241
256
  - lib/taskinator.rb
242
257
  - lib/taskinator/api.rb
243
258
  - lib/taskinator/complete_on.rb
259
+ - lib/taskinator/create_process_worker.rb
244
260
  - lib/taskinator/definition.rb
245
261
  - lib/taskinator/definition/builder.rb
246
262
  - lib/taskinator/executor.rb
@@ -266,16 +282,20 @@ files:
266
282
  - spec/examples/task_examples.rb
267
283
  - spec/spec_helper.rb
268
284
  - spec/support/delayed_job.rb
285
+ - spec/support/mock_definition.rb
269
286
  - spec/support/sidekiq_matchers.rb
270
287
  - spec/support/spec_support.rb
288
+ - spec/support/test_definition.rb
271
289
  - spec/support/test_flow.rb
290
+ - spec/support/test_process.rb
272
291
  - spec/support/test_queue.rb
292
+ - spec/support/test_task.rb
273
293
  - spec/taskinator/api_spec.rb
274
294
  - spec/taskinator/complex_process_spec.rb
295
+ - spec/taskinator/create_process_worker_spec.rb
275
296
  - spec/taskinator/definition/builder_spec.rb
276
297
  - spec/taskinator/definition_spec.rb
277
298
  - spec/taskinator/executor_spec.rb
278
- - spec/taskinator/intermodal_spec.rb
279
299
  - spec/taskinator/job_worker_spec.rb
280
300
  - spec/taskinator/persistence_spec.rb
281
301
  - spec/taskinator/process_spec.rb
@@ -286,6 +306,7 @@ files:
286
306
  - spec/taskinator/queues_spec.rb
287
307
  - spec/taskinator/task_spec.rb
288
308
  - spec/taskinator/task_worker_spec.rb
309
+ - spec/taskinator/taskinator_spec.rb
289
310
  - spec/taskinator/tasks_spec.rb
290
311
  - spec/taskinator/visitor_spec.rb
291
312
  - taskinator.gemspec
@@ -321,16 +342,20 @@ test_files:
321
342
  - spec/examples/task_examples.rb
322
343
  - spec/spec_helper.rb
323
344
  - spec/support/delayed_job.rb
345
+ - spec/support/mock_definition.rb
324
346
  - spec/support/sidekiq_matchers.rb
325
347
  - spec/support/spec_support.rb
348
+ - spec/support/test_definition.rb
326
349
  - spec/support/test_flow.rb
350
+ - spec/support/test_process.rb
327
351
  - spec/support/test_queue.rb
352
+ - spec/support/test_task.rb
328
353
  - spec/taskinator/api_spec.rb
329
354
  - spec/taskinator/complex_process_spec.rb
355
+ - spec/taskinator/create_process_worker_spec.rb
330
356
  - spec/taskinator/definition/builder_spec.rb
331
357
  - spec/taskinator/definition_spec.rb
332
358
  - spec/taskinator/executor_spec.rb
333
- - spec/taskinator/intermodal_spec.rb
334
359
  - spec/taskinator/job_worker_spec.rb
335
360
  - spec/taskinator/persistence_spec.rb
336
361
  - spec/taskinator/process_spec.rb
@@ -341,5 +366,6 @@ test_files:
341
366
  - spec/taskinator/queues_spec.rb
342
367
  - spec/taskinator/task_spec.rb
343
368
  - spec/taskinator/task_worker_spec.rb
369
+ - spec/taskinator/taskinator_spec.rb
344
370
  - spec/taskinator/tasks_spec.rb
345
371
  - spec/taskinator/visitor_spec.rb