libis-workflow 2.0.13 → 2.0.14

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
  SHA1:
3
- metadata.gz: 391fa63e8c66d517802a33270a23090e71861051
4
- data.tar.gz: d78da40fa5ebdca1174805ec76aa3c5b4e62ddcf
3
+ metadata.gz: c25b53a55ca9a0c6aac68722bcb4968fd707df74
4
+ data.tar.gz: 0388ade78242e081673c20df700e3cb1cf6d4b85
5
5
  SHA512:
6
- metadata.gz: 355050d00564e301721e794c4ef4effdd3c8626ed1e98d7c572942dca121769c4baf4468513391b92d4e917f0d63d84e10294d4d7ec2f50d4ec3eb2155bc4eb5
7
- data.tar.gz: 81a05c1532b13641e3d48f0a4f37bdedb0e0ec52fc4cfc5641aef51814792546dbd3baf24a6bee1b3534688ddeb8f53311e9481beab3027b2afeba4f22fee61d
6
+ metadata.gz: f3c7070a73796efccec423fd13558672af8da60e7242a209c787621624219182d3c1712ac03301950b334b6af9021f6e6a6cbadeefcedeef83522c18a46ac1d8
7
+ data.tar.gz: 8e163873cb9a8076f90f20476dec1910a72a8655fc14115d39ae18e5025b53462c51b16ee84a272bd921b8db753b55ecaf25f679aee306bbca3cace22861237e
@@ -85,7 +85,7 @@ module Libis
85
85
  # @param [Integer] max max count.
86
86
  def status_progress(task, progress = 0, max = nil)
87
87
  log_entry = self.status_entry(task)
88
- log_entry ||= self.status_log.build(task: task)
88
+ return nil unless log_entry
89
89
  log_entry[:progress] = progress
90
90
  log_entry[:max] = max if max
91
91
  self.save!
@@ -155,13 +155,14 @@ module Libis
155
155
 
156
156
  pre_process(item)
157
157
 
158
- set_status item, :STARTED
159
-
160
- self.process item unless @item_skipper
161
-
162
- run_subitems(item) if parameter(:recursive)
163
-
164
- update_status item, :DONE
158
+ unless @item_skipper
159
+ set_status item, :STARTED
160
+ self.process item
161
+ run_subitems(item) if parameter(:recursive)
162
+ update_status item, :DONE
163
+ else
164
+ run_subitems(item) if parameter(:recursive)
165
+ end
165
166
 
166
167
  post_process item
167
168
  end
@@ -1,5 +1,5 @@
1
1
  module Libis
2
2
  module Workflow
3
- VERSION = '2.0.13' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
3
+ VERSION = '2.0.14' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libis-workflow
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.13
4
+ version: 2.0.14
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-15 00:00:00.000000000 Z
11
+ date: 2016-04-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler