ocra 1.3.3 → 1.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,7 @@
1
+ === 1.3.4
2
+
3
+ * Workarounds for Ruby 2.1.5
4
+
1
5
  === 1.3.3
2
6
 
3
7
  * Rebuild executables with MinGW GCC 4.8.1-4.
@@ -1,8 +1,6 @@
1
1
  = ocra
2
2
 
3
- * http://ocra.rubyforge.org
4
- * RubyForge project page: http://rubyforge.org/projects/ocra
5
- * GitHub: http://github.com/larsch/ocra
3
+ * https://github.com/larsch/ocra/
6
4
  * Issue tracker: http://github.com/larsch/ocra/issues
7
5
  * Google Group: http://groups.google.com/group/ruby-ocra
8
6
 
@@ -16,7 +14,7 @@ any additionally needed ruby libraries or DLL.
16
14
  == FEATURES
17
15
 
18
16
  * LZMA Compression (optional, default on)
19
- * Ruby 1.8.7, 1.9.3 and 2.0.0 support
17
+ * Ruby 1.8.7, 1.9.3, 2.0.0 and 2.1.5 support
20
18
  * Both windowed/console mode supported
21
19
  * Includes gems based on usage, or from a Bundler Gemfile
22
20
 
data/bin/ocra CHANGED
@@ -175,9 +175,9 @@ module Ocra
175
175
  a.sort.inject([]) { |r, e| r.last == e ? r : r << e }
176
176
  end
177
177
 
178
- VERSION = "1.3.3"
178
+ VERSION = "1.3.4"
179
179
 
180
- IGNORE_MODULES = /^enumerator.so$/
180
+ IGNORE_MODULES = /\/(enumerator.so|thread.rb)$/
181
181
 
182
182
  GEM_SCRIPT_RE = /\.rbw?$/
183
183
  GEM_EXTRA_RE = %r{(
@@ -468,8 +468,8 @@ EOF
468
468
  mod.constants.each do |const|
469
469
  # Module::Config causes warning on Ruby 1.9.3 - prevent autoloading
470
470
  next if Module === mod && const == :Config
471
-
472
471
  if mod.autoload?(const)
472
+ Ocra.msg "Attempting to trigger autoload of #{mod}::#{const}"
473
473
  begin
474
474
  mod.const_get(const)
475
475
  rescue NameError
@@ -608,6 +608,7 @@ EOF
608
608
  end
609
609
 
610
610
  gem_files = []
611
+
611
612
  gems.each do |gemname, spec|
612
613
  @gemspecs << Pathname(spec.spec_file) if File.exist?(spec.spec_file)
613
614
 
@@ -654,6 +655,11 @@ EOF
654
655
  gem_root_files = nil
655
656
  files = []
656
657
 
658
+ unless gem_root.directory?
659
+ Ocra.warn "Gem #{spec.full_name} root folder was not found, skipping"
660
+ next
661
+ end
662
+
657
663
  # Find the selected files
658
664
  include.each do |set|
659
665
  case set
@@ -700,7 +706,7 @@ EOF
700
706
 
701
707
  restore_environment
702
708
 
703
- # If the script was ran, then detect the features it used
709
+ # If the script was run, then detect the features it used
704
710
  if Ocra.run_script
705
711
  # Attempt to autoload libraries before doing anything else.
706
712
  attempt_load_autoload if Ocra.load_autoload
@@ -709,7 +715,6 @@ EOF
709
715
  # Store the currently loaded files (before we require rbconfig for
710
716
  # our own use).
711
717
  features = $LOADED_FEATURES.map { |feature| Pathname(feature) }
712
- features.delete_if { |feature| feature =~ IGNORE_MODULES }
713
718
 
714
719
  # Find gemspecs to include
715
720
  if defined?(Gem)
@@ -864,7 +869,11 @@ EOF
864
869
  if file.directory?
865
870
  sb.ensuremkdir(target)
866
871
  else
867
- sb.createfile(file, target)
872
+ begin
873
+ sb.createfile(file, target)
874
+ rescue Errno::ENOENT
875
+ raise unless file =~ IGNORE_MODULES
876
+ end
868
877
  end
869
878
  end
870
879
 
@@ -1,3 +1,3 @@
1
1
  class Ocra
2
- VERSION = '1.3.3'
2
+ VERSION = '1.3.4'
3
3
  end
Binary file
Binary file
Binary file
@@ -217,8 +217,8 @@ class TestOcra < MiniTest::Test
217
217
  def test_output_option
218
218
  with_fixture 'helloworld' do
219
219
  assert system("ruby", ocra, "helloworld.rb", *(DefaultArgs + ["--output", "goodbyeworld.exe"]))
220
- assert !File.exists?("helloworld.exe")
221
- assert File.exists?("goodbyeworld.exe")
220
+ assert !File.exist?("helloworld.exe")
221
+ assert File.exist?("goodbyeworld.exe")
222
222
  end
223
223
  end
224
224
 
metadata CHANGED
@@ -1,32 +1,36 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ocra
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.3.3
4
+ version: 1.3.4
5
+ prerelease:
5
6
  platform: ruby
6
7
  authors:
7
8
  - Lars Christensen
8
9
  autorequire:
9
10
  bindir: bin
10
11
  cert_chain: []
11
- date: 2014-10-18 00:00:00.000000000 Z
12
+ date: 2015-01-13 00:00:00.000000000 Z
12
13
  dependencies:
13
14
  - !ruby/object:Gem::Dependency
14
15
  name: minitest
15
16
  requirement: !ruby/object:Gem::Requirement
17
+ none: false
16
18
  requirements:
17
19
  - - ~>
18
20
  - !ruby/object:Gem::Version
19
- version: '5.3'
21
+ version: '5.5'
20
22
  type: :development
21
23
  prerelease: false
22
24
  version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
23
26
  requirements:
24
27
  - - ~>
25
28
  - !ruby/object:Gem::Version
26
- version: '5.3'
29
+ version: '5.5'
27
30
  - !ruby/object:Gem::Dependency
28
31
  name: rdoc
29
32
  requirement: !ruby/object:Gem::Requirement
33
+ none: false
30
34
  requirements:
31
35
  - - ~>
32
36
  - !ruby/object:Gem::Version
@@ -34,6 +38,7 @@ dependencies:
34
38
  type: :development
35
39
  prerelease: false
36
40
  version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
37
42
  requirements:
38
43
  - - ~>
39
44
  - !ruby/object:Gem::Version
@@ -41,17 +46,19 @@ dependencies:
41
46
  - !ruby/object:Gem::Dependency
42
47
  name: hoe
43
48
  requirement: !ruby/object:Gem::Requirement
49
+ none: false
44
50
  requirements:
45
51
  - - ~>
46
52
  - !ruby/object:Gem::Version
47
- version: '3.12'
53
+ version: '3.13'
48
54
  type: :development
49
55
  prerelease: false
50
56
  version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
51
58
  requirements:
52
59
  - - ~>
53
60
  - !ruby/object:Gem::Version
54
- version: '3.12'
61
+ version: '3.13'
55
62
  description: ! 'OCRA (One-Click Ruby Application) builds Windows executables from
56
63
  Ruby
57
64
 
@@ -70,22 +77,21 @@ extra_rdoc_files:
70
77
  - Manifest.txt
71
78
  - README.rdoc
72
79
  files:
73
- - .gemtest
74
80
  - History.txt
75
81
  - Manifest.txt
76
82
  - README.rdoc
77
83
  - Rakefile
78
84
  - bin/ocra
79
- - lib/ocra.rb
80
- - share/ocra/edicon.exe
81
85
  - share/ocra/lzma.exe
82
86
  - share/ocra/stub.exe
83
87
  - share/ocra/stubw.exe
88
+ - share/ocra/edicon.exe
84
89
  - test/test_ocra.rb
85
- homepage: http://ocra.rubyforge.org
90
+ - lib/ocra.rb
91
+ - .gemtest
92
+ homepage: https://github.com/larsch/ocra/
86
93
  licenses:
87
94
  - MIT
88
- metadata: {}
89
95
  post_install_message:
90
96
  rdoc_options:
91
97
  - --main
@@ -93,20 +99,22 @@ rdoc_options:
93
99
  require_paths:
94
100
  - lib
95
101
  required_ruby_version: !ruby/object:Gem::Requirement
102
+ none: false
96
103
  requirements:
97
104
  - - ! '>='
98
105
  - !ruby/object:Gem::Version
99
106
  version: '0'
100
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
+ none: false
101
109
  requirements:
102
110
  - - ! '>='
103
111
  - !ruby/object:Gem::Version
104
112
  version: '0'
105
113
  requirements: []
106
114
  rubyforge_project:
107
- rubygems_version: 2.4.2
115
+ rubygems_version: 1.8.30
108
116
  signing_key:
109
- specification_version: 4
117
+ specification_version: 3
110
118
  summary: OCRA (One-Click Ruby Application) builds Windows executables from Ruby source
111
119
  code
112
120
  test_files:
checksums.yaml DELETED
@@ -1,15 +0,0 @@
1
- ---
2
- !binary "U0hBMQ==":
3
- metadata.gz: !binary |-
4
- N2E2OWRhMzRkMWI0NzA4OWIzNzIzNDNkYjE4OWNhMzRiNDk5ZGJlZQ==
5
- data.tar.gz: !binary |-
6
- ZGZiMGZmNTJjMmJjZmNiZWE0NWQxMTUxNzEzZWZkMDRkOTRlYThlMQ==
7
- SHA512:
8
- metadata.gz: !binary |-
9
- NmRhYTA1NDU5OGY1OWEwNGZiMjYzODcyMGY3MmRlY2RkMWU1ZWQ1MjI3YjEy
10
- MDFiY2ViMDU1MGVlNTA2NjA3MDFhYWI4MTI3ZmRiYjdhNjYzNDMzYjQ4NzI1
11
- Y2IzMjljNTY2Yzk5OGUwNGYyYzM1MDdmN2ZhMTU5YzZkN2ZiNjk=
12
- data.tar.gz: !binary |-
13
- NjM2ZmJkYzhmZGMyOWFhZTcxZGM3NDE5MjliMzk1YjFmY2U1ZDRkYzNhYzBl
14
- ZGJkMThlMGMyZTI0MmVjMTUyMjI3YTdkNDY3OGE4YTQ1MGU3ZTMyZTNhZTk4
15
- ZmZkNzI4Y2QyYmZkNmYzYmZmOWNlYzBiNDJjODQ4NGQwMTczOTY=