manageiq-smartstate 0.3.6 → 0.3.7

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: 329da11c20c2a1ea5a2089d9d8b50fbd4c2f5b4a
4
- data.tar.gz: 8f29a1c35119e098e0b1a8e8421adc773545aa67
3
+ metadata.gz: 71fa95bff19a8c949cc9d8c9236974ef31e26518
4
+ data.tar.gz: 33a81fcd7042238f78883ee908a98f514bac13a4
5
5
  SHA512:
6
- metadata.gz: 1117fc552c4ef5931f86e7e612a395f98339cfe8ae49737f1c0f9a3515be3682011f574b4bd6144e849e0deeae4cebab63863ecefee6974cfeba7256964cc929
7
- data.tar.gz: 73f022ff2c9a8bbfa940837f0b3aa3a54000b719024150d6774485189248cd15a9feacb880bd31934b3b77dc1fe46d4dae1fe81f88eef5f143b96f014af32dd6
6
+ metadata.gz: cc3e406821ee3f6875d079bb61fe6b5b8467ac2672580fe1d9d3abf14e383d44c0225a2ee89edf7bb3ab128e5115753d632c617d1ea760bfee578de2412bb622
7
+ data.tar.gz: 3b2c51471fd1f1727426224e8359e384dfc564cccd017717aed577f954930a7b41fa8c99ea5c397a2117ee9d4e1384ede4557c71224ae0540e1a82d63fdf230f
@@ -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.3.6".freeze
3
+ VERSION = "0.3.7".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.3.6
4
+ version: 0.3.7
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-30 00:00:00.000000000 Z
11
+ date: 2020-04-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: azure-armrest