libis-workflow-mongoid 2.0.20 → 2.0.21

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: 8b2fcf15d25a51f92ac2da66e29570e077312e86
4
- data.tar.gz: 4c79360d938f02648aa58997724c49f685427ba4
3
+ metadata.gz: 369adbd930676cc3f1f7abed09eaca268b62c850
4
+ data.tar.gz: 0e2cc8877e36ec37adc8386474f9172d8a42d88d
5
5
  SHA512:
6
- metadata.gz: 25b9af3d73239bb046ffaaf7ee60e3fc7fb48e9ac33f19e3c82d6c4b864a238040e048f3bae6314a287e58f2512e719db2ddfce3f1aafd0702cc02b057ba1988
7
- data.tar.gz: 188efecda8f378e2f66e0d1d321231f1e6f4835618c80bf89d26703011ea2cca77cd207c346192408ff065db921e6aa8590af46705b7ab536031c12595313b78
6
+ metadata.gz: 54ccafbc16c97b63ddbe1747e1e37fdf305e79d14a16d980b3d4e968e324b7d6d13986e67a8cd26169b106afd35fe402bc4b73478a89f0807f44c492e73ba827
7
+ data.tar.gz: 4d758a5f8f305c6db546b8533dad291780bfee4e2eca27ed58c3f186d793707d30c0492c7898377387d4a05c4aab3d6775181264c8a3e80fafac3840f488cc45
@@ -44,6 +44,7 @@ module Libis
44
44
  end
45
45
 
46
46
  def run(action = :run)
47
+ self.start_date = Time.now
47
48
  self.tasks = []
48
49
  super action
49
50
  self.reload
@@ -79,6 +80,10 @@ module Libis
79
80
  ::Logging::Repository.instance.delete(self.name)
80
81
  end
81
82
 
83
+ def name
84
+ "#{self.job.name}-#{self.id.generation_time.strftime('%Y%m%d-%H%M%S')}-#{self.id.to_s[8..-1]}" rescue self.id.to_s
85
+ end
86
+
82
87
  end
83
88
 
84
89
  end
@@ -1,7 +1,7 @@
1
1
  module Libis
2
2
  module Workflow
3
3
  module Mongoid
4
- VERSION = '2.0.20' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
4
+ VERSION = '2.0.21' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libis-workflow-mongoid
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.20
4
+ version: 2.0.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Dekeyser