ocra 1.0.2 → 1.0.3
Sign up to get free protection for your applications and to get access to all the features.
- data/History.txt +12 -0
- data/Manifest.txt +1 -0
- data/Rakefile +6 -0
- data/bin/ocra.rb +2 -2
- data/lib/ocra.rb +3 -0
- data/share/ocra/stub.exe +0 -0
- data/share/ocra/stubw.exe +0 -0
- data/test/test_ocra.rb +3 -1
- metadata +4 -3
data/History.txt
CHANGED
@@ -1,3 +1,15 @@
|
|
1
|
+
=== 1.0.3 / 2009-05-25
|
2
|
+
|
3
|
+
* Fixed invokation of executables with spaces in path names (#25966).
|
4
|
+
|
5
|
+
* Fixed inverted handling of --windows & --console (#25974)
|
6
|
+
|
7
|
+
* Fixed installation issue with RubyGems (missing "lib")
|
8
|
+
|
9
|
+
=== 1.0.2 / 2009-05-10
|
10
|
+
|
11
|
+
* Added stubw.exe to gem (was missing 1.0.1)
|
12
|
+
|
1
13
|
=== 1.0.1 / 2009-05-05
|
2
14
|
|
3
15
|
* Added stub with windows runtime for windowed applications
|
data/Manifest.txt
CHANGED
data/Rakefile
CHANGED
data/bin/ocra.rb
CHANGED
@@ -175,7 +175,7 @@ EOF
|
|
175
175
|
|
176
176
|
executable = Ocra.files[0].sub(/(\.rbw?)?$/, '.exe')
|
177
177
|
|
178
|
-
windowed = (Ocra.files[0] =~ /\.rbw$/
|
178
|
+
windowed = (Ocra.files[0] =~ /\.rbw$/ || Ocra.force_windows) && !Ocra.force_console
|
179
179
|
|
180
180
|
puts "=== Building #{executable}" unless Ocra.quiet
|
181
181
|
OcraBuilder.new(executable, windowed) do |sb|
|
@@ -250,7 +250,7 @@ EOF
|
|
250
250
|
if Ocra.lzma_mode
|
251
251
|
begin
|
252
252
|
File.open("tmpin", "wb") { |tmp| tmp.write(@of) }
|
253
|
-
system("#{Ocra.lzmapath} e tmpin tmpout 2>NUL") or fail
|
253
|
+
system("\"#{Ocra.lzmapath}\" e tmpin tmpout 2>NUL") or fail
|
254
254
|
compressed_data = File.open("tmpout", "rb") { |tmp| tmp.read }
|
255
255
|
ocrafile.write([OP_DECOMPRESS_LZMA, compressed_data.size, compressed_data].pack("VVA*"))
|
256
256
|
ocrafile.write([OP_END].pack("V"))
|
data/lib/ocra.rb
ADDED
data/share/ocra/stub.exe
CHANGED
Binary file
|
data/share/ocra/stubw.exe
CHANGED
Binary file
|
data/test/test_ocra.rb
CHANGED
@@ -6,10 +6,12 @@ require "rbconfig"
|
|
6
6
|
|
7
7
|
class TestOcra < Test::Unit::TestCase
|
8
8
|
|
9
|
+
TESTED_OCRA = ENV['TESTED_OCRA'] || 'ocra.rb'
|
10
|
+
|
9
11
|
def initialize(*args)
|
10
12
|
super(*args)
|
11
13
|
@testnum = 0
|
12
|
-
@ocra = File.expand_path(File.join(File.dirname(__FILE__), '
|
14
|
+
@ocra = File.expand_path(File.join(File.dirname(__FILE__), '..', 'bin', TESTED_OCRA))
|
13
15
|
ENV['RUBYOPT'] = ""
|
14
16
|
end
|
15
17
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ocra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Lars Christensen
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-05-
|
12
|
+
date: 2009-05-25 00:00:00 +02:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -47,6 +47,7 @@ files:
|
|
47
47
|
- share/ocra/stub.exe
|
48
48
|
- share/ocra/stubw.exe
|
49
49
|
- test/test_ocra.rb
|
50
|
+
- lib/ocra.rb
|
50
51
|
has_rdoc: true
|
51
52
|
homepage: http://rubyforge.org/projects/ocra/
|
52
53
|
licenses: []
|
@@ -72,7 +73,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
72
73
|
requirements: []
|
73
74
|
|
74
75
|
rubyforge_project: ocra
|
75
|
-
rubygems_version: 1.3.
|
76
|
+
rubygems_version: 1.3.3
|
76
77
|
signing_key:
|
77
78
|
specification_version: 3
|
78
79
|
summary: OCRA (One-Click Ruby Application) builds Windows executables from Ruby source code
|