conflow 0.4.1 → 0.4.2

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: 172b50e6e55599152b9db5caa41bf3c2c12a3ea50211cba7abee58a4087caa78
4
- data.tar.gz: 73dbbd9b138d9e5dd97e3827f595f80274b51a62aa1da59b39e443c4b190ad54
3
+ metadata.gz: 1a5fd0855064090060660454b6b80848447b5a56aa1c4eb97d19c4e8374f5aba
4
+ data.tar.gz: 4adedced19368e74cb42d227e6fdbd44b47ab94cc0d4e6f686021a75fe27aa8d
5
5
  SHA512:
6
- metadata.gz: 67ce640beb104c23a542f3ba8439922a7582c5a4debf7ce444e39137ae6c019b901e529ab1fb8722826a1a554d2d973c791d16aff02883493691d5297cf4b97c
7
- data.tar.gz: 991a119e2a9bcc11fafe10ce53b53f121e1b5103773a8471ad9c52cbc734c60dc32cade6473564088fdf87e1ab354bb7bd237c61683855da840cf20186824943
6
+ metadata.gz: ca765edb42cb621e9acdf371c5616dcbf2fd8029553555ac655eb5da24d56ead5537293830019bcbd1f980fe2ef37870f432f04edf168e13ccd548f6bab74688
7
+ data.tar.gz: 29960275080a161bb4b7bb65273e026f51250ae2c5866e136d20cf03a0154251524466b4e479a7cff34675044a96b7f57006e021c5d8dd67725bf174b93a390a
@@ -1,3 +1,7 @@
1
+ ## 0.4.2
2
+
3
+ - If job didn't return a hash, result will not be persisted at all
4
+
1
5
  ## 0.4.1
2
6
 
3
7
  - Prevent enqueing jobs and finishing flow during flow configuration
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- conflow (0.4.1)
4
+ conflow (0.4.2)
5
5
  redis (~> 4.0)
6
6
 
7
7
  GEM
@@ -22,7 +22,7 @@ GEM
22
22
  coderay (~> 1.1.0)
23
23
  method_source (~> 0.9.0)
24
24
  rainbow (3.0.0)
25
- rake (12.3.0)
25
+ rake (12.3.1)
26
26
  redis (4.0.1)
27
27
  rspec (3.7.0)
28
28
  rspec-core (~> 3.7.0)
@@ -37,7 +37,7 @@ GEM
37
37
  diff-lcs (>= 1.2.0, < 2.0)
38
38
  rspec-support (~> 3.7.0)
39
39
  rspec-support (3.7.1)
40
- rubocop (0.53.0)
40
+ rubocop (0.54.0)
41
41
  parallel (~> 1.10)
42
42
  parser (>= 2.5)
43
43
  powerpack (~> 0.1)
@@ -45,7 +45,7 @@ GEM
45
45
  ruby-progressbar (~> 1.7)
46
46
  unicode-display_width (~> 1.0, >= 1.0.1)
47
47
  ruby-progressbar (1.9.0)
48
- simplecov (0.16.0)
48
+ simplecov (0.16.1)
49
49
  docile (~> 1.1)
50
50
  json (>= 1.8, < 3)
51
51
  simplecov-html (~> 0.10.0)
@@ -32,7 +32,7 @@ module Conflow
32
32
  # @param job [Conflow::Job] job to be marked as finished
33
33
  # @param result [Object] result of the job
34
34
  def finish(job, result = nil)
35
- job.result = result if result
35
+ job.result = result if result.is_a?(Hash) && result.any?
36
36
  call_script(Conflow::Redis::CompleteJobScript, job)
37
37
  queue_available_jobs
38
38
  destroy! if finished?
@@ -2,5 +2,5 @@
2
2
 
3
3
  module Conflow
4
4
  # Current version of the gem
5
- VERSION = "0.4.1"
5
+ VERSION = "0.4.2"
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.1
4
+ version: 0.4.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michał Begejowicz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-03-22 00:00:00.000000000 Z
11
+ date: 2018-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: redis