manageiq-smartstate 0.2.11 → 0.2.12

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: 62cf3e30f6bab25afc33edb03fe30b6849f3ae29
4
- data.tar.gz: caec40acfd2c105763fa1144faaf3b4d4f7710f0
3
+ metadata.gz: 670e01758e119e3d56c2776e661a535f4eb9cb59
4
+ data.tar.gz: 460017632075c60fd8cfd74619d0312d5fda978f
5
5
  SHA512:
6
- metadata.gz: c0a520cf41df5a29c3494630d2d35c15deb4d453ca7fef571c4195426f218eff702da0db4e4483444ccccbf712d7f89b5e02de96b6fb5bda816107f491253dd5
7
- data.tar.gz: 2c011d60ca5e37f0b80a10cf039eec69940675409101429dec54af3373763247c6297dbd581c6e25d66a37ffd9df917e81554b23f4b473bbb97a99d0e2461bf6
6
+ metadata.gz: 28842974524330b13c2b1304d7cb173c71943092805c63d17ea72ed58377678304f442480c3100ce7a634e59e690b4772bac34ef5b68f7d31c7c1b31b101c563
7
+ data.tar.gz: 50141b146818fc5328ff8d94985b553b3f5c44d26a89b6ac4dd09715c44c3ec9bd8c929e7e50276bc37818c2116ca6d75eee13537e635a1e3b4972e2b76b113f
@@ -1,5 +1,5 @@
1
1
  module ManageIQ
2
2
  module Smartstate
3
- VERSION = "0.2.11".freeze
3
+ VERSION = "0.2.12".freeze
4
4
  end
5
5
  end
@@ -52,12 +52,13 @@ module MiqWin32
52
52
  ]
53
53
 
54
54
  def initialize(_c, fs)
55
- @patches = @applications = []
56
- @patch_install_dates = @product_keys = {}
55
+ @patches = []
56
+ @applications = []
57
+ @patch_install_dates = {}
58
+ @product_keys = {}
57
59
 
58
60
  reg_doc = initialize_registry_doc(fs)
59
-
60
- registry_applications(reg_doc)
61
+ registry_applications(reg_doc, fs)
61
62
  registry_patches(reg_doc)
62
63
  end
63
64
 
@@ -96,13 +97,13 @@ module MiqWin32
96
97
  reg_doc
97
98
  end
98
99
 
99
- def registry_applications(registry_doc)
100
+ def registry_applications(registry_doc, fs)
100
101
  # Get the applications
101
102
  reg_node = MIQRexml.findRegElement("HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Installer\\UserData", registry_doc.root)
102
103
  registry_applications_user_data(reg_node) if reg_node
103
104
  ["HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\App Paths",
104
105
  "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\App Paths"].each do |reg_path|
105
- registry_applications_app_paths(registry_doc, reg_path)
106
+ registry_applications_app_paths(registry_doc, reg_path, fs)
106
107
  end
107
108
  ["HKEY_LOCAL_MACHINE\\SOFTWARE\\Wow6432Node\\Microsoft\\Windows\\CurrentVersion\\Uninstall",
108
109
  "HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Uninstall"].each do |reg_path|
@@ -124,7 +125,7 @@ module MiqWin32
124
125
  end
125
126
  end
126
127
 
127
- def registry_applications_app_paths(registry_doc, registry_path)
128
+ def registry_applications_app_paths(registry_doc, registry_path, fs)
128
129
  return unless (reg_node = MIQRexml.findRegElement(registry_path, registry_doc.root))
129
130
  postProcessApps(reg_node, fs)
130
131
  reg_node.each_element_with_attribute(:keyname) do |e|
@@ -179,7 +180,7 @@ module MiqWin32
179
180
  return if element.attributes.nil? || element.attributes[:keyname].nil?
180
181
  if element.attributes[:keyname][0, 8] == 'Package_'
181
182
  # don't add this package if the ID is nil
182
- return if (hotfix_id = hotfix_id(e)).nil?
183
+ return if (hotfix_id = hotfix_id(element)).nil?
183
184
 
184
185
  hotfix[hotfix_id] ||=
185
186
  begin
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.2.11
4
+ version: 0.2.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - ManageIQ Developers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-06-11 00:00:00.000000000 Z
11
+ date: 2018-07-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: azure-armrest