ocra 1.3.4 → 1.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/History.txt +4 -0
- data/README.rdoc +49 -49
- data/bin/ocra +9 -6
- data/lib/ocra.rb +1 -1
- data/share/ocra/edicon.exe +0 -0
- data/share/ocra/stub.exe +0 -0
- data/share/ocra/stubw.exe +0 -0
- metadata +23 -35
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: b08f5117bf00daab7de6290e3633a9ad77135232
|
4
|
+
data.tar.gz: 8eeb139fddacc6be202f2078490c0dfd33305aaa
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f0917075c10a5332e97b11d91ea52eaf27012232eb12cbc53dd3a8572acb6dc0a7a6a98a8841da97283373d6417016418876e4ff24bb70a0c1b94c626b8d4d37
|
7
|
+
data.tar.gz: cdef1036b565df38d836851295547ec12d0debf76ccbf04ef78028bd3fcb95705bfef76493ec028369bd9c83fca4d57d1758447faad0d0248cf65faed4470035
|
data/History.txt
CHANGED
data/README.rdoc
CHANGED
@@ -27,6 +27,20 @@ the issue tracker on GitHub (http://github.com/larsch/ocra/issues).
|
|
27
27
|
You can also join the Google Group discussion forum to ask questions
|
28
28
|
and get help (http://groups.google.com/group/ruby-ocra).
|
29
29
|
|
30
|
+
== INSTALLATION:
|
31
|
+
|
32
|
+
Gem:
|
33
|
+
|
34
|
+
gem install ocra
|
35
|
+
|
36
|
+
Alternatively you can download the gem at either
|
37
|
+
http://rubygems.org/gems/ocra or
|
38
|
+
https://github.com/larsch/ocra/releases/.
|
39
|
+
|
40
|
+
Stand-alone Version: Get ocrasa.rb from
|
41
|
+
https://github.com/larsch/ocra/releases/. Requires nothing but a
|
42
|
+
working Ruby installation on Windows.
|
43
|
+
|
30
44
|
== SYNOPSIS:
|
31
45
|
|
32
46
|
=== Building an executable:
|
@@ -47,59 +61,59 @@ dependencies (gems and DLLs) into an executable named
|
|
47
61
|
|
48
62
|
Ocra options:
|
49
63
|
|
50
|
-
--help Display this information.
|
51
|
-
--quiet Suppress output while building executable.
|
52
|
-
--verbose Show extra output while building executable.
|
53
|
-
--version Display version number and exit.
|
64
|
+
--help Display this information.
|
65
|
+
--quiet Suppress output while building executable.
|
66
|
+
--verbose Show extra output while building executable.
|
67
|
+
--version Display version number and exit.
|
54
68
|
|
55
69
|
Packaging options:
|
56
70
|
|
57
|
-
--dll dllname Include additional DLLs from the Ruby bindir.
|
58
|
-
--add-all-core Add all core ruby libraries to the executable.
|
59
|
-
--gemfile <file> Add all gems and dependencies listed in a Bundler Gemfile.
|
60
|
-
--no-enc Exclude encoding support files
|
71
|
+
--dll dllname Include additional DLLs from the Ruby bindir.
|
72
|
+
--add-all-core Add all core ruby libraries to the executable.
|
73
|
+
--gemfile <file> Add all gems and dependencies listed in a Bundler Gemfile.
|
74
|
+
--no-enc Exclude encoding support files
|
61
75
|
|
62
76
|
Gem content detection modes:
|
63
77
|
|
64
|
-
--gem-minimal[=gem1,..] Include only loaded scripts
|
65
|
-
--gem-guess=[gem1,...] Include loaded scripts & best guess (DEFAULT)
|
66
|
-
--gem-all[=gem1,..] Include all scripts & files
|
67
|
-
--gem-full[=gem1,..] Include EVERYTHING
|
68
|
-
--gem-spec[=gem1,..] Include files in gemspec (Does not work with Rubygems 1.7+)
|
78
|
+
--gem-minimal[=gem1,..] Include only loaded scripts
|
79
|
+
--gem-guess=[gem1,...] Include loaded scripts & best guess (DEFAULT)
|
80
|
+
--gem-all[=gem1,..] Include all scripts & files
|
81
|
+
--gem-full[=gem1,..] Include EVERYTHING
|
82
|
+
--gem-spec[=gem1,..] Include files in gemspec (Does not work with Rubygems 1.7+)
|
69
83
|
|
70
|
-
minimal: loaded scripts
|
71
|
-
guess: loaded scripts and other files
|
72
|
-
all: loaded scripts, other scripts, other files (except extras)
|
73
|
-
full: Everything found in the gem directory
|
84
|
+
minimal: loaded scripts
|
85
|
+
guess: loaded scripts and other files
|
86
|
+
all: loaded scripts, other scripts, other files (except extras)
|
87
|
+
full: Everything found in the gem directory
|
74
88
|
|
75
|
-
--[no-]gem-scripts[=..] Other script files than those loaded
|
76
|
-
--[no-]gem-files[=..] Other files (e.g. data files)
|
77
|
-
--[no-]gem-extras[=..] Extra files (README, etc.)
|
89
|
+
--[no-]gem-scripts[=..] Other script files than those loaded
|
90
|
+
--[no-]gem-files[=..] Other files (e.g. data files)
|
91
|
+
--[no-]gem-extras[=..] Extra files (README, etc.)
|
78
92
|
|
79
|
-
scripts: .rb/.rbw files
|
80
|
-
extras: C/C++ sources, object files, test, spec, README
|
81
|
-
files: all other files
|
93
|
+
scripts: .rb/.rbw files
|
94
|
+
extras: C/C++ sources, object files, test, spec, README
|
95
|
+
files: all other files
|
82
96
|
|
83
97
|
Auto-detection options:
|
84
98
|
|
85
|
-
--no-dep-run Don't run script.rb to check for dependencies.
|
86
|
-
--no-autoload Don't load/include script.rb's autoloads.
|
87
|
-
--no-autodll Disable detection of runtime DLL dependencies.
|
99
|
+
--no-dep-run Don't run script.rb to check for dependencies.
|
100
|
+
--no-autoload Don't load/include script.rb's autoloads.
|
101
|
+
--no-autodll Disable detection of runtime DLL dependencies.
|
88
102
|
|
89
103
|
Output options:
|
90
104
|
|
91
|
-
--output <file> Name the exe to generate. Defaults to ./<scriptname>.exe.
|
92
|
-
--no-lzma Disable LZMA compression of the executable.
|
93
|
-
--innosetup <file> Use given Inno Setup script (.iss) to create an installer.
|
105
|
+
--output <file> Name the exe to generate. Defaults to ./<scriptname>.exe.
|
106
|
+
--no-lzma Disable LZMA compression of the executable.
|
107
|
+
--innosetup <file> Use given Inno Setup script (.iss) to create an installer.
|
94
108
|
|
95
109
|
Executable options:
|
96
110
|
|
97
|
-
--windows Force Windows application (rubyw.exe)
|
98
|
-
--console Force console application (ruby.exe)
|
99
|
-
--chdir-first When exe starts, change working directory to app dir.
|
100
|
-
--icon <ico> Replace icon with a custom one.
|
101
|
-
--debug Executable will be verbose.
|
102
|
-
--debug-extract Executable will unpack to local dir and not delete after.
|
111
|
+
--windows Force Windows application (rubyw.exe)
|
112
|
+
--console Force console application (ruby.exe)
|
113
|
+
--chdir-first When exe starts, change working directory to app dir.
|
114
|
+
--icon <ico> Replace icon with a custom one.
|
115
|
+
--debug Executable will be verbose.
|
116
|
+
--debug-extract Executable will unpack to local dir and not delete after.
|
103
117
|
|
104
118
|
|
105
119
|
=== Compilation:
|
@@ -156,20 +170,6 @@ Executable options:
|
|
156
170
|
|
157
171
|
* MinGW Installation (when working with the source code only)
|
158
172
|
|
159
|
-
== INSTALL:
|
160
|
-
|
161
|
-
=== Gem Package
|
162
|
-
|
163
|
-
Install by running:
|
164
|
-
|
165
|
-
gem install ocra
|
166
|
-
|
167
|
-
=== Alternate Gem download:
|
168
|
-
|
169
|
-
* http://rubyforge.org/frs/?group_id=8185
|
170
|
-
|
171
|
-
* http://rubygems.org/gems/ocra
|
172
|
-
|
173
173
|
=== Stand-alone version
|
174
174
|
|
175
175
|
Get ocrasa.rb from http://rubyforge.org/frs/?group_id=8185. Requires
|
data/bin/ocra
CHANGED
@@ -15,6 +15,9 @@ module Ocra
|
|
15
15
|
end
|
16
16
|
|
17
17
|
attr_reader :path
|
18
|
+
if File::ALT_SEPARATOR.nil?
|
19
|
+
File::ALT_SEPARATOR = "\\"
|
20
|
+
end
|
18
21
|
SEPARATOR_PAT = /[#{Regexp.quote File::ALT_SEPARATOR}#{Regexp.quote File::SEPARATOR}]/ # }
|
19
22
|
ABSOLUTE_PAT = /\A([A-Z]:)?#{SEPARATOR_PAT}/i
|
20
23
|
|
@@ -175,9 +178,9 @@ module Ocra
|
|
175
178
|
a.sort.inject([]) { |r, e| r.last == e ? r : r << e }
|
176
179
|
end
|
177
180
|
|
178
|
-
VERSION = "1.3.
|
181
|
+
VERSION = "1.3.5"
|
179
182
|
|
180
|
-
IGNORE_MODULES = /\/(enumerator.so|thread.rb)$/
|
183
|
+
IGNORE_MODULES = /\/(enumerator.so|rational.so|complex.so|thread.rb)$/
|
181
184
|
|
182
185
|
GEM_SCRIPT_RE = /\.rbw?$/
|
183
186
|
GEM_EXTRA_RE = %r{(
|
@@ -812,7 +815,7 @@ EOF
|
|
812
815
|
if gemfile.subpath?(Host.exec_prefix)
|
813
816
|
libs << [ gemfile, gemfile.relative_path_from(Host.exec_prefix) ]
|
814
817
|
elsif defined?(Gem) and gemhome = Gem.path.find { |pth| gemfile.subpath?(pth) }
|
815
|
-
targetpath = GEMHOMEDIR /
|
818
|
+
targetpath = GEMHOMEDIR / gemfile.relative_path_from(Pathname(gemhome))
|
816
819
|
libs << [ gemfile, targetpath ]
|
817
820
|
else
|
818
821
|
Ocra.fatal_error "Don't know where to put gemfile #{gemfile}"
|
@@ -912,7 +915,7 @@ EOF
|
|
912
915
|
if gemspec.subpath?(Host.exec_prefix)
|
913
916
|
path = gemspec.relative_path_from(Host.exec_prefix)
|
914
917
|
sb.createfile(gemspec, path)
|
915
|
-
elsif defined?(Gem) and gemhome = Gem.path.find { |pth| gemspec.subpath?(pth) }
|
918
|
+
elsif defined?(Gem) and gemhome = Pathname(Gem.path.find { |pth| gemspec.subpath?(pth) })
|
916
919
|
path = GEMHOMEDIR / gemspec.relative_path_from(gemhome)
|
917
920
|
sb.createfile(gemspec, path)
|
918
921
|
else
|
@@ -948,9 +951,9 @@ EOF
|
|
948
951
|
def LibraryDetector.loaded_dlls
|
949
952
|
require 'Win32API'
|
950
953
|
|
951
|
-
enumprocessmodules = Win32API.new('psapi', 'EnumProcessModules', ['L','P','L','P'], '
|
954
|
+
enumprocessmodules = Win32API.new('psapi', 'EnumProcessModules', ['L','P','L','P'], 'L')
|
952
955
|
getmodulefilename = Win32API.new('kernel32', 'GetModuleFileName', ['L','P','L'], 'L')
|
953
|
-
getcurrentprocess = Win32API.new('kernel32', 'GetCurrentProcess', [
|
956
|
+
getcurrentprocess = Win32API.new('kernel32', 'GetCurrentProcess', [], 'L')
|
954
957
|
|
955
958
|
bytes_needed = 4 * 32
|
956
959
|
module_handle_buffer = nil
|
data/lib/ocra.rb
CHANGED
data/share/ocra/edicon.exe
CHANGED
Binary file
|
data/share/ocra/stub.exe
CHANGED
Binary file
|
data/share/ocra/stubw.exe
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,72 +1,62 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ocra
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.3.
|
5
|
-
prerelease:
|
4
|
+
version: 1.3.5
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Lars Christensen
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date: 2015-
|
11
|
+
date: 2015-04-23 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: minitest
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- - ~>
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: '5.
|
19
|
+
version: '5.4'
|
22
20
|
type: :development
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- - ~>
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: '5.
|
26
|
+
version: '5.4'
|
30
27
|
- !ruby/object:Gem::Dependency
|
31
28
|
name: rdoc
|
32
29
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
30
|
requirements:
|
35
|
-
- - ~>
|
31
|
+
- - "~>"
|
36
32
|
- !ruby/object:Gem::Version
|
37
33
|
version: '4.0'
|
38
34
|
type: :development
|
39
35
|
prerelease: false
|
40
36
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
37
|
requirements:
|
43
|
-
- - ~>
|
38
|
+
- - "~>"
|
44
39
|
- !ruby/object:Gem::Version
|
45
40
|
version: '4.0'
|
46
41
|
- !ruby/object:Gem::Dependency
|
47
42
|
name: hoe
|
48
43
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
44
|
requirements:
|
51
|
-
- - ~>
|
45
|
+
- - "~>"
|
52
46
|
- !ruby/object:Gem::Version
|
53
47
|
version: '3.13'
|
54
48
|
type: :development
|
55
49
|
prerelease: false
|
56
50
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
51
|
requirements:
|
59
|
-
- - ~>
|
52
|
+
- - "~>"
|
60
53
|
- !ruby/object:Gem::Version
|
61
54
|
version: '3.13'
|
62
|
-
description:
|
63
|
-
Ruby
|
64
|
-
|
55
|
+
description: |-
|
56
|
+
OCRA (One-Click Ruby Application) builds Windows executables from Ruby
|
65
57
|
source code. The executable is a self-extracting, self-running
|
66
|
-
|
67
58
|
executable that contains the Ruby interpreter, your source code and
|
68
|
-
|
69
|
-
any additionally needed ruby libraries or DLL.'
|
59
|
+
any additionally needed ruby libraries or DLL.
|
70
60
|
email:
|
71
61
|
- larsch@belunktum.dk
|
72
62
|
executables:
|
@@ -77,45 +67,43 @@ extra_rdoc_files:
|
|
77
67
|
- Manifest.txt
|
78
68
|
- README.rdoc
|
79
69
|
files:
|
70
|
+
- ".gemtest"
|
80
71
|
- History.txt
|
81
72
|
- Manifest.txt
|
82
73
|
- README.rdoc
|
83
74
|
- Rakefile
|
84
75
|
- bin/ocra
|
76
|
+
- lib/ocra.rb
|
77
|
+
- share/ocra/edicon.exe
|
85
78
|
- share/ocra/lzma.exe
|
86
79
|
- share/ocra/stub.exe
|
87
80
|
- share/ocra/stubw.exe
|
88
|
-
- share/ocra/edicon.exe
|
89
81
|
- test/test_ocra.rb
|
90
|
-
- lib/ocra.rb
|
91
|
-
- .gemtest
|
92
82
|
homepage: https://github.com/larsch/ocra/
|
93
83
|
licenses:
|
94
84
|
- MIT
|
85
|
+
metadata: {}
|
95
86
|
post_install_message:
|
96
87
|
rdoc_options:
|
97
|
-
- --main
|
88
|
+
- "--main"
|
98
89
|
- README.rdoc
|
99
90
|
require_paths:
|
100
91
|
- lib
|
101
92
|
required_ruby_version: !ruby/object:Gem::Requirement
|
102
|
-
none: false
|
103
93
|
requirements:
|
104
|
-
- -
|
94
|
+
- - ">="
|
105
95
|
- !ruby/object:Gem::Version
|
106
96
|
version: '0'
|
107
97
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
108
|
-
none: false
|
109
98
|
requirements:
|
110
|
-
- -
|
99
|
+
- - ">="
|
111
100
|
- !ruby/object:Gem::Version
|
112
101
|
version: '0'
|
113
102
|
requirements: []
|
114
103
|
rubyforge_project:
|
115
|
-
rubygems_version:
|
104
|
+
rubygems_version: 2.4.5
|
116
105
|
signing_key:
|
117
|
-
specification_version:
|
106
|
+
specification_version: 4
|
118
107
|
summary: OCRA (One-Click Ruby Application) builds Windows executables from Ruby source
|
119
108
|
code
|
120
|
-
test_files:
|
121
|
-
- test/test_ocra.rb
|
109
|
+
test_files: []
|