libis-workflow 2.1.3 → 2.1.4
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/base/file_item.rb +2 -1
- data/lib/libis/workflow/version.rb +1 -1
- data/spec/workflow_spec.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 584b8e1d60eca39c3f050334e697a01c9385466ee97e135e2f424f6b80e49b99
|
4
|
+
data.tar.gz: 7c105c4a9685e0c12acf6ddeb6bd876e702b4b6638f50c43c593e3b74f5af492
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 90995692a972340ef2363ccf4b74c16a8bea56b19ae8ee2ee9e9efa011e4f1b65613070d0c2186946d8f82b61a00ece8ad2a65219fa1e7e129a2bec2ddb3b4ec
|
7
|
+
data.tar.gz: 967aaff3c1178c2913bc8e97a82e2bbd4a94759dcac5812999adda01d3d6b4af9a20bb51c4276490818cb097326a244a773476fc91e6bf97f6f17134c1d41c60
|
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'digest'
|
2
2
|
|
3
3
|
require 'libis/workflow/base/work_item'
|
4
|
+
require 'libis/tools/checksum'
|
4
5
|
|
5
6
|
module Libis
|
6
7
|
module Workflow
|
@@ -40,7 +41,7 @@ module Libis
|
|
40
41
|
self.properties['mode'] = stats.mode
|
41
42
|
self.properties['uid'] = stats.uid
|
42
43
|
self.properties['gid'] = stats.gid
|
43
|
-
set_checksum(:MD5, ::
|
44
|
+
set_checksum(:MD5, ::Libis::Tools::Checksum.hexdigest(name, :MD5)) if File.file?(name)
|
44
45
|
rescue => _e
|
45
46
|
# ignored
|
46
47
|
end
|
@@ -1,5 +1,5 @@
|
|
1
1
|
module Libis
|
2
2
|
module Workflow
|
3
|
-
VERSION = '2.1.
|
3
|
+
VERSION = '2.1.4' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
|
4
4
|
end
|
5
5
|
end
|
data/spec/workflow_spec.rb
CHANGED
@@ -10,8 +10,8 @@ def check_output(logoutput, sample_out)
|
|
10
10
|
sample_out = sample_out.lines.to_a.map {|x| x.strip}
|
11
11
|
output = logoutput.string.lines.to_a.map {|x| x[/(?<=\] ).*/].strip}
|
12
12
|
|
13
|
-
puts 'output:'
|
14
|
-
ap output
|
13
|
+
# puts 'output:'
|
14
|
+
# ap output
|
15
15
|
|
16
16
|
expect(output.size).to eq sample_out.size
|
17
17
|
output.each_with_index do |o, i|
|
@@ -20,8 +20,8 @@ def check_output(logoutput, sample_out)
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def check_status_log(status_log, sample_status_log)
|
23
|
-
puts 'status_log:'
|
24
|
-
status_log.each { |e| ap e }
|
23
|
+
# puts 'status_log:'
|
24
|
+
# status_log.each { |e| ap e }
|
25
25
|
expect(status_log.size).to eq sample_status_log.size
|
26
26
|
sample_status_log.each_with_index do |h, i|
|
27
27
|
h.keys.each {|key| expect(status_log[i][key.to_s]).to eq h[key]}
|
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.1.
|
4
|
+
version: 2.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kris Dekeyser
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|