wixgem 0.44.0 → 0.45.0

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/wixgem.rb +7 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0633834fc2779a21770a317a81add6df7811980a
4
- data.tar.gz: f407a17265028f320827c8c367a6377c83ea763c
3
+ metadata.gz: 27f9579d36447c61b9a745fc12dc6469a2393a04
4
+ data.tar.gz: 8ce56124d055525cdd03ad47861a2bd3eb850465
5
5
  SHA512:
6
- metadata.gz: 32c53f543779af8410ec19caccc0ddfeca897f8713172376113093afce533afdcbf280109d1b8a011d127dd6446e7107152ef90a795c27d53df2064a019d69db
7
- data.tar.gz: eac0fb6f972138328d7dd3d32475a93f8a26c03bea7758063aa4d4c177a6528355db89ecda93f13eb6a87c0a9ff7124dee8378856960ec331e2a14f6e314103e
6
+ metadata.gz: 39300ba528e86bf2ae372447f1f25cbf59f37d88801d6abe54683a4607d93c0afbbf810df115e727904fa8a6f1b7ee491a65a296de9a16bfaca4e7874ad5945a
7
+ data.tar.gz: 8c690dac8ad0c982b4e70ff35a1b5b9df035083952baf390cdc5b6efbf0c2273e7f99013a79bde863846c628c26a48b760616fd7c3b58b658dd01a9de830b1fd
data/lib/wixgem.rb CHANGED
@@ -105,8 +105,15 @@ class Wix
105
105
  }
106
106
  }
107
107
  }
108
+ return xml_doc if(merge_modules.length == 0)
108
109
 
109
110
  directory_root = REXML::XPath.match(xml_doc, '//Wix/Product/Directory')
111
+ if(directory_root.length == 0)
112
+ module_root = REXML::XPath.match(xml_doc, '//Wix/Module')
113
+ raise 'Merge modules can not be added to a merge module' unless(module_root.nil?)
114
+ raise 'Wix element //Wix/Product/Directory does not exist'
115
+ end
116
+
110
117
  default_feature = REXML::XPath.match(xml_doc, '//Wix/Product/Feature')
111
118
 
112
119
  merge_modules.each { |component,file|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wixgem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.44.0
4
+ version: 0.45.0
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-01-23 00:00:00.000000000 Z
11
+ date: 2015-01-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler