RubyPackager 0.1.1.20091105 → 0.2.1.20101110

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 (49) hide show
  1. data/ChangeLog +28 -0
  2. data/LICENSE +1 -1
  3. data/ReleaseInfo +3 -3
  4. data/TODO +2 -0
  5. data/bin/Release.rb +4 -2
  6. data/lib/RubyPackager/Distributors/SourceForge.rb +5 -6
  7. data/lib/RubyPackager/Installers/Gem.rb +98 -64
  8. data/lib/RubyPackager/ReleaseInfo.rb +10 -8
  9. data/lib/RubyPackager/Releaser.rb +18 -17
  10. data/lib/RubyPackager/Tools.rb +1 -1
  11. data/lib/RubyPackager/i386-cygwin/PlatformReleaser.rb +112 -0
  12. data/lib/RubyPackager/i386-linux/PlatformReleaser.rb +15 -20
  13. data/lib/RubyPackager/i386-mswin32/Installers/NSIS.rb +1 -1
  14. data/lib/RubyPackager/i386-mswin32/PlatformReleaser.rb +23 -25
  15. metadata +34 -56
  16. data/test/Common.rb +0 -346
  17. data/test/PlatformIndependent/CommandLine.rb +0 -156
  18. data/test/PlatformIndependent/Executable.rb +0 -31
  19. data/test/PlatformIndependent/Library.rb +0 -31
  20. data/test/PlatformIndependent/Misc.rb +0 -62
  21. data/test/PlatformIndependent/Plugins/Distributors/SourceForge.rb +0 -81
  22. data/test/PlatformIndependent/Plugins/Installers/Gem.rb +0 -142
  23. data/test/Repository/Applications/Basic/Distribution/ReleaseInfo.rb +0 -27
  24. data/test/Repository/Applications/Basic/Distribution/ReleaseInfo_Exe.rb +0 -33
  25. data/test/Repository/Applications/Basic/Distribution/ReleaseInfo_ExeTerm.rb +0 -33
  26. data/test/Repository/Applications/Basic/Distribution/ReleaseInfo_Gem.rb +0 -32
  27. data/test/Repository/Applications/Basic/Distribution/i386-mswin32/Icon.ico +0 -0
  28. data/test/Repository/Applications/Basic/Distribution/i386-mswin32/Installer/Icon.ico +0 -0
  29. data/test/Repository/Applications/Basic/Distribution/i386-mswin32/Installer/InstallLicense.txt +0 -31
  30. data/test/Repository/Applications/Basic/Distribution/i386-mswin32/Installer/install.nsi +0 -51
  31. data/test/Repository/Applications/Basic/Main.rb +0 -8
  32. data/test/Repository/Libraries/Basic/Add.rb +0 -6
  33. data/test/Repository/Libraries/Basic/Distribution/Icon.ico +0 -0
  34. data/test/Repository/Libraries/Basic/Distribution/InstallLicense.txt +0 -31
  35. data/test/Repository/Libraries/Basic/Distribution/ReleaseInfo.rb +0 -24
  36. data/test/Repository/Libraries/Basic/Distribution/ReleaseInfo_Additional.rb +0 -27
  37. data/test/Repository/Libraries/Basic/Distribution/ReleaseInfo_Gem.rb +0 -29
  38. data/test/Repository/Libraries/Basic/Distribution/ReleaseInfo_GemDep.rb +0 -32
  39. data/test/Repository/Libraries/Basic/Distribution/ReleaseInfo_NSIS.rb +0 -28
  40. data/test/Repository/Libraries/Basic/Distribution/ReleaseInfo_SF.rb +0 -28
  41. data/test/Repository/Libraries/Basic/Distribution/ReleaseInfo_Test.rb +0 -27
  42. data/test/Repository/Libraries/Basic/Distribution/ReleaseInfo_TestGem.rb +0 -33
  43. data/test/Repository/Libraries/Basic/Distribution/install.nsi +0 -53
  44. data/test/Repository/Libraries/Basic/MainLib.rb +0 -6
  45. data/test/Repository/Libraries/Basic/Test.rb +0 -6
  46. data/test/i386-linux/Executable.rb +0 -86
  47. data/test/i386-mswin32/Executable.rb +0 -90
  48. data/test/i386-mswin32/Plugins/Installers/NSIS.rb +0 -39
  49. data/test/run.rb +0 -23
@@ -1,31 +0,0 @@
1
-
2
- The license stated herein is a copy of the BSD License (modified on July 1999).
3
- The AUTHOR mentionned below refers to the list of people involved in the
4
- creation and modification of any file included in the delivered package.
5
- This list is found in the file named AUTHORS.
6
- The AUTHORS and LICENSE files have to be included in any release of software
7
- embedding source code of this package, or using it as a derivative software.
8
-
9
- Copyright (c) 2009 Muriel Salvan (murielsalvan@users.sourceforge.net)
10
-
11
- Redistribution and use in source and binary forms, with or without
12
- modification, are permitted provided that the following conditions are met:
13
-
14
- 1. Redistributions of source code must retain the above copyright notice,
15
- this list of conditions and the following disclaimer.
16
- 2. Redistributions in binary form must reproduce the above copyright notice,
17
- this list of conditions and the following disclaimer in the documentation
18
- and/or other materials provided with the distribution.
19
- 3. The name of the author may not be used to endorse or promote products
20
- derived from this software without specific prior written permission.
21
-
22
- THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
23
- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
24
- MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
25
- EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
26
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
27
- OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29
- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
30
- IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
31
- OF SUCH DAMAGE.
@@ -1,51 +0,0 @@
1
- ;--
2
- ; Copyright (c) 2009 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
- ; Licensed under the terms specified in LICENSE file. No warranty is provided.
4
- ;++
5
-
6
- ; install.nsi
7
- ;
8
- ; This script creates an installer using NSIS for a simple test program
9
- ; The compiler must define the following symbols:
10
- ; * VERSION (/DVERSION=0.0.1.20090430)
11
- ; * RELEASEDIR ("/DRELEASEDIR=C:\Releases\MyRelease")
12
-
13
- ;--------------------------------
14
- ; Global attributes
15
- Name "BasicTest"
16
- Caption "Basic Testing - Hello World"
17
- Icon "Icon.ico"
18
- OutFile "setup.exe"
19
-
20
- ;--------------------------------
21
- ; Compiler tuner
22
- XPStyle on
23
-
24
- ;--------------------------------
25
- ; Default location
26
- InstallDir "$PROGRAMFILES\Test"
27
-
28
- ;--------------------------------
29
- ; License
30
- LicenseText "Welcome to HelloWorld installation (v. ${VERSION})."
31
- LicenseData "InstallLicense.txt"
32
-
33
- ;--------------------------------
34
- ; List of wizard pages to display
35
- Page license
36
- Page components
37
- Page directory
38
- Page instfiles
39
-
40
- ;--------------------------------
41
- ; List of installable components
42
- InstType "Full"
43
-
44
- ;--------------------------------
45
- ; Sections giving what to install
46
-
47
- Section "Core"
48
- SectionIn 1 RO
49
- SetOutPath $INSTDIR
50
- File /r ${RELEASEDIR}\*.*
51
- SectionEnd
@@ -1,8 +0,0 @@
1
- # To change this template, choose Tools | Templates
2
- # and open the template in the editor.
3
- #--
4
- # Copyright (c) 2009 Muriel Salvan (murielsalvan@users.sourceforge.net)
5
- # Licensed under the terms specified in LICENSE file. No warranty is provided.
6
- #++
7
-
8
- puts "Hello World"
@@ -1,6 +0,0 @@
1
- #--
2
- # Copyright (c) 2009 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
- # Licensed under the terms specified in LICENSE file. No warranty is provided.
4
- #++
5
-
6
- puts "Hello World"
@@ -1,31 +0,0 @@
1
-
2
- The license stated herein is a copy of the BSD License (modified on July 1999).
3
- The AUTHOR mentionned below refers to the list of people involved in the
4
- creation and modification of any file included in the delivered package.
5
- This list is found in the file named AUTHORS.
6
- The AUTHORS and LICENSE files have to be included in any release of software
7
- embedding source code of this package, or using it as a derivative software.
8
-
9
- Copyright (c) 2009 Muriel Salvan (murielsalvan@users.sourceforge.net)
10
-
11
- Redistribution and use in source and binary forms, with or without
12
- modification, are permitted provided that the following conditions are met:
13
-
14
- 1. Redistributions of source code must retain the above copyright notice,
15
- this list of conditions and the following disclaimer.
16
- 2. Redistributions in binary form must reproduce the above copyright notice,
17
- this list of conditions and the following disclaimer in the documentation
18
- and/or other materials provided with the distribution.
19
- 3. The name of the author may not be used to endorse or promote products
20
- derived from this software without specific prior written permission.
21
-
22
- THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR IMPLIED
23
- WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
24
- MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO
25
- EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
26
- EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT
27
- OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
28
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
29
- CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING
30
- IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY
31
- OF SUCH DAMAGE.
@@ -1,24 +0,0 @@
1
- #--
2
- # Copyright (c) 2009 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
- # Licensed under the terms specified in LICENSE file. No warranty is provided.
4
- #++
5
-
6
- RubyPackager::ReleaseInfo.new.
7
- author(
8
- :Name => 'Author:Name',
9
- :EMail => 'Author:EMail',
10
- :WebPageURL => 'Author:WebPageURL'
11
- ).
12
- project(
13
- :Name => 'Project:Name',
14
- :WebPageURL => 'Project:WebPageURL',
15
- :Summary => 'Project:Summary',
16
- :Description => 'Project:Description',
17
- :ImageURL => 'Project:ImageURL',
18
- :FaviconURL => 'Project:FaviconURL',
19
- :SVNBrowseURL => 'Project:SVNBrowseURL',
20
- :DevStatus => 'Project:DevStatus'
21
- ).
22
- addCoreFiles( [
23
- 'MainLib.rb'
24
- ] )
@@ -1,27 +0,0 @@
1
- #--
2
- # Copyright (c) 2009 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
- # Licensed under the terms specified in LICENSE file. No warranty is provided.
4
- #++
5
-
6
- RubyPackager::ReleaseInfo.new.
7
- author(
8
- :Name => 'Author:Name',
9
- :EMail => 'Author:EMail',
10
- :WebPageURL => 'Author:WebPageURL'
11
- ).
12
- project(
13
- :Name => 'Project:Name',
14
- :WebPageURL => 'Project:WebPageURL',
15
- :Summary => 'Project:Summary',
16
- :Description => 'Project:Description',
17
- :ImageURL => 'Project:ImageURL',
18
- :FaviconURL => 'Project:FaviconURL',
19
- :SVNBrowseURL => 'Project:SVNBrowseURL',
20
- :DevStatus => 'Project:DevStatus'
21
- ).
22
- addCoreFiles( [
23
- 'MainLib.rb'
24
- ] ).
25
- addAdditionalFiles( [
26
- 'Add.rb'
27
- ] )
@@ -1,29 +0,0 @@
1
- #--
2
- # Copyright (c) 2009 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
- # Licensed under the terms specified in LICENSE file. No warranty is provided.
4
- #++
5
-
6
- RubyPackager::ReleaseInfo.new.
7
- author(
8
- :Name => 'Author:Name',
9
- :EMail => 'Author:EMail',
10
- :WebPageURL => 'Author:WebPageURL'
11
- ).
12
- project(
13
- :Name => 'Project:Name',
14
- :WebPageURL => 'Project:WebPageURL',
15
- :Summary => 'Project:Summary',
16
- :Description => 'Project:Description',
17
- :ImageURL => 'Project:ImageURL',
18
- :FaviconURL => 'Project:FaviconURL',
19
- :SVNBrowseURL => 'Project:SVNBrowseURL',
20
- :DevStatus => 'Project:DevStatus'
21
- ).
22
- addCoreFiles( [
23
- 'MainLib.rb'
24
- ] ).
25
- gem(
26
- :GemName => 'GemName',
27
- :GemPlatformClassName => 'Gem::Platform::RUBY',
28
- :HasRDoc => true
29
- )
@@ -1,32 +0,0 @@
1
- #--
2
- # Copyright (c) 2009 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
- # Licensed under the terms specified in LICENSE file. No warranty is provided.
4
- #++
5
-
6
- RubyPackager::ReleaseInfo.new.
7
- author(
8
- :Name => 'Author:Name',
9
- :EMail => 'Author:EMail',
10
- :WebPageURL => 'Author:WebPageURL'
11
- ).
12
- project(
13
- :Name => 'Project:Name',
14
- :WebPageURL => 'Project:WebPageURL',
15
- :Summary => 'Project:Summary',
16
- :Description => 'Project:Description',
17
- :ImageURL => 'Project:ImageURL',
18
- :FaviconURL => 'Project:FaviconURL',
19
- :SVNBrowseURL => 'Project:SVNBrowseURL',
20
- :DevStatus => 'Project:DevStatus'
21
- ).
22
- addCoreFiles( [
23
- 'MainLib.rb'
24
- ] ).
25
- gem(
26
- :GemName => 'GemName',
27
- :GemPlatformClassName => 'Gem::Platform::RUBY',
28
- :HasRDoc => true,
29
- :GemDependencies => [
30
- [ 'GemDepName', '>= 0.1' ]
31
- ]
32
- )
@@ -1,28 +0,0 @@
1
- #--
2
- # Copyright (c) 2009 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
- # Licensed under the terms specified in LICENSE file. No warranty is provided.
4
- #++
5
-
6
- RubyPackager::ReleaseInfo.new.
7
- author(
8
- :Name => 'Author:Name',
9
- :EMail => 'Author:EMail',
10
- :WebPageURL => 'Author:WebPageURL'
11
- ).
12
- project(
13
- :Name => 'Project:Name',
14
- :WebPageURL => 'Project:WebPageURL',
15
- :Summary => 'Project:Summary',
16
- :Description => 'Project:Description',
17
- :ImageURL => 'Project:ImageURL',
18
- :FaviconURL => 'Project:FaviconURL',
19
- :SVNBrowseURL => 'Project:SVNBrowseURL',
20
- :DevStatus => 'Project:DevStatus'
21
- ).
22
- addCoreFiles( [
23
- 'MainLib.rb'
24
- ] ).
25
- install(
26
- :NSISFileName => 'Distribution/install.nsi',
27
- :InstallerName => 'InstallerName'
28
- )
@@ -1,28 +0,0 @@
1
- #--
2
- # Copyright (c) 2009 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
- # Licensed under the terms specified in LICENSE file. No warranty is provided.
4
- #++
5
-
6
- RubyPackager::ReleaseInfo.new.
7
- author(
8
- :Name => 'Author:Name',
9
- :EMail => 'Author:EMail',
10
- :WebPageURL => 'Author:WebPageURL'
11
- ).
12
- project(
13
- :Name => 'Project:Name',
14
- :WebPageURL => 'Project:WebPageURL',
15
- :Summary => 'Project:Summary',
16
- :Description => 'Project:Description',
17
- :ImageURL => 'Project:ImageURL',
18
- :FaviconURL => 'Project:FaviconURL',
19
- :SVNBrowseURL => 'Project:SVNBrowseURL',
20
- :DevStatus => 'Project:DevStatus'
21
- ).
22
- addCoreFiles( [
23
- 'MainLib.rb'
24
- ] ).
25
- sourceForge(
26
- :Login => 'login',
27
- :ProjectUnixName => 'unixname'
28
- )
@@ -1,27 +0,0 @@
1
- #--
2
- # Copyright (c) 2009 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
- # Licensed under the terms specified in LICENSE file. No warranty is provided.
4
- #++
5
-
6
- RubyPackager::ReleaseInfo.new.
7
- author(
8
- :Name => 'Author:Name',
9
- :EMail => 'Author:EMail',
10
- :WebPageURL => 'Author:WebPageURL'
11
- ).
12
- project(
13
- :Name => 'Project:Name',
14
- :WebPageURL => 'Project:WebPageURL',
15
- :Summary => 'Project:Summary',
16
- :Description => 'Project:Description',
17
- :ImageURL => 'Project:ImageURL',
18
- :FaviconURL => 'Project:FaviconURL',
19
- :SVNBrowseURL => 'Project:SVNBrowseURL',
20
- :DevStatus => 'Project:DevStatus'
21
- ).
22
- addCoreFiles( [
23
- 'MainLib.rb'
24
- ] ).
25
- addTestFiles( [
26
- 'Test.rb'
27
- ] )
@@ -1,33 +0,0 @@
1
- #--
2
- # Copyright (c) 2009 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
- # Licensed under the terms specified in LICENSE file. No warranty is provided.
4
- #++
5
-
6
- RubyPackager::ReleaseInfo.new.
7
- author(
8
- :Name => 'Author:Name',
9
- :EMail => 'Author:EMail',
10
- :WebPageURL => 'Author:WebPageURL'
11
- ).
12
- project(
13
- :Name => 'Project:Name',
14
- :WebPageURL => 'Project:WebPageURL',
15
- :Summary => 'Project:Summary',
16
- :Description => 'Project:Description',
17
- :ImageURL => 'Project:ImageURL',
18
- :FaviconURL => 'Project:FaviconURL',
19
- :SVNBrowseURL => 'Project:SVNBrowseURL',
20
- :DevStatus => 'Project:DevStatus'
21
- ).
22
- addCoreFiles( [
23
- 'MainLib.rb'
24
- ] ).
25
- addTestFiles( [
26
- 'Test.rb'
27
- ] ).
28
- gem(
29
- :GemName => 'GemName',
30
- :GemPlatformClassName => 'Gem::Platform::RUBY',
31
- :HasRDoc => true,
32
- :TestFile => 'Test.rb'
33
- )
@@ -1,53 +0,0 @@
1
- ;--
2
- ; Copyright (c) 2009 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
- ; Licensed under the terms specified in LICENSE file. No warranty is provided.
4
- ;++
5
-
6
- ; install.nsi
7
- ;
8
- ; This script creates an installer using NSIS for PBS on Windows.
9
- ; The compiler must define the following symbols:
10
- ; * VERSION (/DVERSION=0.0.1.20090430)
11
- ; * RELEASEDIR ("/DRELEASEDIR=C:\PBS\Releases\MyRelease")
12
-
13
- ;--------------------------------
14
- ; Global attributes
15
- Name "Name"
16
- Caption "Caption"
17
- Icon "Icon.ico"
18
- OutFile "setup.exe"
19
-
20
- ;--------------------------------
21
- ; Compiler tuner
22
- XPStyle on
23
-
24
- ;--------------------------------
25
- ; Default location
26
- InstallDir "$PROGRAMFILES\DummyNSISInstall"
27
-
28
- ;--------------------------------
29
- ; License
30
- LicenseText "LicenseText"
31
- LicenseData "InstallLicense.txt"
32
-
33
- ;--------------------------------
34
- ; List of wizard pages to display
35
- Page license
36
- Page components
37
- Page directory
38
- Page instfiles
39
- UninstPage uninstConfirm
40
- UninstPage instfiles
41
-
42
- ;--------------------------------
43
- ; List of installable components
44
- InstType "Full"
45
-
46
- ;--------------------------------
47
- ; Sections giving what to install
48
-
49
- Section "DummySection"
50
- SectionIn 1 RO
51
- SetOutPath $INSTDIR
52
- File /r ${RELEASEDIR}\*.*
53
- SectionEnd
@@ -1,6 +0,0 @@
1
- #--
2
- # Copyright (c) 2009 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
- # Licensed under the terms specified in LICENSE file. No warranty is provided.
4
- #++
5
-
6
- puts "Hello World"
@@ -1,6 +0,0 @@
1
- #--
2
- # Copyright (c) 2009 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
- # Licensed under the terms specified in LICENSE file. No warranty is provided.
4
- #++
5
-
6
- puts "Hello World"
@@ -1,86 +0,0 @@
1
- #--
2
- # Copyright (c) 2009 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
- # Licensed under the terms specified in LICENSE file. No warranty is provided.
4
- #++
5
-
6
- module RubyPackager
7
-
8
- module Test
9
-
10
- module I386Linux
11
-
12
- class Executable < ::Test::Unit::TestCase
13
-
14
- include RubyPackager::Test::Common
15
-
16
- # Test the basic usage generating an executable
17
- def testBasicBinary
18
- execTest('Applications/Basic', [], 'ReleaseInfo_Exe.rb') do |iReleaseDir, iReleaseInfo|
19
- checkReleaseInfo(iReleaseDir, iReleaseInfo)
20
- checkReleaseNotes(iReleaseDir, iReleaseInfo)
21
- lExeFileName = "#{iReleaseDir}/Release/ExeName"
22
- assert(File.exists?(lExeFileName))
23
- # Unless the Executable file can contain other rb files (please Crate come faster !), files are still present.
24
- assert(File.exists?("#{iReleaseDir}/Release/Main.rb"))
25
- # Test it in Ruby's environment
26
- assert_equal("Ruby found on current platform. Use it directly.
27
- Hello World\n", runExe(lExeFileName))
28
- # TODO: Test it without Ruby's environment
29
- end
30
- end
31
-
32
- # Test the basic usage generating an executable in a terminal
33
- def testBasicBinaryInTerminal
34
- execTest('Applications/Basic', [], 'ReleaseInfo_ExeTerm.rb') do |iReleaseDir, iReleaseInfo|
35
- checkReleaseInfo(iReleaseDir, iReleaseInfo)
36
- checkReleaseNotes(iReleaseDir, iReleaseInfo)
37
- lExeFileName = "#{iReleaseDir}/Release/ExeName"
38
- assert(File.exists?(lExeFileName))
39
- # Unless the Executable file can contain other rb files (please Crate come faster !), files are still present.
40
- assert(File.exists?("#{iReleaseDir}/Release/Main.rb"))
41
- # Test it in Ruby's environment
42
- assert_equal("Ruby found on current platform. Use it directly.
43
- Hello World\n", runExe(lExeFileName))
44
- # TODO: Test it without Ruby's environment
45
- end
46
- end
47
-
48
- # Test the basic usage generating an executable, including Ruby
49
- def testBasicBinaryWithRuby
50
- execTest('Applications/Basic', [ '-r' ], 'ReleaseInfo_Exe.rb') do |iReleaseDir, iReleaseInfo|
51
- checkReleaseInfo(iReleaseDir, iReleaseInfo)
52
- checkReleaseNotes(iReleaseDir, iReleaseInfo)
53
- lExeFileName = "#{iReleaseDir}/Release/ExeName"
54
- assert(File.exists?(lExeFileName))
55
- # Unless the Executable file can contain other rb files (please Crate come faster !), files are still present.
56
- assert(File.exists?("#{iReleaseDir}/Release/Main.rb"))
57
- # Test it in Ruby's environment
58
- assert_equal("Ruby found on current platform. Use it directly.
59
- Hello World\n", runExe(lExeFileName))
60
- # TODO: Test it without Ruby's environment
61
- end
62
- end
63
-
64
- # Test the basic usage generating an executable, including Ruby launched from a terminal
65
- def testBasicBinaryWithRubyInTerminal
66
- execTest('Applications/Basic', [ '-r' ], 'ReleaseInfo_ExeTerm.rb') do |iReleaseDir, iReleaseInfo|
67
- checkReleaseInfo(iReleaseDir, iReleaseInfo)
68
- checkReleaseNotes(iReleaseDir, iReleaseInfo)
69
- lExeFileName = "#{iReleaseDir}/Release/ExeName"
70
- assert(File.exists?(lExeFileName))
71
- # Unless the Executable file can contain other rb files (please Crate come faster !), files are still present.
72
- assert(File.exists?("#{iReleaseDir}/Release/Main.rb"))
73
- # Test it in Ruby's environment
74
- assert_equal("Ruby found on current platform. Use it directly.
75
- Hello World\n", runExe(lExeFileName))
76
- # TODO: Test it without Ruby's environment
77
- end
78
- end
79
-
80
- end
81
-
82
- end
83
-
84
- end
85
-
86
- end
@@ -1,90 +0,0 @@
1
- #--
2
- # Copyright (c) 2009 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
- # Licensed under the terms specified in LICENSE file. No warranty is provided.
4
- #++
5
-
6
- module RubyPackager
7
-
8
- module Test
9
-
10
- module I386MSWin32
11
-
12
- class Executable < ::Test::Unit::TestCase
13
-
14
- include RubyPackager::Test::Common
15
-
16
- # Test the basic usage generating an executable
17
- def testBasicBinary
18
- execTest('Applications/Basic', [], 'ReleaseInfo_Exe.rb') do |iReleaseDir, iReleaseInfo|
19
- checkReleaseInfo(iReleaseDir, iReleaseInfo)
20
- checkReleaseNotes(iReleaseDir, iReleaseInfo)
21
- lExeFileName = "#{iReleaseDir}/Release/ExeName.exe"
22
- assert(File.exists?(lExeFileName))
23
- # Unless the Executable file can contain other rb files (please Crate come faster !), files are still present.
24
- assert(File.exists?("#{iReleaseDir}/Release/Main.rb"))
25
- # Test it in Ruby's environment
26
- assert_equal("ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]
27
- Ruby found in environment. Using it directly.
28
- > start rubyw -w \"#{iReleaseDir}/Release/Main.rb\" \n", runExe(lExeFileName))
29
- # TODO: Test it without Ruby's environment
30
- end
31
- end
32
-
33
- # Test the basic usage generating an executable in a terminal
34
- def testBasicBinaryInTerminal
35
- execTest('Applications/Basic', [], 'ReleaseInfo_ExeTerm.rb') do |iReleaseDir, iReleaseInfo|
36
- checkReleaseInfo(iReleaseDir, iReleaseInfo)
37
- checkReleaseNotes(iReleaseDir, iReleaseInfo)
38
- lExeFileName = "#{iReleaseDir}/Release/ExeName.exe"
39
- assert(File.exists?(lExeFileName))
40
- # Unless the Executable file can contain other rb files (please Crate come faster !), files are still present.
41
- assert(File.exists?("#{iReleaseDir}/Release/Main.rb"))
42
- # Test it in Ruby's environment
43
- assert_equal("ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]
44
- Ruby found in environment. Using it directly.
45
- > ruby -w \"#{iReleaseDir}/Release/Main.rb\" \nHello World\n", runExe(lExeFileName))
46
- # TODO: Test it without Ruby's environment
47
- end
48
- end
49
-
50
- # Test the basic usage generating an executable, including Ruby
51
- def testBasicBinaryWithRuby
52
- execTest('Applications/Basic', [ '-r' ], 'ReleaseInfo_Exe.rb') do |iReleaseDir, iReleaseInfo|
53
- checkReleaseInfo(iReleaseDir, iReleaseInfo)
54
- checkReleaseNotes(iReleaseDir, iReleaseInfo)
55
- lExeFileName = "#{iReleaseDir}/Release/ExeName.exe"
56
- assert(File.exists?(lExeFileName))
57
- # Unless the Executable file can contain other rb files (please Crate come faster !), files are still present.
58
- assert(File.exists?("#{iReleaseDir}/Release/Main.rb"))
59
- # Test it in Ruby's environment
60
- assert_equal("ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]
61
- Ruby found in environment. Using it directly.
62
- > start rubyw -w \"#{iReleaseDir}/Release/Main.rb\" \n", runExe(lExeFileName))
63
- # TODO: Test it without Ruby's environment
64
- end
65
- end
66
-
67
- # Test the basic usage generating an executable, including Ruby launched from a terminal
68
- def testBasicBinaryWithRubyInTerminal
69
- execTest('Applications/Basic', [ '-r' ], 'ReleaseInfo_ExeTerm.rb') do |iReleaseDir, iReleaseInfo|
70
- checkReleaseInfo(iReleaseDir, iReleaseInfo)
71
- checkReleaseNotes(iReleaseDir, iReleaseInfo)
72
- lExeFileName = "#{iReleaseDir}/Release/ExeName.exe"
73
- assert(File.exists?(lExeFileName))
74
- # Unless the Executable file can contain other rb files (please Crate come faster !), files are still present.
75
- assert(File.exists?("#{iReleaseDir}/Release/Main.rb"))
76
- # Test it in Ruby's environment
77
- assert_equal("ruby #{RUBY_VERSION} (#{RUBY_RELEASE_DATE}) [#{RUBY_PLATFORM}]
78
- Ruby found in environment. Using it directly.
79
- > ruby -w \"#{iReleaseDir}/Release/Main.rb\" \nHello World\n", runExe(lExeFileName))
80
- # TODO: Test it without Ruby's environment
81
- end
82
- end
83
-
84
- end
85
-
86
- end
87
-
88
- end
89
-
90
- end
@@ -1,39 +0,0 @@
1
- #--
2
- # Copyright (c) 2009 Muriel Salvan (murielsalvan@users.sourceforge.net)
3
- # Licensed under the terms specified in LICENSE file. No warranty is provided.
4
- #++
5
-
6
- module RubyPackager
7
-
8
- module Test
9
-
10
- module PlatformIndependent
11
-
12
- module Plugins
13
-
14
- module Installers
15
-
16
- class NSIS < ::Test::Unit::TestCase
17
-
18
- include RubyPackager::Test::Common
19
-
20
- def testNSISCall
21
- execTest('Libraries/Basic', [ '-v', '0.0.1.20091030', '-i', 'NSIS' ], 'ReleaseInfo_NSIS.rb') do |iReleaseDir, iReleaseInfo|
22
- checkReleaseInfo(iReleaseDir, iReleaseInfo, :Version => '0.0.1.20091030' )
23
- checkReleaseNotes(iReleaseDir, iReleaseInfo)
24
- assert(File.exists?("#{iReleaseDir}/Release/MainLib.rb"))
25
- assert(File.exists?("#{iReleaseDir}/Installer/InstallerName_0.0.1.20091030_setup.exe"))
26
- end
27
- end
28
-
29
- end
30
-
31
- end
32
-
33
- end
34
-
35
- end
36
-
37
- end
38
-
39
- end