manageiq-smartstate 0.5.7 → 0.5.8

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
- SHA1:
3
- metadata.gz: 92d9ddaa65668f9a548570bfcb8dd6461c3419ec
4
- data.tar.gz: 5c050c68da426466c554ff81afbbfd69f912d65d
2
+ SHA256:
3
+ metadata.gz: 17b37f4ab83cd03d58b45b02fdeaf8bff3d9c994f7a75b2807bf2ab3334ddf1d
4
+ data.tar.gz: 30fc42e24da1123a3affb75b781e7629fd98e156c9349cbb733a23cdfced8f53
5
5
  SHA512:
6
- metadata.gz: 9d77176905d3c772c8333ea8cb03dca9efdd5cfbd5fdb57b06ff99a5ad5307b7cb290fea123041904d5042d0a52db2a331530ece19a7730eaecb50a15f476540
7
- data.tar.gz: ca70b93a558163df3d02dabfb9f1edf243eb2fbb231d15f7a917a97adce52060231951dffd99b97dcf0b601716a38f6a399ec55318d9c530ef8f7f95d565a8df
6
+ metadata.gz: 22ef45df273e3a8d491d3ad99e0e8e279b35cd9b4b62293c2aaecc80ef8df6de724c71badaf2c966a3f597b8fa82c4be423bb24faa4c79e4b4857318ad18118b
7
+ data.tar.gz: d4ea9bfb29b732a621534471cc3d83da6924aa95318f9a2618a9c7dc96be063538f5eb01c1e7a598609650b89a6409aba57b671aa320b31f64a1304efb39c46b
data/README.md CHANGED
@@ -1,10 +1,9 @@
1
1
  # ManageIQ::Smartstate
2
2
 
3
3
  [![Gem Version](https://badge.fury.io/rb/manageiq-smartstate.svg)](http://badge.fury.io/rb/manageiq-smartstate)
4
- [![Build Status](https://travis-ci.org/ManageIQ/manageiq-smartstate.svg)](https://travis-ci.org/ManageIQ/manageiq-smartstate)
4
+ [![Build Status](https://travis-ci.com/ManageIQ/manageiq-smartstate.svg)](https://travis-ci.com/ManageIQ/manageiq-smartstate)
5
5
  [![Code Climate](https://codeclimate.com/github/ManageIQ/manageiq-smartstate.svg)](https://codeclimate.com/github/ManageIQ/manageiq-smartstate)
6
6
  [![Test Coverage](https://codeclimate.com/github/ManageIQ/manageiq-smartstate/badges/coverage.svg)](https://codeclimate.com/github/ManageIQ/manageiq-smartstate/coverage)
7
- [![Dependency Status](https://gemnasium.com/ManageIQ/manageiq-smartstate.svg)](https://gemnasium.com/ManageIQ/manageiq-smartstate)
8
7
  [![Security](https://hakiri.io/github/ManageIQ/manageiq-smartstate/master.svg)](https://hakiri.io/github/ManageIQ/manageiq-smartstate/master)
9
8
 
10
9
  [![Chat](https://badges.gitter.im/Join%20Chat.svg)](https://gitter.im/ManageIQ/manageiq-smartstate?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
@@ -1,4 +1,4 @@
1
- require 'util/miq_tempfile'
1
+ require 'miq_tempfile'
2
2
  require_relative '../../MiqVm/MiqVm'
3
3
  require_relative 'MiqOpenStackCommon'
4
4
 
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module Smartstate
3
- VERSION = "0.5.7".freeze
3
+ VERSION = "0.5.8".freeze
4
4
  end
5
5
  end
@@ -72,9 +72,10 @@ class MD5deep
72
72
 
73
73
  def process_each_glob_file(file_name)
74
74
  FindClassMethods.glob(file_name, @fs) do |f|
75
- # Passing "startDir" as the first parameter is a work-around for issues
76
- # when scanning Win VMs from Linux where the path returned from dirGlob
77
- # do not include the drive letter.
75
+ # Prepending @drive_letter to the file is a work-around for issues
76
+ # when scanning Win VMs from Linux where the path returned from glob
77
+ # does not include the drive letter.
78
+ f = File.join(@drive_letter, f)
78
79
  processFile(File.dirname(f), File.basename(f), @xml.root)
79
80
  end
80
81
  rescue => err
@@ -98,7 +99,7 @@ class MD5deep
98
99
 
99
100
  def processDir(path, x, xmlNode)
100
101
  if x != "." && x != ".."
101
- currFile = File.join(@drive_letter, path, x)
102
+ currFile = File.join(path, x)
102
103
 
103
104
  begin
104
105
  if File.directory?(currFile)
@@ -117,7 +118,7 @@ class MD5deep
117
118
 
118
119
  def process_dir_as_file(path, x, xml_node)
119
120
  if x != "." && x != ".."
120
- curr_dir = File.join(@drive_letter, path, x)
121
+ curr_dir = File.join(path, x)
121
122
  if isDir?(curr_dir)
122
123
  xml_file_node = xml_node.add_element("file", "name" => x, "fqname" => curr_dir)
123
124
  stat_hash = {}
@@ -129,7 +130,7 @@ class MD5deep
129
130
 
130
131
  def processFile(path, x, xmlNode)
131
132
  if (@opts.exclude.include?(x) == false) && x[0..0] != "$"
132
- currFile = File.join(@drive_letter, path, x)
133
+ currFile = File.join(path, x)
133
134
 
134
135
  begin
135
136
  # unless File.directory?(currFile) then
@@ -0,0 +1,15 @@
1
+ require 'delegate'
2
+ require 'tempfile'
3
+
4
+ class MiqTempfile < DelegateClass(Tempfile)
5
+ # TODO: share this definition with appliance console code.
6
+ MIQ_TMP_DIR = '/var/www/miq_tmp'.freeze
7
+
8
+ def initialize(basename, *options)
9
+ if File.directory?(MIQ_TMP_DIR)
10
+ super(Tempfile.new(basename, MIQ_TMP_DIR, *options))
11
+ else
12
+ super(Tempfile.new(basename, *options))
13
+ end
14
+ end
15
+ end
File without changes
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.7
4
+ version: 0.5.8
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-04-21 00:00:00.000000000 Z
11
+ date: 2020-05-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: azure-armrest
@@ -483,7 +483,6 @@ files:
483
483
  - lib/fs/xfs/short_form_directory_entry.rb
484
484
  - lib/fs/xfs/short_form_header.rb
485
485
  - lib/fs/xfs/superblock.rb
486
- - lib/lib/tasks/azure.rake
487
486
  - lib/manageiq-smartstate.rb
488
487
  - lib/manageiq/smartstate.rb
489
488
  - lib/manageiq/smartstate/util.rb
@@ -539,6 +538,8 @@ files:
539
538
  - lib/metadata/util/win32/remote-registry.rb
540
539
  - lib/metadata/util/win32/system_path_win.rb
541
540
  - lib/metadata/util/win32/versioninfo.rb
541
+ - lib/miq_tempfile.rb
542
+ - lib/tasks/azure.rake
542
543
  - log/.gitkeep
543
544
  - manageiq-smartstate.gemspec
544
545
  homepage: https://github.com/ManageIQ/manageiq-smartstate
@@ -560,8 +561,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
560
561
  - !ruby/object:Gem::Version
561
562
  version: '0'
562
563
  requirements: []
563
- rubyforge_project:
564
- rubygems_version: 2.6.12
564
+ rubygems_version: 3.1.2
565
565
  signing_key:
566
566
  specification_version: 4
567
567
  summary: ManageIQ SmartState Analysis