wixgem 0.0.14 → 0.0.15

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 (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +16 -0
  3. data/lib/wixgem.rb +3 -4
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85ca0608a1c377cdb8475522b47ed8753b3194d3
4
- data.tar.gz: ddb8f3e03e2fb7c7bc99e311ed4e633e581d79e6
3
+ metadata.gz: 32d09a64e5c6af6cef3d7087c790ffcddde1d6d2
4
+ data.tar.gz: 89734c99879bf8e6e76824c29820d250ef2e04ef
5
5
  SHA512:
6
- metadata.gz: 72062f7807acd5a2e3fc23168196481279c8741e00cb1b7c89ff69bcee494161b22133e2a198a507031ed0242b75fd5005ab0d3c925f038f858e0f2c5119a1d0
7
- data.tar.gz: c98837859540b2eb65136998fc650e63a31508274d6e27693d44091b544828195d65c22d71c89afc414ed10c377053973b70a87bf1aece9d963f61260c0775fd
6
+ metadata.gz: 312018600ffd2336032156d9990ad5556bdc38e7695cb81e204935e512f563928f14fa7b22a53a8df7f4a95bc9c46d6898cf58813c5731dde9d6f31553ddde8d
7
+ data.tar.gz: 1be9127097116cc6f367e435d8c020d5e4d1a32c91b1b21f3055ebe1e3e0ef5e2a8759b3ab4780e9c8cd1a2250b51cb3234a585679f89286cfaec55e215e176f
data/README.md CHANGED
@@ -9,6 +9,22 @@ wixgem can be installed by the single command
9
9
  ## Usage
10
10
  The wix toolset must be installed.
11
11
 
12
+ ## Simple usage
13
+
14
+ ``
15
+ require 'wixgem'
16
+
17
+ WIX_TOOLSET_ROOT='path to root of Wix toolset'
18
+ Wix.install_path = WIX_TOOLSET_ROOT
19
+
20
+ # Installation example
21
+ Wix.make_installation('wixgem_install_test1.msi', ['rakefile.rb']])
22
+
23
+ # Mergemodule example
24
+ Wix.make_mergemodule('wixgem_install_test1.msi', ['rakefile.rb']])
25
+ ```
26
+
27
+
12
28
  In a rakefile define an installation task:
13
29
 
14
30
  ```
data/lib/wixgem.rb CHANGED
@@ -94,8 +94,8 @@ class Wix
94
94
  files.each do |file|
95
95
  if(File.file?(file))
96
96
  install_path = file
97
- if(input.kind_of?(Hash) && input.has_key?(:modify_install_path))
98
- input[:modify_install_path].each { |regex, replacement_string| install_path = install_path.gsub(regex, replacement_string) }
97
+ if(input.kind_of?(Hash) && input.has_key?(:modify_file_paths))
98
+ input[:modify_file_paths].each { |regex, replacement_string| install_path = install_path.gsub(regex, replacement_string) }
99
99
  end
100
100
 
101
101
  install_path = "#{directory}/#{install_path}"
@@ -113,8 +113,7 @@ class Wix
113
113
 
114
114
  stdout = %x[\"#{install_path}/bin/heat.exe\" dir . #{template_option} -cg InstallionFiles -gg -nologo -srd -o \"#{wxs_file}\"]
115
115
  raise "#{stdout}\nFailed to generate .wxs file" unless(File.exists?(wxs_file))
116
-
117
-
116
+
118
117
  product_name = File.basename(wxs_file, '.wxs')
119
118
  product_name = input[:product_name] if(input.kind_of?(Hash) && input.has_key?(:product_name))
120
119
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wixgem
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.14
4
+ version: 0.0.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Marshall