serially 0.4.0 → 0.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.md +4 -5
- data/lib/serially/version.rb +1 -1
- data/serially.gemspec +1 -2
- metadata +2 -4
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTg0MTE1ZGY1MDEyZGNiNWQ0MWM3OGZkNjQ1MGNiN2NiYjkxMmJhOQ==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZDhhZDNmNzIxMjUwODJjZmRkODliMmUxYTZlOTEyNzI1NTlhODQ5Yg==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ODgwYWUyMDhjN2NhOWVkODYwY2UyN2YxMzJmOTBkNmJlNmE3ZmQ0MDNiODY2
|
10
|
+
Y2Y2ZGVjMTBkNzUxYThiNzc4MzFjNDQwZjk3NDg2ZWM4NTcyYWIwMzY5YWFm
|
11
|
+
OWE1YjIwM2U1OTM5NDRhNWFmNTEyYTlhMWMzNzQwZWY5NzA3MjQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
NWViNDYwZDE5ZmE4ZDY0MDc1ZTcyMTMyZjI2YWUzMjM0MjdmODZiOGYxMDhh
|
14
|
+
OTg1MGUyZjNkMWJjNjUwNTMwMjQ2MWFlYTJjNDkyYTZlZDFkNzE0NTJiZGM0
|
15
|
+
MTk5MmZiYTIxNjQ3Yjc3YTk0ZWE3YjE4M2IzZWViZTU1MjhjMTY=
|
data/README.md
CHANGED
@@ -3,10 +3,9 @@
|
|
3
3
|
[](https://circleci.com/gh/mikemarsian/serially)
|
4
4
|
[](https://codeclimate.com/github/mikemarsian/serially)
|
5
5
|
|
6
|
-
Have you ever had a class
|
7
|
-
Declare the tasks using a simple DSL in the order you want them to to run.
|
8
|
-
|
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
|
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.
|
data/lib/serially/version.rb
CHANGED
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
|
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.
|
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
|
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:
|