libis-workflow 2.0.28 → 2.0.29

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: 9ea9a53ae48e3988b4bdd736ab68334309466c4d
4
- data.tar.gz: 342ab04cba426925e1d5170aa9f9221c25eab308
3
+ metadata.gz: d2d49ea18050014ac64b6c23b97dded2f5595641
4
+ data.tar.gz: 6da973b5eee84b3eb25598200bb76f757c94fc7f
5
5
  SHA512:
6
- metadata.gz: a6ab39cccd0598f5954452c7f6ef88f261bfa15904ba021c5d0a5abd5cc632f5634337ce6c250356e702d79e555734cb40b80ac5f5a1a77aafd2572251b50243
7
- data.tar.gz: 201d95fe13fe3469a4266d4cd3b9164ed695bfc3dacc16c51cea0c33597c5f426975bb9d42abc3eb03e8cdf9ef85d57eb00ddb8fce7749abb0b72e1c9f2c6daa
6
+ metadata.gz: 25dc30ef7485f9d7636547048dce41c3cdd81a940d955b9391c0cdbbcbbdef03b80fe808ecbc5d9462bf57cd5ff8e7b150a8674a5b228b101ef17db80d2833ec
7
+ data.tar.gz: c819b43d37ef7ee39c1043719fb2d4b6f2ab11d52f5b311a62a1733b05aeee6da0817ceabd67d729f79a84cc16757c6a5c98f61c1cd77e86cc36d5e50f9a4136
@@ -27,13 +27,8 @@ module Libis
27
27
  def set_status(task, status)
28
28
  task = task.namepath if task.is_a?(Libis::Workflow::Task)
29
29
  log_entry = self.status_entry(task)
30
- case status
31
- when :STARTED
32
- unless status(task) == :ASYNC_WAIT
33
- log_entry = self.add_status_log('task' => task, 'status' => status, 'created' => DateTime.now)
34
- end
35
- else
36
- log_entry ||= self.add_status_log('task' => task, 'status' => status, 'created' => DateTime.now)
30
+ if log_entry.nil? || status == :STARTED
31
+ log_entry = self.add_status_log('task' => task, 'status' => status, 'created' => DateTime.now)
37
32
  end
38
33
  log_entry['status'] = status
39
34
  log_entry['updated'] = DateTime.now
@@ -1,5 +1,5 @@
1
1
  module Libis
2
2
  module Workflow
3
- VERSION = '2.0.28' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
3
+ VERSION = '2.0.29' 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.28
4
+ version: 2.0.29
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-06-20 00:00:00.000000000 Z
11
+ date: 2016-07-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler