wixgem 0.3.0 → 0.4.0

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/wixgem.rb +13 -12
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea5a8b4134eda9ccd33e1a56d9962adc2114be18
4
- data.tar.gz: b8a7ee5f5c9d6593f69227f22487cadbd51ffea8
3
+ metadata.gz: 3511b9c487436ea933475ee17903904ce04e04f3
4
+ data.tar.gz: 52c5256ca4b8c5cf606e610b917e4621a1a7a587
5
5
  SHA512:
6
- metadata.gz: 0bfbb2cb95eabb61ca6d9492ff639619d2cdf89ecba34c1cb802795b6b443077aa9bed61be0c7e9bbd7b64ef5c0d321b254081b66f057b15466b249fd982bb45
7
- data.tar.gz: 669baf8ddb9216b6eb3d5c83104ac52e42210dd6f7fd8bd8b76a6dcab048f2cabfaabb9954098ea8a3265dda15175e408af1348df70ec3f11bfdfc56f8ab1827
6
+ metadata.gz: 80f80d2509698e053ae4dedb06ab79637548ce673f8daf672b722efe244c7b8045bd8dc9ed3ab214854fde1a53a30862cd764601f9e1c9db2a4044ffb6fae95e
7
+ data.tar.gz: 09d3d6e98c09053a8ab18a444798b323a8a01fb70742d4a23fd247caa231c0d48701e51f179e389321cfd5d5c84b9de356250880e6a2841c3b791302aef949b3
data/lib/wixgem.rb CHANGED
@@ -12,16 +12,6 @@ class Wix
12
12
  return @install_path
13
13
  end
14
14
 
15
- def self.create_mergemodule_wixfile(output_wixfile, input)
16
- gem_dir = File.dirname(__FILE__)
17
- create_wix_file(output_wixfile, input, "#{gem_dir}/templates/mergemodule.wxs")
18
- end
19
-
20
- def self.create_installation_wixfile(output_wixfile, input)
21
- gem_dir = File.dirname(__FILE__)
22
- create_wix_file(output_wixfile, input, "#{gem_dir}/templates/mergemodule.wxs")
23
- end
24
-
25
15
  def self.make_mergemodule(output, input)
26
16
  gem_dir = File.dirname(__FILE__)
27
17
  apply_wix_template(output, input, "#{gem_dir}/templates/mergemodule.wxs")
@@ -32,6 +22,17 @@ class Wix
32
22
  apply_wix_template(output, input, "#{gem_dir}/templates/Install.wxs")
33
23
  end
34
24
 
25
+ def self.create_mergemodule_wixfile(output_wixfile, input)
26
+ gem_dir = File.dirname(__FILE__)
27
+ create_wix_file(output_wixfile, input, "#{gem_dir}/templates/mergemodule.wxs")
28
+ end
29
+
30
+ def self.create_installation_wixfile(output_wixfile, input)
31
+ gem_dir = File.dirname(__FILE__)
32
+ create_wix_file(output_wixfile, input, "#{gem_dir}/templates/mergemodule.wxs")
33
+ end
34
+
35
+ private
35
36
  def self.create_wix_file(wix_file, input, template)
36
37
  wix_basename = File.basename(wix_file, '.wxs')
37
38
  wxs_text = File.read(template)
@@ -89,9 +90,9 @@ class Wix
89
90
 
90
91
  def self.wix_id(file)
91
92
  id = "id_#{file}".gsub(/[^a-zA-Z0-9_\.]/) { |s| s = '_' }
92
- max_id_length = 72
93
+ max_id_length = 72 - 2
93
94
  id = id.slice(id.length-max_id_length, max_id_length) unless(id.length <= max_id_length)
94
- id[0] = '_' if(id[0] == '.')
95
+ id = "id#{id}"
95
96
  return id
96
97
  end
97
98
 
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.3.0
4
+ version: 0.4.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: 2014-01-05 00:00:00.000000000 Z
11
+ date: 2014-01-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: semver
@@ -143,7 +143,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
143
143
  version: '0'
144
144
  requirements: []
145
145
  rubyforge_project:
146
- rubygems_version: 2.2.0
146
+ rubygems_version: 2.0.2
147
147
  signing_key:
148
148
  specification_version: 4
149
149
  summary: Simple Ruby interface to facilitate working with Wix Toolset