libis-workflow 2.0.17 → 2.0.18

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: f5b71b6e2dc24c0ae35dd5d3391b186d2f5c12cd
4
- data.tar.gz: 8a588d9b4ade3a58fd7c6d73e9eca833453d98f5
3
+ metadata.gz: 23d4822077c09096f5d0ad6845bf564443f9efd9
4
+ data.tar.gz: 6f90c74d0af661472b4be36b55dee49f49c01fb2
5
5
  SHA512:
6
- metadata.gz: 51555a1d868759dae017bb1b456e7fa362bcdc519dddfaddab60b5e5e878eaef012e38ca337759dcd888378d9e5e94384ebb4772c558e6444e07135dd706e671
7
- data.tar.gz: fceddf54b276796ee8fc86725a689dced75c891ff0dcd9b1a590dfd2b0296983b8c647330a2a9f2bba7e3752e3c3cf2645a8ca61d6903299ff999befc01483b1
6
+ metadata.gz: e05a9f362da3c258c6774825bb2170ed3c7d0de8c1546189c8090158748b0cf438dcd33d52dadf9fe7407d1cd50459d406ae5bd7eb82463fcdcc0c3ad29f9c2c
7
+ data.tar.gz: fe79f24b3b656ef3716585903f6a20a92f13dbd487e59a590071f11853b5873aa3335301073c26c8d78e711dbd2d8de33f22accca44c66e7044a3a6faab8b819
@@ -90,7 +90,7 @@ module Libis
90
90
  # @param [Integer] max max count.
91
91
  def status_progress(task, progress = 0, max = nil)
92
92
  log_entry = self.status_entry(task)
93
- return nil unless log_entry
93
+ log_entry ||= self.add_status_log('task' => task, 'created' => DateTime.now)
94
94
  log_entry['progress'] = progress
95
95
  log_entry['max'] = max if max
96
96
  log_entry['updated'] = DateTime.now
@@ -1,5 +1,5 @@
1
1
  module Libis
2
2
  module Workflow
3
- VERSION = '2.0.17' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
3
+ VERSION = '2.0.18' 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.17
4
+ version: 2.0.18
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-18 00:00:00.000000000 Z
11
+ date: 2016-04-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler