wixgem 0.15.0 → 0.16.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 -3
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b5174286911b527edb1ecfe405dab9e3242eda68
4
- data.tar.gz: 39fd107b670ed0f722cbf425cf331e2b74014c82
3
+ metadata.gz: 8c6c4bf74500b9f10eec0c52a9a283d029d70ded
4
+ data.tar.gz: 2b625201bff5d279c7a96c43df6e21ce5b75fafd
5
5
  SHA512:
6
- metadata.gz: f6a5cddb4c2117cf7799ee6e8c9660775d2e6535bfd70ddde903df95a47952fabebd4e52cd614bda1c65186ed0000f09d5c51d17fa3b9c93700c839f86f10251
7
- data.tar.gz: 4b61a8e3df54eb39ba1d97adebad02acdf2b648cc3f0c95c90c62353cbce84160358bdaa12812c056fba6e54ec17c3570519e52840d21997647d0f96ddb68a36
6
+ metadata.gz: 60dcb625ecc13322753115c515c8558d5dc4da2d26111046e95012db57d94d8ba67cc791a1e6f7f3f94aee5310515fb3fe5e34946014f1b8ef1e50dda34c42ba
7
+ data.tar.gz: 5cc1bf1ea120eb9aeb47cd7d61335d1e45a230346f0fd20d00f15826c9c544243fd21039035741b0eba78a3f0d03bb0151fdba876ecf9d840dd0f08ceaab5898
data/lib/wixgem.rb CHANGED
@@ -3,6 +3,10 @@ require 'SecureRandom'
3
3
  require 'tmpdir.rb'
4
4
 
5
5
  class Wix
6
+ def self.initialize
7
+ @install_path = ''
8
+ @debug = false
9
+ end
6
10
  def self.install_path=(path)
7
11
  @install_path = path
8
12
  end
@@ -106,7 +110,7 @@ class Wix
106
110
  end
107
111
 
108
112
  def self.create_wxs_file(wxs_file, input, ext)
109
- @debug = input[:debug] if(input.kind_of?(Hash) && input.has_key?(:debug))
113
+ @debug = input[:debug] if(!@debug && input.kind_of?(Hash) && input.has_key?(:debug))
110
114
 
111
115
  template_option = "-template product"
112
116
  template_option = "-template module" unless(ext == ".msi")
@@ -190,9 +194,9 @@ class Wix
190
194
  wxs_file = "#{basename}.wxs"
191
195
  Dir.chdir(dir) do |current_dir|
192
196
  create_wxs_file(wxs_file, input, ext)
193
- create_output(wxs_file, output_absolute_path)
197
+ create_output(wxs_file, output_absolute_path)
194
198
  end
195
- FileUtils.cp(wxs_file, output_absolute_path.gsub(ext,'.wxs')) if(@debug)
199
+ FileUtils.cp("#{dir}/#{wxs_file}", "#{output_absolute_path}.wxs") if(@debug)
196
200
  end
197
201
  pdb_file = output_absolute_path.gsub(ext,'.wixpdb')
198
202
  FileUtils.rm(pdb_file) if(File.exists?(pdb_file))
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.15.0
4
+ version: 0.16.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kevin Marshall