WindowsInstaller 0.1.11 → 0.1.12

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 +5 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b2b9022658da152e32f5deb740deec5781cedb9e
4
- data.tar.gz: 874d9d9b356b9b5bedfd1f6442c0d3572c8ca88a
3
+ metadata.gz: af28eb733a4760b5e0fa873760afd6e1fc205a71
4
+ data.tar.gz: 24c477dfd03466d5d62d240634c0503ed9773306
5
5
  SHA512:
6
- metadata.gz: ea6b0505fc1bf7ec4635bf0eca98007612555af2e226fe59bd0ddbaf65224832a6659a9d2076a58592eab79f54ebc295f54ee83f601d9f037a6e6851da467f00
7
- data.tar.gz: b7d2f618278b6c03f3adcc2dc945a6881c721033f0628c477c5a38eecacc6d41bad5acc7ade70e99480ad96f2768347174a0165b23a0e49838be2cbbd62682f3
6
+ metadata.gz: 910e586067f8ed178d43fbef211316ebe59b1bdc026cb75d133dc3c89268756651543b3e42d95ec7b2f2fd65c5e616ecba6d462c1797ef4e6ddc19799bbae926
7
+ data.tar.gz: c108ad6dda0e0f24143af8acdde95d2fe384722a8f4e294f67a0c9e106e4f4e88baec318321dc720a9e7b250c794f4ee69efc325b9cd5165198b2d01f75e243d
@@ -95,8 +95,11 @@ class WindowsInstaller < Hash
95
95
  return properties
96
96
  end
97
97
 
98
- def installation_properties(product_name)
99
- product_code = installed_get_product_code(product_name)
98
+ def installation_properties(product_name_or_product_code)
99
+ properties = installed_properties(product_name_or_product_code)
100
+ return properties unless(properties.nil?)
101
+
102
+ product_code = installed_get_product_code(product_name_or_product_code)
100
103
  return nil if(product_code == '')
101
104
 
102
105
  return installed_properties(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.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Marshall
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-11-15 00:00:00.000000000 Z
11
+ date: 2015-11-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler