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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9d0d01200027a06200339af48535cbe026187165932737e2d425f2ec3e257488
4
- data.tar.gz: a6ff25224dc5667f9d4d1c3f9e80b206e20e1bd75da26c17e1764acf16ce703f
3
+ metadata.gz: b9e37d8e38a62583dad3b8f7d7ceab5a3f5e74f6c6d41ef7480d02fb9100b9b5
4
+ data.tar.gz: c983dd8a50fb1c1c59ab8b2099d02a546541e7a0b9224bd606b5ebaf8b5151d1
5
5
  SHA512:
6
- metadata.gz: e24f0a3a35d9a7ab75cc28405f33a159c4e3fb8d484a1ef22d7d9f96fc8e74a3768311aabcde4853021f29567014692bb27d77b7010b8d15939f018892b034f2
7
- data.tar.gz: 4dc177905310462e6c5f21140461a573bfc5fed6506b0d696c7990eb64ca8c389954ff7a040dc335c13857fa539ecd39497bee64440417971e08bc1704e8bd83
6
+ metadata.gz: bcc9ecab83a9e71d0393890ddaa1b4d64421ee7ba92f6f7961c73ca9481ee4b8765b233128a611422368c16995546ab7c3840e70c8f8a75739cb626df53d7148
7
+ data.tar.gz: f4f9ce32b062cb5d01464484d66ff91d5274278f4a787adf5b3e9a9a519e609c4c79a7bb83272ba6622884cfe891ec688372edf84701b2c455aeb8ce8adbbd4b
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- swiftcore-tasks (0.1.0)
4
+ swiftcore-tasks (0.2.0)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -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
@@ -2,6 +2,6 @@
2
2
 
3
3
  module Swiftcore
4
4
  module Tasks
5
- VERSION = '0.1.0'
5
+ VERSION = '0.2.0'
6
6
  end
7
7
  end
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.1.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-16 00:00:00.000000000 Z
11
+ date: 2018-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler