WindowsInstaller 0.1.25 → 0.1.28

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/WindowsInstaller.rb +13 -12
  3. metadata +10 -10
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 54987116e79ed469a90d8a6d4d4c601f3f226c2ca3798610b28435129eec8c17
4
- data.tar.gz: dfc796c70ea50f38dcd2d4c25fe3f75329405cf03656847458b57c9143948c16
3
+ metadata.gz: 4d25fe61ae528fdece49b640efe1d92d4417e65423f11ba5b77ef2b4af866bde
4
+ data.tar.gz: 45fde1c5da6b76381ccea3d42f287ea07c4a87cdbeb0cfbf9d3bc0db3ee8831b
5
5
  SHA512:
6
- metadata.gz: 949294a0920e2a95968aab6c5f5681ec748480bf7ce95786352b9bb7953622bb6e4eda1fb64936cc1270262bf4e3f260f04c79c36b5d49ac2e848f3f0e39a63c
7
- data.tar.gz: 403efa01aec76ec953d24661c776a72817aa209f51c04340226b24380831d217df3f659f90018818a2206c8a72368fdb9ead74b399f77c58e8030c3313964560
6
+ metadata.gz: f3d304b967f8e02a62e5d25068aafcf3b07076f67d4c516580a9e9142822df7127af6db59215fa7a322c20b92ef6bc66a763ef1fa96b698b0bf35e75163b5b3e
7
+ data.tar.gz: 68c8551758d7f2caffdc65b744201ff421eedfd2ecf80b074ddfc8fcb4b841f43ed2ffbe6dcb0b4cf4d0b00bebd3fdc3b6530c4be0b771424fa8a415bd68cb85
@@ -154,28 +154,29 @@ class WindowsInstaller < Hash
154
154
 
155
155
  def get_upgrade_codes
156
156
  upgrade_codes = {}
157
- property_value = @installer.ProductsEx('','',7).each do |prod|
158
- begin
159
- local_pkg = prod.InstallProperty('LocalPackage')
160
- rescue
161
- next
162
- end
157
+ property_value = @installer.ProductsEx('','',7).each do |prod|
158
+ begin
159
+ local_pkg = prod.InstallProperty('LocalPackage')
163
160
 
164
- db = @installer.OpenDataBase(local_pkg, 0)
161
+ db = @installer.OpenDataBase(local_pkg, 0)
165
162
  query = 'SELECT `Value` FROM `Property` WHERE `Property` = \'UpgradeCode\''
166
163
  view = db.OpenView(query)
167
164
  view.Execute
168
165
 
169
- record = view.Fetch
166
+ record = view.Fetch
170
167
  unless(record.nil?)
171
168
  upgrade_code = record.StringData(1)
172
169
 
173
- upgrade_codes[upgrade_code] ||= []
174
- upgrade_codes[upgrade_code] << prod.ProductCode
175
- end
170
+ upgrade_codes[upgrade_code] ||= []
171
+ upgrade_codes[upgrade_code] << prod.ProductCode
172
+ end
173
+
174
+ rescue
175
+ next
176
176
  end
177
+ end
177
178
 
178
- return upgrade_codes
179
+ return upgrade_codes
179
180
  end
180
181
 
181
182
  def get_upgrade_code(product_code)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: WindowsInstaller
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.25
4
+ version: 0.1.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Marshall
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-01-24 00:00:00.000000000 Z
11
+ date: 2022-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: execute
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.1.76
19
+ version: 0.1.79
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.1.76
26
+ version: 0.1.79
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
@@ -81,7 +81,7 @@ dependencies:
81
81
  - !ruby/object:Gem::Version
82
82
  version: '0'
83
83
  description: Class wrapper for Microsoft Windows WindowsInstaller object
84
- email:
84
+ email:
85
85
  executables: []
86
86
  extensions: []
87
87
  extra_rdoc_files: []
@@ -92,7 +92,7 @@ homepage: http://rubygems.org/gems/WindowsExecute
92
92
  licenses:
93
93
  - Apache 2.0
94
94
  metadata: {}
95
- post_install_message:
95
+ post_install_message:
96
96
  rdoc_options: []
97
97
  require_paths:
98
98
  - lib
@@ -100,15 +100,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
100
100
  requirements:
101
101
  - - ">="
102
102
  - !ruby/object:Gem::Version
103
- version: 2.3.3
103
+ version: 3.0.0
104
104
  required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  requirements:
106
106
  - - ">="
107
107
  - !ruby/object:Gem::Version
108
108
  version: '0'
109
109
  requirements: []
110
- rubygems_version: 3.0.1
111
- signing_key:
110
+ rubygems_version: 3.2.15
111
+ signing_key:
112
112
  specification_version: 4
113
113
  summary: Class wrapper for Microsoft Windows WindowsInstaller object
114
114
  test_files: []