manageiq-smartstate 0.5.0 → 0.5.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- data/lib/manageiq/smartstate/version.rb +1 -1
- data/lib/metadata/util/win32/Win32Software.rb +9 -1
- metadata +4 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 716aa4395ecc988d0cb62308cabef745a9fe6e4d
|
|
4
|
+
data.tar.gz: 01fd9eb7d27bb07593b60b66d9412ed65e032dcd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 491debebea68f7fc8a5f12c4715061b0db955d9c61c73f3ebbda01ed18ea2bb5e6da3bf2589065ddcd5db597cfcb3bf1b022b89888dcbff2146c2840d84925ac
|
|
7
|
+
data.tar.gz: 604bd296a8641e42d8e223c99bf546104e083f5d9fa5be61f9af73e849b3218205e5d43ac1bb8de18aca4c7424232647845473c091719d03ad05641986e2db8f
|
|
@@ -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.
|
|
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-
|
|
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
|
-
|
|
562
|
+
rubyforge_project:
|
|
563
|
+
rubygems_version: 2.6.12
|
|
563
564
|
signing_key:
|
|
564
565
|
specification_version: 4
|
|
565
566
|
summary: ManageIQ SmartState Analysis
|