serially 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- NzlmMzhlZjEwYWU1ZjRmMmUyYjA5MGVmZjZiMDQ2NTAyYzQwMzMyNQ==
4
+ OTg0MTE1ZGY1MDEyZGNiNWQ0MWM3OGZkNjQ1MGNiN2NiYjkxMmJhOQ==
5
5
  data.tar.gz: !binary |-
6
- YjU1YjBlNGM4NjQ2ZmUxZDVkNTQyZGY2MzVkNTdlYjIyODQ4NTYwZQ==
6
+ ZDhhZDNmNzIxMjUwODJjZmRkODliMmUxYTZlOTEyNzI1NTlhODQ5Yg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MjFlYjZkOTcxODg5NjBiYjUzOTU0YWZmNjljZjc1NTA2OWZkYTgxNGE1ODhl
10
- NmNiYTdhYzI5MzNmYzY5MGE0YmNlMDc4MmNlZjZlYTU2YmU3MTA2MzYwN2Uy
11
- ODYwNDQ1YTFmOGUxMDQyMDBkNzZlYjdiYTY5N2M3OTk4NDhhNDI=
9
+ ODgwYWUyMDhjN2NhOWVkODYwY2UyN2YxMzJmOTBkNmJlNmE3ZmQ0MDNiODY2
10
+ Y2Y2ZGVjMTBkNzUxYThiNzc4MzFjNDQwZjk3NDg2ZWM4NTcyYWIwMzY5YWFm
11
+ OWE1YjIwM2U1OTM5NDRhNWFmNTEyYTlhMWMzNzQwZWY5NzA3MjQ=
12
12
  data.tar.gz: !binary |-
13
- OGJhOTg2NDJjMzNjZDljZjY0YWRkNTE5MGE4MmEzMGVjZTM1MmUxMzNjMzA1
14
- ZjljNTFhZjJhODg5ZDU5ZjQ5ZmQ4M2ZjYzRkMGI3OWFjZmFmNTcwNDIxOGU3
15
- MzdiZDU4MjVlMGQ0OTdlMjRkODMxODhkYjUyOWQ5ZDliYjJiZGQ=
13
+ NWViNDYwZDE5ZmE4ZDY0MDc1ZTcyMTMyZjI2YWUzMjM0MjdmODZiOGYxMDhh
14
+ OTg1MGUyZjNkMWJjNjUwNTMwMjQ2MWFlYTJjNDkyYTZlZDFkNzE0NTJiZGM0
15
+ MTk5MmZiYTIxNjQ3Yjc3YTk0ZWE3YjE4M2IzZWViZTU1MjhjMTY=
data/README.md CHANGED
@@ -3,10 +3,9 @@
3
3
  [![Build Status](https://circleci.com/gh/mikemarsian/serially.svg?&style=shield&circle-token=93a8f2925ebdd64032108118ef6e17eb3848d767)](https://circleci.com/gh/mikemarsian/serially)
4
4
  [![Code Climate](https://codeclimate.com/github/mikemarsian/serially/badges/gpa.svg)](https://codeclimate.com/github/mikemarsian/serially)
5
5
 
6
- Have you ever had a class that required a series of background tasks to run serially, strictly one after another? Then Serially is for you.
7
- Declare the tasks using a simple DSL in the order you want them to to run. Serially will wrap them in a single job, and schedule it using Resque
8
- in a queue you specify (or a default one). The next task will run only if the previous one has finished successfully. All task run results are written to DB and can be inspected (that is if
9
- your class is an ActiveRecord model).
6
+ Have you ever had a class whose instances required a series of background tasks to run serially, strictly one after another? Than Serially is for you.
7
+ Declare the tasks using a simple DSL in the order you want them to to run. The tasks for each instance will run inside a separate Resque job, in a queue you specify. The next task will run only if the previous one has finished successfully. All task runs are written to DB and can be inspected.
8
+
10
9
 
11
10
  Check [this demo app][1] to see how Serially may be used in a Rails app.
12
11
 
@@ -170,7 +169,7 @@ class Post < ActiveRecord::Base
170
169
  end
171
170
  end
172
171
  ```
173
- #### On Error Callback
172
+ #### On Error Callbacks
174
173
  You can provide an error handling callback for each task, which will be called if a task fails to finish successfully. If the error handling
175
174
  callback returns `true`, the execution will continue to next task, despite the failure of the previous one, otherwise tasks
176
175
  execution will stop as expected.
@@ -1,3 +1,3 @@
1
1
  module Serially
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
data/serially.gemspec CHANGED
@@ -36,8 +36,7 @@ Gem::Specification.new do |spec|
36
36
 
37
37
  spec.description = <<desc
38
38
  Have you ever had a class whose instances required a series of background tasks to run serially, strictly one after another? Than Serially is for you.
39
- Declare the tasks using a simple DSL in the order you want them to to run. The tasks for each instance will run inside a separate Resque job, in a queue you specify. The next task will run only if the previous one has finished successfully. All task runs are written to DB and can be inspected (if
40
- your class is an ActiveRecord object).
39
+ Declare the tasks using a simple DSL in the order you want them to to run. The tasks for each instance will run inside a separate Resque job, in a queue you specify. The next task will run only if the previous one has finished successfully. All task runs are written to DB and can be inspected.
41
40
  desc
42
41
 
43
42
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: serially
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Polischuk
@@ -170,9 +170,7 @@ description: ! 'Have you ever had a class whose instances required a series of b
170
170
  Declare the tasks using a simple DSL in the order you want them to to run. The tasks
171
171
  for each instance will run inside a separate Resque job, in a queue you specify.
172
172
  The next task will run only if the previous one has finished successfully. All task
173
- runs are written to DB and can be inspected (if
174
-
175
- your class is an ActiveRecord object).
173
+ runs are written to DB and can be inspected.
176
174
 
177
175
  '
178
176
  email: