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 +4 -4
- data/lib/libis/workflow/status.rb +1 -1
- data/lib/libis/workflow/task.rb +8 -7
- data/lib/libis/workflow/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c25b53a55ca9a0c6aac68722bcb4968fd707df74
|
4
|
+
data.tar.gz: 0388ade78242e081673c20df700e3cb1cf6d4b85
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
88
|
+
return nil unless log_entry
|
89
89
|
log_entry[:progress] = progress
|
90
90
|
log_entry[:max] = max if max
|
91
91
|
self.save!
|
data/lib/libis/workflow/task.rb
CHANGED
@@ -155,13 +155,14 @@ module Libis
|
|
155
155
|
|
156
156
|
pre_process(item)
|
157
157
|
|
158
|
-
|
159
|
-
|
160
|
-
|
161
|
-
|
162
|
-
|
163
|
-
|
164
|
-
|
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.
|
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.
|
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-
|
11
|
+
date: 2016-04-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|