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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 30a1743ee37172a7bafb419ac76024d6be11116adfab72ad08f5769aa8a37d8e
4
- data.tar.gz: f2fa556715d1336c6bcf0c742e17d0c25f041bf2c699fd061ef9583c6ed1f963
3
+ metadata.gz: 584b8e1d60eca39c3f050334e697a01c9385466ee97e135e2f424f6b80e49b99
4
+ data.tar.gz: 7c105c4a9685e0c12acf6ddeb6bd876e702b4b6638f50c43c593e3b74f5af492
5
5
  SHA512:
6
- metadata.gz: 16f9be7983f67ed6a8b0fd0b44aa0a6c00d37170eb7ce23424c3dfd5ccf88cc59bf168c0704b7453e728fd4f695247a4e9ea9a0475b9689724d9ac895481f130
7
- data.tar.gz: 85dbd2d5960f6520db8a6a2b7c3afda4bbdf9924acaaf146070df19485ed66076818c05e93fb0d09f3fbcff9e5d2e6189307953acdd0e37d4f821e3e5f2433b7
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, ::Digest::MD5.hexdigest(File.read(name))) if File.file?(name)
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' unless const_defined? :VERSION # the guard is against a redefinition warning that happens on Travis
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
@@ -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.3
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: 2020-05-25 00:00:00.000000000 Z
11
+ date: 2021-02-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake