wixgem 0.54.0 → 0.55.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 +3 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3ea92ffe9cd98c7ca4aa623e484eeb2adf71bcba
4
- data.tar.gz: 5921543edf18cdafafef4ac19bbf95baebaf6f94
3
+ metadata.gz: b1a1048d698131cf02318b295fdb5a1d3937eb94
4
+ data.tar.gz: bd677e1f92860696b9d78df09de1e606c3c1a68b
5
5
  SHA512:
6
- metadata.gz: be4fb592af412bd191596c8f5575eb70e174e89197fe96cfc035c54e631cf1ce16de02d912e3b1b457c00f2c050022d39ad8f9160952fa1357bc32fd5bf30611
7
- data.tar.gz: 83d30d7c83b04db3485678536c6d3429e9bf9caa881965e25fb108aa903b63a61223f59590e005b50c6d0411afa62bafddf5138d5320bdb7058e409a2e918edb
6
+ metadata.gz: f26cdf9b46a8633ea82ad92506acbee4f751a1fa704267a024cec7481168848f5e94eac7fd7ec8203da7d34b58d73e8c46e89146bea380c9a1c6fa85a30d8e31
7
+ data.tar.gz: 1264d7c6dd68d30d37ba0ed0b04901cd2144078dc7399ed9b77a6303daae5f7a834208f2c8bfd6f66c1e0ecb533dc8170251a6ba3e2aa170dc15f8b85f0514b5
data/lib/wixgem.rb CHANGED
@@ -135,9 +135,10 @@ class Wix
135
135
  install_files.each do |file|
136
136
  absolute_path = file
137
137
  absolute_path = "#{input[:original_pwd]}/#{file}" unless(File.exists?(file))
138
-
138
+
139
139
  if(File.read_only?(absolute_path))
140
- install_path = ".\\#{self.modify_file_path(input, file)}"
140
+ ] install_path = ".\\#{self.modify_file_path(input, file).gsub(/\//,'\\')}"
141
+ install_path = install_path.gsub(/\.\\\\/,'.\\')
141
142
  file_elements = REXML::XPath.match(xml_doc, "//File[@Source='#{install_path}']")
142
143
  file_elements[0].attributes['ReadOnly'] = 'yes' if(file_elements.length == 1)
143
144
  end
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.54.0
4
+ version: 0.55.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-03-22 00:00:00.000000000 Z
11
+ date: 2015-03-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler