wixgem 0.31.0 → 0.32.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.
- checksums.yaml +4 -4
- data/example/example.msi +0 -0
- data/example/example.msm +0 -0
- data/example/install_files/directory/file2.txt +1 -0
- data/example/install_files/file1.txt +1 -0
- data/lib/templates/Install.wxs +26 -0
- data/lib/templates/mergemodule.wxs +15 -0
- data/lib/wixgem.rb +2 -2
- data/spec/COM_spec.rb +42 -42
- data/spec/execute.rb +8 -8
- data/spec/multiple_product_installation_spec.rb +70 -70
- data/spec/test_files_exist.rb +34 -34
- data/spec/wixpath.rb +1 -1
- metadata +19 -13
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1b83dd501d80b926d39330bd5cf856ce566770bf
|
4
|
+
data.tar.gz: bb57aae8fadb5997602880790cd824cce657526f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1bec407aebc0abb64c9a83612881d46de635a03055430b615d846b7c610e8404beebb0e2aaa45de4efb41de4812597869826184444c4846e4fc6a4198904be7
|
7
|
+
data.tar.gz: 5b66b15274997bd4e9197a9697a2c708887eabc55153e5ab6289438a576a1b680b91cb91aca7e52cb97c844be62c0dc6f9dc731186f3f014136ff922afc42044
|
data/example/example.msi
ADDED
Binary file
|
data/example/example.msm
ADDED
Binary file
|
@@ -0,0 +1 @@
|
|
1
|
+
Hello World
|
@@ -0,0 +1 @@
|
|
1
|
+
Hello World
|
@@ -0,0 +1,26 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
3
|
+
<Product Id="PRODUCT_CODE" Name="PRODUCT_NAME" Language="1033" Version="VERSION" Manufacturer="MANUFACTURER" UpgradeCode="UPGRADE_CODE">
|
4
|
+
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
|
5
|
+
|
6
|
+
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
|
7
|
+
<Media Id="1" Cabinet="WixgemTest.cab" EmbedCab="yes" />
|
8
|
+
|
9
|
+
<!-- Step 1: Define the directory structure -->
|
10
|
+
<Directory Id="TARGETDIR" Name="SourceDir">
|
11
|
+
<Directory Id="ProgramFilesFolder">
|
12
|
+
INSTALL_DIR
|
13
|
+
</Directory>
|
14
|
+
</Directory>
|
15
|
+
|
16
|
+
<!-- Step 2: Add files to installer package -->
|
17
|
+
<DirectoryRef Id="INSTALLFOLDER">
|
18
|
+
FILES
|
19
|
+
</DirectoryRef>
|
20
|
+
|
21
|
+
<!-- Step 3: Tell Wix to install the files-->
|
22
|
+
<Feature Id="ProductFeature" Title="PRODUCT_NAME Installation" Level="1">
|
23
|
+
COMPONENT_REFS
|
24
|
+
</Feature>
|
25
|
+
</Product>
|
26
|
+
</Wix>
|
@@ -0,0 +1,15 @@
|
|
1
|
+
<?xml version="1.0" encoding="utf-8"?>
|
2
|
+
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
|
3
|
+
<Module Id="MODULE_NAME" Language="1033" Version="VERSION">
|
4
|
+
<Package Id="PRODUCT_CODE" InstallerVersion="200" Manufacturer="MANUFACTURER" />
|
5
|
+
COMPONENT_REFS
|
6
|
+
<Directory Id="TARGETDIR" Name="SourceDir">
|
7
|
+
<Directory Id="MergeRedirectFolder" />
|
8
|
+
</Directory>
|
9
|
+
</Module>
|
10
|
+
<Fragment>
|
11
|
+
<DirectoryRef Id="MergeRedirectFolder">
|
12
|
+
FILES
|
13
|
+
</DirectoryRef>
|
14
|
+
</Fragment>
|
15
|
+
</Wix>
|
data/lib/wixgem.rb
CHANGED
@@ -48,8 +48,8 @@ class Wix
|
|
48
48
|
raise 'Hash must have an upgrade_code key if the hash has a :remove_existing_products key' unless(input.has_key?(:upgrade_code))
|
49
49
|
|
50
50
|
upgrade = product[0].add_element 'Upgrade', { 'Id' => input[:upgrade_code] }
|
51
|
-
upgrade.add_element 'UpgradeVersion', { 'Minimum' => input[:version], 'OnlyDetect'=>'yes', 'Property'=>'
|
52
|
-
upgrade.add_element 'UpgradeVersion', { 'Minimum' => '
|
51
|
+
upgrade.add_element 'UpgradeVersion', { 'Minimum' => input[:version], 'OnlyDetect'=>'yes', 'Property'=>'NEWERVERSIONDETECTED' }
|
52
|
+
upgrade.add_element 'UpgradeVersion', { 'Minimum' => '0.0.0', 'IncludeMinimum'=>'yes','Maximum'=>input[:version],'IncludeMaximum'=>'no','Property'=>'OLDERVERSIONBEINGUPGRADED' }
|
53
53
|
|
54
54
|
install_and_execute = REXML::XPath.match(xml_doc, '//Wix/Product/InstallExecuteSequence')
|
55
55
|
install_and_execute[0].add_element 'RemoveExistingProducts', { 'After'=>'InstallValidate' }
|
data/spec/COM_spec.rb
CHANGED
@@ -1,42 +1,42 @@
|
|
1
|
-
require 'rspec'
|
2
|
-
require './lib/wixgem.rb'
|
3
|
-
require './spec/wixpath.rb'
|
4
|
-
require './WindowsInstaller.rb'
|
5
|
-
require 'win32ole'
|
6
|
-
|
7
|
-
describe 'Wixgem' do
|
8
|
-
describe 'Installation of a COM object' do
|
9
|
-
it 'should not be able to instance a COM object' do
|
10
|
-
expect { WIN32OLE.new('COMObject.ComClassExample') }.to raise_error
|
11
|
-
end
|
12
|
-
|
13
|
-
installation_file = 'test/wixgem_com_test.msi'
|
14
|
-
while(WindowsInstaller.installed?(installation_file))
|
15
|
-
WindowsInstaller.uninstall(installation_file)
|
16
|
-
end
|
17
|
-
|
18
|
-
it "should create an installation file using: #{installation_file}" do
|
19
|
-
Wix.make_installation(installation_file, { debug: true, files: ['COMObject/bin/Release/COMObject.dll']})
|
20
|
-
expect(File.exists?(installation_file)).to be(true)
|
21
|
-
end
|
22
|
-
|
23
|
-
WindowsInstaller.install(installation_file)
|
24
|
-
|
25
|
-
it 'should be able to instance a COM object with a GUID' do
|
26
|
-
#object = WIN32OLE.new('{863AEADA-EE73-4f4a-ABC0-3FB384CB41AA}')
|
27
|
-
#expect(object.nil?).to eq(false)
|
28
|
-
#puts "Text: #{object.GetText}"
|
29
|
-
#expect(object.GetText).to eq('Hello World')
|
30
|
-
end
|
31
|
-
|
32
|
-
it 'should be able to instance a COM object with a Program Id' do
|
33
|
-
|
34
|
-
#object = WIN32OLE.new('COMObject.ComClassExample')
|
35
|
-
#expect(object.nil?).to eq(false)
|
36
|
-
#puts "Text: #{object.GetText}"
|
37
|
-
#expect(object.GetText).to eq('Hello World')
|
38
|
-
end
|
39
|
-
|
40
|
-
WindowsInstaller.uninstall(installation_file) if(WindowsInstaller.installed?(installation_file))
|
41
|
-
end
|
42
|
-
end
|
1
|
+
require 'rspec'
|
2
|
+
require './lib/wixgem.rb'
|
3
|
+
require './spec/wixpath.rb'
|
4
|
+
require './WindowsInstaller.rb'
|
5
|
+
require 'win32ole'
|
6
|
+
|
7
|
+
describe 'Wixgem' do
|
8
|
+
describe 'Installation of a COM object' do
|
9
|
+
it 'should not be able to instance a COM object' do
|
10
|
+
expect { WIN32OLE.new('COMObject.ComClassExample') }.to raise_error
|
11
|
+
end
|
12
|
+
|
13
|
+
installation_file = 'test/wixgem_com_test.msi'
|
14
|
+
while(WindowsInstaller.installed?(installation_file))
|
15
|
+
WindowsInstaller.uninstall(installation_file)
|
16
|
+
end
|
17
|
+
|
18
|
+
it "should create an installation file using: #{installation_file}" do
|
19
|
+
Wix.make_installation(installation_file, { debug: true, files: ['COMObject/bin/Release/COMObject.dll']})
|
20
|
+
expect(File.exists?(installation_file)).to be(true)
|
21
|
+
end
|
22
|
+
|
23
|
+
WindowsInstaller.install(installation_file)
|
24
|
+
|
25
|
+
it 'should be able to instance a COM object with a GUID' do
|
26
|
+
#object = WIN32OLE.new('{863AEADA-EE73-4f4a-ABC0-3FB384CB41AA}')
|
27
|
+
#expect(object.nil?).to eq(false)
|
28
|
+
#puts "Text: #{object.GetText}"
|
29
|
+
#expect(object.GetText).to eq('Hello World')
|
30
|
+
end
|
31
|
+
|
32
|
+
it 'should be able to instance a COM object with a Program Id' do
|
33
|
+
|
34
|
+
#object = WIN32OLE.new('COMObject.ComClassExample')
|
35
|
+
#expect(object.nil?).to eq(false)
|
36
|
+
#puts "Text: #{object.GetText}"
|
37
|
+
#expect(object.GetText).to eq('Hello World')
|
38
|
+
end
|
39
|
+
|
40
|
+
WindowsInstaller.uninstall(installation_file) if(WindowsInstaller.installed?(installation_file))
|
41
|
+
end
|
42
|
+
end
|
data/spec/execute.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
|
-
require 'dev_tasks'
|
2
|
-
|
3
|
-
def execute(cmd)
|
4
|
-
command = Command.new(cmd)
|
5
|
-
command.execute
|
6
|
-
|
7
|
-
raise "Failed: #{cmd} Status: #{command[:exit_code]}\nStdout: #{command[:output]}\nStderr: #{command[:error]}" unless(command[:exit_code] == 0)
|
8
|
-
end
|
1
|
+
require 'dev_tasks'
|
2
|
+
|
3
|
+
def execute(cmd)
|
4
|
+
command = Command.new(cmd)
|
5
|
+
command.execute
|
6
|
+
|
7
|
+
raise "Failed: #{cmd} Status: #{command[:exit_code]}\nStdout: #{command[:output]}\nStderr: #{command[:error]}" unless(command[:exit_code] == 0)
|
8
|
+
end
|
@@ -1,71 +1,71 @@
|
|
1
|
-
require 'rspec'
|
2
|
-
require './lib/wixgem.rb'
|
3
|
-
require './spec/wixpath.rb'
|
4
|
-
require './admin.rb'
|
5
|
-
require './spec/test_install.rb'
|
6
|
-
require './spec/test_files_exist.rb'
|
7
|
-
require 'json'
|
8
|
-
|
9
|
-
if(admin?)
|
10
|
-
describe 'Wixgem' do
|
11
|
-
describe 'Side by side installations' do
|
12
|
-
product1='wixgem_multiple 1.0'
|
13
|
-
product2='wixgem_multiple 1.1'
|
14
|
-
begin
|
15
|
-
Wix.make_installation("test/wixgem_multiple.1.0.0.msi", {version: '1.0.0.0', product_name: product1, upgrade_code: '{face46ab-74ce-44eb-a2b7-81a8cfad5bab}', files: ['Gemfile']})
|
16
|
-
Wix.make_installation("test/wixgem_multiple.1.1.0.msi", {version: '1.1.0.0', product_name: product2, upgrade_code: '{face46ab-74ce-44eb-a2b7-81a8cfad5bab}', files: ['rakefile.rb']})
|
17
|
-
|
18
|
-
it "should install version 1.0.0" do
|
19
|
-
execute("msiexec.exe /i test\\wixgem_multiple.1.0.0.msi")
|
20
|
-
expect(WindowsInstaller.installed?(product1)).to be(true)
|
21
|
-
expect(WindowsInstaller.version?(product1)).to eq('1.0.0.0')
|
22
|
-
end
|
23
|
-
|
24
|
-
it "should install version 1.1.0" do
|
25
|
-
execute("msiexec.exe /i test\\wixgem_multiple.1.1.0.msi")
|
26
|
-
expect(WindowsInstaller.installed?(product2)).to be(true)
|
27
|
-
expect(WindowsInstaller.version?(product2)).to eq('1.1.0.0')
|
28
|
-
end
|
29
|
-
|
30
|
-
it "version 1.0.0 should still be installed" do
|
31
|
-
expect(WindowsInstaller.installed?(product1)).to be(true)
|
32
|
-
end
|
33
|
-
|
34
|
-
it "product codes for version 1.0.0 and 1.0.0 should be different" do
|
35
|
-
expect(WindowsInstaller.product_code?(product1)).not_to eq(WindowsInstaller.product_code?(product2))
|
36
|
-
end
|
37
|
-
ensure
|
38
|
-
execute("msiexec.exe /quiet /x #{WindowsInstaller.product_code?(product1)}") while(WindowsInstaller.installed?(product1))
|
39
|
-
raise "Failed to uninstall product #{product1}" if(WindowsInstaller.installed?(product1))
|
40
|
-
execute("msiexec.exe /quiet /x #{WindowsInstaller.product_code?(product2)}") while(WindowsInstaller.installed?(product2))
|
41
|
-
raise "Failed to uninstall product #{product2}" if(WindowsInstaller.installed?(product2))
|
42
|
-
end
|
43
|
-
end
|
44
|
-
|
45
|
-
describe 'remove previous version' do
|
46
|
-
product1='wixgem_install 1.0'
|
47
|
-
product2='wixgem_install 1.1'
|
48
|
-
begin
|
49
|
-
Wix.make_installation("test/wixgem_install.1.0.0.msi", {version: '1.0.0.0', product_name: product1, upgrade_code: '{face46ab-74ce-44eb-a2b7-81a8cfad5bab}', files: ['Gemfile']})
|
50
|
-
Wix.make_installation("test/wixgem_install.1.1.0.msi", {version: '1.1.0.0', product_name: product2, remove_existing_products: true, upgrade_code: '{face46ab-74ce-44eb-a2b7-81a8cfad5bab}', files: ['rakefile.rb']})
|
51
|
-
|
52
|
-
it "should install version 1.0.0" do
|
53
|
-
execute("msiexec.exe /i test\\wixgem_install.1.0.0.msi")
|
54
|
-
expect(WindowsInstaller.installed?(product1)).to be(true)
|
55
|
-
end
|
56
|
-
|
57
|
-
it "should install version 1.1.0" do
|
58
|
-
execute("msiexec.exe /i test\\wixgem_install.1.1.0.msi")
|
59
|
-
expect(WindowsInstaller.installed?(product2)).to be(true)
|
60
|
-
end
|
61
|
-
|
62
|
-
it "the version 1.0.0 should have been uninstalled" do
|
63
|
-
expect(WindowsInstaller.installed?(product1)).to be(false)
|
64
|
-
end
|
65
|
-
ensure
|
66
|
-
execute("msiexec.exe /quiet /x #{WindowsInstaller.product_code?(product2)}") while(WindowsInstaller.installed?(product2))
|
67
|
-
raise "Failed to uninstall product #{product2}" if(WindowsInstaller.installed?(product2))
|
68
|
-
end
|
69
|
-
end
|
70
|
-
end
|
1
|
+
require 'rspec'
|
2
|
+
require './lib/wixgem.rb'
|
3
|
+
require './spec/wixpath.rb'
|
4
|
+
require './admin.rb'
|
5
|
+
require './spec/test_install.rb'
|
6
|
+
require './spec/test_files_exist.rb'
|
7
|
+
require 'json'
|
8
|
+
|
9
|
+
if(admin?)
|
10
|
+
describe 'Wixgem' do
|
11
|
+
describe 'Side by side installations' do
|
12
|
+
product1='wixgem_multiple 1.0'
|
13
|
+
product2='wixgem_multiple 1.1'
|
14
|
+
begin
|
15
|
+
Wix.make_installation("test/wixgem_multiple.1.0.0.msi", {version: '1.0.0.0', product_name: product1, upgrade_code: '{face46ab-74ce-44eb-a2b7-81a8cfad5bab}', files: ['Gemfile']})
|
16
|
+
Wix.make_installation("test/wixgem_multiple.1.1.0.msi", {version: '1.1.0.0', product_name: product2, upgrade_code: '{face46ab-74ce-44eb-a2b7-81a8cfad5bab}', files: ['rakefile.rb']})
|
17
|
+
|
18
|
+
it "should install version 1.0.0" do
|
19
|
+
execute("msiexec.exe /i test\\wixgem_multiple.1.0.0.msi")
|
20
|
+
expect(WindowsInstaller.installed?(product1)).to be(true)
|
21
|
+
expect(WindowsInstaller.version?(product1)).to eq('1.0.0.0')
|
22
|
+
end
|
23
|
+
|
24
|
+
it "should install version 1.1.0" do
|
25
|
+
execute("msiexec.exe /i test\\wixgem_multiple.1.1.0.msi")
|
26
|
+
expect(WindowsInstaller.installed?(product2)).to be(true)
|
27
|
+
expect(WindowsInstaller.version?(product2)).to eq('1.1.0.0')
|
28
|
+
end
|
29
|
+
|
30
|
+
it "version 1.0.0 should still be installed" do
|
31
|
+
expect(WindowsInstaller.installed?(product1)).to be(true)
|
32
|
+
end
|
33
|
+
|
34
|
+
it "product codes for version 1.0.0 and 1.0.0 should be different" do
|
35
|
+
expect(WindowsInstaller.product_code?(product1)).not_to eq(WindowsInstaller.product_code?(product2))
|
36
|
+
end
|
37
|
+
ensure
|
38
|
+
execute("msiexec.exe /quiet /x #{WindowsInstaller.product_code?(product1)}") while(WindowsInstaller.installed?(product1))
|
39
|
+
raise "Failed to uninstall product #{product1}" if(WindowsInstaller.installed?(product1))
|
40
|
+
execute("msiexec.exe /quiet /x #{WindowsInstaller.product_code?(product2)}") while(WindowsInstaller.installed?(product2))
|
41
|
+
raise "Failed to uninstall product #{product2}" if(WindowsInstaller.installed?(product2))
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
describe 'remove previous version' do
|
46
|
+
product1='wixgem_install 1.0'
|
47
|
+
product2='wixgem_install 1.1'
|
48
|
+
begin
|
49
|
+
Wix.make_installation("test/wixgem_install.1.0.0.msi", {version: '1.0.0.0', product_name: product1, upgrade_code: '{face46ab-74ce-44eb-a2b7-81a8cfad5bab}', files: ['Gemfile']})
|
50
|
+
Wix.make_installation("test/wixgem_install.1.1.0.msi", {version: '1.1.0.0', product_name: product2, remove_existing_products: true, upgrade_code: '{face46ab-74ce-44eb-a2b7-81a8cfad5bab}', files: ['rakefile.rb']})
|
51
|
+
|
52
|
+
it "should install version 1.0.0" do
|
53
|
+
execute("msiexec.exe /i test\\wixgem_install.1.0.0.msi")
|
54
|
+
expect(WindowsInstaller.installed?(product1)).to be(true)
|
55
|
+
end
|
56
|
+
|
57
|
+
it "should install version 1.1.0" do
|
58
|
+
execute("msiexec.exe /i test\\wixgem_install.1.1.0.msi")
|
59
|
+
expect(WindowsInstaller.installed?(product2)).to be(true)
|
60
|
+
end
|
61
|
+
|
62
|
+
it "the version 1.0.0 should have been uninstalled" do
|
63
|
+
expect(WindowsInstaller.installed?(product1)).to be(false)
|
64
|
+
end
|
65
|
+
ensure
|
66
|
+
execute("msiexec.exe /quiet /x #{WindowsInstaller.product_code?(product2)}") while(WindowsInstaller.installed?(product2))
|
67
|
+
raise "Failed to uninstall product #{product2}" if(WindowsInstaller.installed?(product2))
|
68
|
+
end
|
69
|
+
end
|
70
|
+
end
|
71
71
|
end
|
data/spec/test_files_exist.rb
CHANGED
@@ -1,35 +1,35 @@
|
|
1
|
-
def files(data)
|
2
|
-
files = data
|
3
|
-
if(data.kind_of?(Hash))
|
4
|
-
files = data[:files]
|
5
|
-
|
6
|
-
if(data.has_key?(:modify_file_paths))
|
7
|
-
modify_paths = data[:modify_file_paths]
|
8
|
-
files.each_index do |index|
|
9
|
-
file_path = files[index]
|
10
|
-
modify_paths.each { |regex, replacement_string| file_path = file_path.gsub(regex, replacement_string) }
|
11
|
-
files[index] = file_path
|
12
|
-
end
|
13
|
-
end
|
14
|
-
end
|
15
|
-
return files
|
16
|
-
end
|
17
|
-
|
18
|
-
def test_files_exist(msi_file, data)
|
19
|
-
files = files(data)
|
20
|
-
|
21
|
-
product_name = File.basename(msi_file, File.extname(msi_file))
|
22
|
-
product_name = data[:product_name] if(data.kind_of?(Hash) && data.has_key?(:product_name))
|
23
|
-
|
24
|
-
manufacturer = ''
|
25
|
-
manufacturer = data[:manufacturer] if(data.kind_of?(Hash) && data.has_key?(:manufacturer))
|
26
|
-
|
27
|
-
relative_install_dir = product_name
|
28
|
-
raise "#{name}: relative_install_dir should be set to the product name" if(relative_install_dir.length == 0)
|
29
|
-
relative_install_dir = "#{manufacturer}/#{relative_install_dir}" if(manufacturer.length > 0)
|
30
|
-
|
31
|
-
files.each { |file|
|
32
|
-
full_path = "C:/Program Files (x86)/#{relative_install_dir}/#{file}"
|
33
|
-
raise "#{full_path} not installed." unless(File.exists?(full_path))
|
34
|
-
}
|
1
|
+
def files(data)
|
2
|
+
files = data
|
3
|
+
if(data.kind_of?(Hash))
|
4
|
+
files = data[:files]
|
5
|
+
|
6
|
+
if(data.has_key?(:modify_file_paths))
|
7
|
+
modify_paths = data[:modify_file_paths]
|
8
|
+
files.each_index do |index|
|
9
|
+
file_path = files[index]
|
10
|
+
modify_paths.each { |regex, replacement_string| file_path = file_path.gsub(regex, replacement_string) }
|
11
|
+
files[index] = file_path
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
return files
|
16
|
+
end
|
17
|
+
|
18
|
+
def test_files_exist(msi_file, data)
|
19
|
+
files = files(data)
|
20
|
+
|
21
|
+
product_name = File.basename(msi_file, File.extname(msi_file))
|
22
|
+
product_name = data[:product_name] if(data.kind_of?(Hash) && data.has_key?(:product_name))
|
23
|
+
|
24
|
+
manufacturer = ''
|
25
|
+
manufacturer = data[:manufacturer] if(data.kind_of?(Hash) && data.has_key?(:manufacturer))
|
26
|
+
|
27
|
+
relative_install_dir = product_name
|
28
|
+
raise "#{name}: relative_install_dir should be set to the product name" if(relative_install_dir.length == 0)
|
29
|
+
relative_install_dir = "#{manufacturer}/#{relative_install_dir}" if(manufacturer.length > 0)
|
30
|
+
|
31
|
+
files.each { |file|
|
32
|
+
full_path = "C:/Program Files (x86)/#{relative_install_dir}/#{file}"
|
33
|
+
raise "#{full_path} not installed." unless(File.exists?(full_path))
|
34
|
+
}
|
35
35
|
end
|
data/spec/wixpath.rb
CHANGED
metadata
CHANGED
@@ -1,62 +1,62 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wixgem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.32.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-
|
11
|
+
date: 2015-01-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - ~>
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - ~>
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- - ~>
|
31
|
+
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
|
-
- - ~>
|
38
|
+
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
|
-
- - ~>
|
45
|
+
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
47
|
version: '0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
|
-
- - ~>
|
52
|
+
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: dev_tasks
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
|
-
- - ~>
|
59
|
+
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
61
|
version: '0'
|
62
62
|
- - '='
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
prerelease: false
|
67
67
|
version_requirements: !ruby/object:Gem::Requirement
|
68
68
|
requirements:
|
69
|
-
- - ~>
|
69
|
+
- - "~>"
|
70
70
|
- !ruby/object:Gem::Version
|
71
71
|
version: '0'
|
72
72
|
- - '='
|
@@ -81,7 +81,13 @@ extra_rdoc_files: []
|
|
81
81
|
files:
|
82
82
|
- LICENSE
|
83
83
|
- README.md
|
84
|
+
- example/example.msi
|
85
|
+
- example/example.msm
|
86
|
+
- example/install_files/directory/file2.txt
|
87
|
+
- example/install_files/file1.txt
|
84
88
|
- example/rakefile.rb
|
89
|
+
- lib/templates/Install.wxs
|
90
|
+
- lib/templates/mergemodule.wxs
|
85
91
|
- lib/wixgem.rb
|
86
92
|
- spec/COM_spec.rb
|
87
93
|
- spec/execute.rb
|
@@ -106,17 +112,17 @@ require_paths:
|
|
106
112
|
- lib
|
107
113
|
required_ruby_version: !ruby/object:Gem::Requirement
|
108
114
|
requirements:
|
109
|
-
- -
|
115
|
+
- - ">="
|
110
116
|
- !ruby/object:Gem::Version
|
111
117
|
version: 1.9.1
|
112
118
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
119
|
requirements:
|
114
|
-
- -
|
120
|
+
- - ">="
|
115
121
|
- !ruby/object:Gem::Version
|
116
122
|
version: '0'
|
117
123
|
requirements: []
|
118
124
|
rubyforge_project:
|
119
|
-
rubygems_version: 2.2.
|
125
|
+
rubygems_version: 2.2.2
|
120
126
|
signing_key:
|
121
127
|
specification_version: 4
|
122
128
|
summary: Simple Ruby interface to facilitate working with Wix Toolset
|