ocra 1.0.2 → 1.0.3

Sign up to get free protection for your applications and to get access to all the features.
@@ -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
@@ -7,3 +7,4 @@ share/ocra/lzma.exe
7
7
  share/ocra/stub.exe
8
8
  share/ocra/stubw.exe
9
9
  test/test_ocra.rb
10
+ lib/ocra.rb
data/Rakefile CHANGED
@@ -49,4 +49,10 @@ task :clean do
49
49
  sh "mingw32-make -C src clean"
50
50
  end
51
51
 
52
+ task :test_standalone => :standalone do
53
+ ENV['TESTED_OCRA'] = 'ocrasa.rb'
54
+ system("rake test")
55
+ ENV['TESTED_OCRA'] = nil
56
+ end
57
+
52
58
  # vim: syntax=Ruby
@@ -175,7 +175,7 @@ EOF
175
175
 
176
176
  executable = Ocra.files[0].sub(/(\.rbw?)?$/, '.exe')
177
177
 
178
- windowed = (Ocra.files[0] =~ /\.rbw$/ && !Ocra.force_windows) || Ocra.force_console
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"))
@@ -0,0 +1,3 @@
1
+ class Ocra
2
+ VERSION = '1.0.3'
3
+ end
Binary file
Binary file
@@ -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__), '../bin/ocra.rb'))
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.2
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-07 00:00:00 +02:00
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.2
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