manageiq-smartstate 0.5.0 → 0.5.1

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
- SHA256:
3
- metadata.gz: a56e9216dd74cd9ffc16df77144155a693c6f9c0e61bbe5b66225b761c5adfb6
4
- data.tar.gz: b13b6cff6a61f4c2944e4bd40b671a0b8347de45e74396d3aa96e927d7850e58
2
+ SHA1:
3
+ metadata.gz: 716aa4395ecc988d0cb62308cabef745a9fe6e4d
4
+ data.tar.gz: 01fd9eb7d27bb07593b60b66d9412ed65e032dcd
5
5
  SHA512:
6
- metadata.gz: 57aec5cda7db0f61546e6d8568be058cdbf0588d6d68b2d3dec941172e30fb3bfdc2c321004466dbcd1a4c0eac683ca8af1ad7bd2ef3de4dec09b01eac980bd9
7
- data.tar.gz: 4777c29125ca51457930eef7b192afb8a5bcbe16b533d7656ec3bb49006ea08d6dd4a8e641752a4399e487060e43ca83300e2381d642593f113e56f244ec13e9
6
+ metadata.gz: 491debebea68f7fc8a5f12c4715061b0db955d9c61c73f3ebbda01ed18ea2bb5e6da3bf2589065ddcd5db597cfcb3bf1b022b89888dcbff2146c2840d84925ac
7
+ data.tar.gz: 604bd296a8641e42d8e223c99bf546104e083f5d9fa5be61f9af73e849b3218205e5d43ac1bb8de18aca4c7424232647845473c091719d03ad05641986e2db8f
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module Smartstate
3
- VERSION = "0.5.0".freeze
3
+ VERSION = "0.5.1".freeze
4
4
  end
5
5
  end
@@ -15,6 +15,7 @@ module MiqWin32
15
15
  # 'PackageName', :package_name,
16
16
  # 'ProductIcon', :product_icon,
17
17
  # 'PackageName', :package_name,
18
+ 'InstallDate', :install_time,
18
19
  ]
19
20
 
20
21
  APP_PATHS_MAPPING = [
@@ -81,7 +82,7 @@ module MiqWin32
81
82
  # reg_doc = regHnd.loadHive("software", ["Microsoft"])
82
83
  reg_doc = regHnd.loadHive('software',
83
84
  [{:key => 'Microsoft/Windows NT/CurrentVersion/Hotfix', :value => ['fix description', 'comments', 'installed', 'service pack', 'valid']},
84
- {:key => 'Microsoft/Windows/CurrentVersion/Installer/UserData', :value => ['DisplayName', 'Publisher', 'DisplayVersion', 'Comments', 'InstallLocation']},
85
+ {:key => 'Microsoft/Windows/CurrentVersion/Installer/UserData', :value => ['DisplayName', 'Publisher', 'DisplayVersion', 'Comments', 'InstallLocation', 'InstallDate']},
85
86
  {:key => 'Microsoft/Windows/CurrentVersion/Uninstall', :value => ['DisplayName', 'Publisher', 'DisplayVersion', 'FileDescription', 'ReleaseType', 'InstallDate']},
86
87
  {:key => 'Wow6432Node/Microsoft/Windows/CurrentVersion/Uninstall', :value => ['DisplayName', 'Publisher', 'DisplayVersion', 'FileDescription', 'ReleaseType', 'InstallDate']},
87
88
  {:key => 'Microsoft/Windows/CurrentVersion/App Paths', :value => ['(Default)', 'FileDescription', 'CompanyName', 'ProductVersion', 'FileDescription', 'ProductName', 'lang', 'path']},
@@ -137,6 +138,7 @@ module MiqWin32
137
138
  return if (attrs = XmlFind.decode(element, mapping))[:name].nil?
138
139
  attrs[:typename] = type_name; attrs[:product_key] = @product_keys[attrs[:name]]
139
140
  clean_up_path(attrs)
141
+ convert_times(attrs)
140
142
  @applications << attrs unless isDupApp?(attrs)
141
143
  end
142
144
 
@@ -242,6 +244,12 @@ module MiqWin32
242
244
  end
243
245
  end
244
246
 
247
+ def convert_times(attrs)
248
+ [:install_time].each do |i|
249
+ attrs[i] = attrs[i].in_time_zone if attrs[i]
250
+ end
251
+ end
252
+
245
253
  def self.DecodeProductKey(product_key)
246
254
  return if product_key.blank? || product_key.length < 67
247
255
  y = []; product_key.split(",")[52..67].each { |b| y << b.hex }
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.0
4
+ version: 0.5.1
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-01-24 00:00:00.000000000 Z
11
+ date: 2020-02-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: azure-armrest
@@ -559,7 +559,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
559
559
  - !ruby/object:Gem::Version
560
560
  version: '0'
561
561
  requirements: []
562
- rubygems_version: 3.1.2
562
+ rubyforge_project:
563
+ rubygems_version: 2.6.12
563
564
  signing_key:
564
565
  specification_version: 4
565
566
  summary: ManageIQ SmartState Analysis