swiftcore-tasks 0.1.0 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +1 -1
- data/lib/swiftcore/tasks/tasklist.rb +4 -4
- data/lib/swiftcore/tasks/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b9e37d8e38a62583dad3b8f7d7ceab5a3f5e74f6c6d41ef7480d02fb9100b9b5
|
4
|
+
data.tar.gz: c983dd8a50fb1c1c59ab8b2099d02a546541e7a0b9224bd606b5ebaf8b5151d1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bcc9ecab83a9e71d0393890ddaa1b4d64421ee7ba92f6f7961c73ca9481ee4b8765b233128a611422368c16995546ab7c3840e70c8f8a75739cb626df53d7148
|
7
|
+
data.tar.gz: f4f9ce32b062cb5d01464484d66ff91d5274278f4a787adf5b3e9a9a519e609c4c79a7bb83272ba6622884cfe891ec688372edf84701b2c455aeb8ce8adbbd4b
|
data/Gemfile.lock
CHANGED
@@ -14,9 +14,9 @@ module Swiftcore
|
|
14
14
|
super(*args)
|
15
15
|
end
|
16
16
|
|
17
|
-
def run
|
17
|
+
def run(*args)
|
18
18
|
@status = :running
|
19
|
-
tick while any?
|
19
|
+
tick(*args) while any?
|
20
20
|
@status = :finished
|
21
21
|
end
|
22
22
|
|
@@ -26,11 +26,11 @@ module Swiftcore
|
|
26
26
|
end
|
27
27
|
|
28
28
|
# Run a single task in the queue.
|
29
|
-
def tick
|
29
|
+
def tick(*args)
|
30
30
|
prior_status = @status
|
31
31
|
@status = :tick
|
32
32
|
task = first
|
33
|
-
result = task.call
|
33
|
+
result = task.call(*args)
|
34
34
|
delete task
|
35
35
|
merge(result) if result.is_a?(TaskList)
|
36
36
|
@status = prior_status
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: swiftcore-tasks
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kirk Haines
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-10-
|
11
|
+
date: 2018-10-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|