manageiq-smartstate 0.5.5 → 0.5.6

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: cd8eb1fbab5fe0cf25e935e7173c43f6cb928b36
4
- data.tar.gz: 6254ef672dd4700f40da31c1b4c98d79b7217510
3
+ metadata.gz: 4729941d5aff9f2ca6340b2149861dd653a6cff7
4
+ data.tar.gz: 7e1950524b9e30770e564c0d96f3197ed19d0d35
5
5
  SHA512:
6
- metadata.gz: eaa532b372c70837dfaf164ba463374a6235291e5517385469be72d95e6fc60dd3cdb957ac32d1f7ecdb14f87a372785bbe196a10a43d995129906203d38de89
7
- data.tar.gz: bba8041436423755f0a234c566168a7831159da571605638290789a3f9e7246fdda6e75912a2bc9d3b50f1ef236fed74094c284369357a3fc4c2184326642951
6
+ metadata.gz: fb04e9043fb7dca137006e30d43d85082f1dfe1668960166449cbccbe6c8b83fa214b158bbd2f08a2b2fb3b118806906dcea86c0432443fa43cba242f8b54ac0
7
+ data.tar.gz: 85cc17ab86cdf47c71fd2758869ce36f1cfb62ad3040023b4f3fa1152039356b9473297246b7b987f99992835d9d03fe918b97044ec926ac70db45dff3d255bf
@@ -282,7 +282,7 @@ module NTFS
282
282
 
283
283
  @runSpec.each_slice(2) do |lcn, len|
284
284
  total_clusters += len
285
- next unless total_clusters > start_vcn
285
+ next unless lcn && len && total_clusters > start_vcn
286
286
 
287
287
  start = lcn + (vcn - (total_clusters - len))
288
288
  count = len - (start - lcn)
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module Smartstate
3
- VERSION = "0.5.5".freeze
3
+ VERSION = "0.5.6".freeze
4
4
  end
5
5
  end
@@ -15,8 +15,9 @@ module FindClassMethods
15
15
 
16
16
  ra = []
17
17
  find(@search_path, glob_depth(glob)) do |p|
18
- p = check_file(p, glob, flags)
19
- p && block_given? ? yield(p) : ra << p
18
+ if (p = check_file(p, glob, flags))
19
+ block_given? ? yield(p) : ra << p
20
+ end
20
21
  end
21
22
  ra.sort_by(&:downcase)
22
23
  end
@@ -78,7 +78,7 @@ class MD5deep
78
78
  processFile(File.dirname(f), File.basename(f), @xml.root)
79
79
  end
80
80
  rescue => err
81
- $log.info "scan_glob: Exception #{err} rescued"
81
+ $log.error "process_each_glob_file: Exception #{err} rescued"
82
82
  $log.debug err.backtrace.join("\n")
83
83
  end
84
84
 
@@ -226,10 +226,15 @@ class MD5deep
226
226
  # Create hash for requested digests
227
227
  digest = create_digest_hash
228
228
 
229
- fileName.seek(0, IO::SEEK_SET)
230
- # Loop over each digest and add the file contents
231
- while buf = fileName.read(10240000)
232
- digest.each_pair { |_k, v| v << buf }
229
+ begin
230
+ fileName.seek(0, IO::SEEK_SET)
231
+ # Loop over each digest and add the file contents
232
+ while (buf = fileName.read(10_240_000))
233
+ digest.each_pair { |_k, v| v << buf }
234
+ end
235
+ rescue => err
236
+ $log.error "Error #{err} reading file to calculate digest"
237
+ $log.debug err.backtrace.join("\n")
233
238
  end
234
239
  end
235
240
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: manageiq-smartstate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.5
4
+ version: 0.5.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-03-27 00:00:00.000000000 Z
11
+ date: 2020-04-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: azure-armrest