serially 0.1.3 → 0.2.0

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 CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- M2ZlZTI1ZjYzZmYwMTBhZDQ5ZDZhM2U3MTMzYjVmYmQwYzUwZTdjMQ==
4
+ ZDI4ZDNhOGNmOWY5NzdmZDQ2ZmQ0MTk0YmRiMTcxZDVkZWIwNDg0Mw==
5
5
  data.tar.gz: !binary |-
6
- YmIzNTJmZGZhMGY1ZGZhMzY5YmUzNTZjNmI3MDRkZTU1Zjg1ZmI5YQ==
6
+ ZGMwODc1M2I1NWU5ZWQ4NTcyODlmM2I5ZTg3ZDI4OTU3ZjdhZjY2Mg==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- YWZhYzgzMTlhY2FkMzdlMDAyMWMyYTQ1ZjIzYjhkOWZmYzE4MjZiYTRjNzRk
10
- MWM2YjI5N2NiMjBmNTNmOTAwZGQxZDc4YTkxNWQ4NTg2YWM3NTFjY2YxNzcy
11
- OTg1N2U0MDFjMDYwYzA1YTJhYTkxOTdiNTU0ZTIyYzBjOWQ0ZGM=
9
+ MTZiMjE0YzQwYTQxNzUyNWQwOThkMDc0MjA4OWU1MGM0YjllMzVjZjc1NjFk
10
+ Y2Q0MGI2MWMxYjFmY2RhNDI3MTYyNTIwZmE0M2NiMDU5NWY2M2QxMDdmYjFi
11
+ NTIzMTcyZmQzNjAzODAzMjFkNmQwZTJlMjEwYWUyZWNjZGU0OTA=
12
12
  data.tar.gz: !binary |-
13
- NjhjMTM3NTMwNTRhODQ3NTcxYmFkOTE5MWVjODg4ZGRlZjc3OGUyYjY2MWRj
14
- MjA2ZGYwNDMwYzRjM2MyOTlmZjg2Y2M0NGRlN2FlOTI0YzkwNmI5NDdmZjhm
15
- MWVkOGI0Y2YxYTM3ZjRhNjcxNGIxMjVmNGM0ZTY1MTNlNjA4MjU=
13
+ MmFmZWYxM2M4ODYxODRjNTYzNTE0ZDI3ZDE4MmI4MDU4ZjQ2N2E1OTAyYWZm
14
+ N2JiMWEyZjExMmU2MjJmOGFhNzNkZmMzZGM3NjNjMWFjZTQ2NGUzMmUwYzRi
15
+ ZmEyYTZmMjE2YzI3MGZhZjgxNjA5MzBjNzg5ZDMxM2Y3MmFkOTY=
data/README.md CHANGED
@@ -5,11 +5,15 @@
5
5
 
6
6
  Have you ever had a class that required a series of background tasks to run serially, strictly one after another? Than Serially is for you.
7
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 `serially` queue (the queue is customizable). The next task will start only if previous one finished successfully. All task runs are written to DB and can be inspected (if
8
+ in a queue you specify (or a default one). The next task will run only if previous one finished successfully. All task runs are written to DB and can be inspected (if
9
9
  your class is an ActiveRecord object).
10
10
 
11
11
  Check [this demo app][1] to see how Serially may be used in a Rails app.
12
12
 
13
+ Note: Serially is under active development. If there is anything you miss in it, please let me know!
14
+
15
+ Twitter: @mikepolis Email: mike AT polischuk DOT net
16
+
13
17
  ## Installation
14
18
 
15
19
  Add this line to your application's Gemfile:
@@ -67,7 +71,8 @@ class Post < ActiveRecord::Base
67
71
  end
68
72
  ```
69
73
 
70
- After creating a Post, you can run `post.serially.start!` to schedule your Post tasks to run serially. They will run one after the other in the scope of the same `Serially::Job`.
74
+ After creating a Post, you can run `post.serially.start!` to schedule your Post tasks to run serially. They will run one after the other in the scope of the same `Serially::Job`
75
+ in the default `serially` queue.
71
76
  An example run:
72
77
  ```ruby
73
78
  post1 = Post.create(title: 'Critique of Pure Reason', author: 'Immanuel Kant') #=> <Post id: 1, title: 'Critique of Pure Reason'...>
@@ -1,3 +1,3 @@
1
1
  module Serially
2
- VERSION = "0.1.3"
2
+ VERSION = "0.2.0"
3
3
  end
data/serially.gemspec CHANGED
@@ -35,9 +35,9 @@ Gem::Specification.new do |spec|
35
35
 
36
36
  spec.description = <<desc
37
37
  Have you ever had a class that required a series of background tasks to run serially, strictly one after another? Than Serially is for you.
38
- All background jobs are scheduled using resque and Serially makes sure that for every instance of your class, only one task runs at a time.
39
- Different instances of the same class do not interfere with each other and their tasks can run in parallel.
40
- Serially works for both plain ruby classes and ActiveRecord models. In case of the latter, all task runs results are written to serially_tasks table which you can interrogate pragmatically using Serially::TaskRun model.
38
+ 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
39
+ in a queue you specify (or a default one). The next task will run only if previous one finished successfully. All task runs are written to DB and can be inspected (if
40
+ your class is an ActiveRecord object).
41
41
  desc
42
42
 
43
43
  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.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Polischuk
@@ -167,15 +167,14 @@ dependencies:
167
167
  description: ! 'Have you ever had a class that required a series of background tasks
168
168
  to run serially, strictly one after another? Than Serially is for you.
169
169
 
170
- All background jobs are scheduled using resque and Serially makes sure that for
171
- every instance of your class, only one task runs at a time.
170
+ Declare the tasks using a simple DSL in the order you want them to to run. Serially
171
+ will wrap them in a single job, and schedule it using Resque
172
172
 
173
- Different instances of the same class do not interfere with each other and their
174
- tasks can run in parallel.
173
+ in a queue you specify (or a default one). The next task will run only if previous
174
+ one finished successfully. All task runs are written to DB and can be inspected
175
+ (if
175
176
 
176
- Serially works for both plain ruby classes and ActiveRecord models. In case of the
177
- latter, all task runs results are written to serially_tasks table which you can
178
- interrogate pragmatically using Serially::TaskRun model.
177
+ your class is an ActiveRecord object).
179
178
 
180
179
  '
181
180
  email: