ocran 1.3.17 → 1.4.0

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 (54) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.txt +306 -272
  3. data/LICENSE.txt +22 -22
  4. data/README.md +549 -531
  5. data/exe/ocran +5 -5
  6. data/ext/extconf.rb +15 -0
  7. data/lib/ocran/build_constants.rb +16 -16
  8. data/lib/ocran/build_facade.rb +17 -17
  9. data/lib/ocran/build_helper.rb +110 -105
  10. data/lib/ocran/command_output.rb +22 -22
  11. data/lib/ocran/dir_builder.rb +162 -0
  12. data/lib/ocran/direction.rb +623 -386
  13. data/lib/ocran/file_path_set.rb +69 -69
  14. data/lib/ocran/gem_spec_queryable.rb +172 -172
  15. data/lib/ocran/host_config_helper.rb +57 -37
  16. data/lib/ocran/inno_setup_script_builder.rb +111 -111
  17. data/lib/ocran/launcher_batch_builder.rb +85 -85
  18. data/lib/ocran/library_detector.rb +61 -61
  19. data/lib/ocran/library_detector_posix.rb +55 -0
  20. data/lib/ocran/option.rb +323 -273
  21. data/lib/ocran/refine_pathname.rb +104 -104
  22. data/lib/ocran/runner.rb +115 -105
  23. data/lib/ocran/runtime_environment.rb +46 -46
  24. data/lib/ocran/stub_builder.rb +298 -224
  25. data/lib/ocran/version.rb +5 -5
  26. data/lib/ocran/windows_command_escaping.rb +15 -15
  27. data/lib/ocran.rb +7 -7
  28. data/share/ocran/lzma.exe +0 -0
  29. data/src/Makefile +75 -0
  30. data/src/edicon.c +161 -0
  31. data/src/error.c +100 -0
  32. data/src/error.h +66 -0
  33. data/src/inst_dir.c +334 -0
  34. data/src/inst_dir.h +157 -0
  35. data/src/lzma/7zTypes.h +529 -0
  36. data/src/lzma/Compiler.h +43 -0
  37. data/src/lzma/LzmaDec.c +1363 -0
  38. data/src/lzma/LzmaDec.h +236 -0
  39. data/src/lzma/Precomp.h +10 -0
  40. data/src/script_info.c +246 -0
  41. data/src/script_info.h +7 -0
  42. data/src/stub.c +133 -0
  43. data/src/stub.manifest +29 -0
  44. data/src/stub.rc +3 -0
  45. data/src/system_utils.c +1002 -0
  46. data/src/system_utils.h +209 -0
  47. data/src/system_utils_posix.c +500 -0
  48. data/src/unpack.c +574 -0
  49. data/src/unpack.h +85 -0
  50. data/src/vit-ruby.ico +0 -0
  51. metadata +55 -22
  52. data/share/ocran/edicon.exe +0 -0
  53. data/share/ocran/stub.exe +0 -0
  54. data/share/ocran/stubw.exe +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b9a3cbb0a7f0f5d9eecc89b8f14d8c538abf146f9e95e982ece04a0fe1e58278
4
- data.tar.gz: acd0b94387b943c42ca1bbbd336faaacddaf209768e69bd446baff44995ac3cd
3
+ metadata.gz: bda746979fe3d0906ec129a11cc4b6d2bc7233f8d11eea4e3f4fb8f2aac9f8a4
4
+ data.tar.gz: dfa8ef139ec3ea69e984de479d90cfb00268d29abba79b609dbe7915d0002fe6
5
5
  SHA512:
6
- metadata.gz: 6ce6b73b6a11d76d91c9ba09ce79e71c09de420f68d0ac52a8d6636c95167b669a6ccea3ad3ae171232db80b6335479240363d9e38042c52b3c0fa806b539a41
7
- data.tar.gz: 36334319b2735ff7498cd03f49b85810c2e2a7ea902ec7a9a14a4378e4ec52af56507c551f8d92ee6139883388c91542f1e8c8da0269c0fff4b23660b6472703
6
+ metadata.gz: 60aab3f5becf047750ff2efcd5b9c05ecce6493d1e9f77f576dfc94f0864110ee881b91456404367b99912967e2c4cef596558c75cfcfa66aeb48a4308b63e91
7
+ data.tar.gz: cde421042a8d660dfb16d7fae20c7217d63cdaf5f701777115da1a2535af311580a6a9483609229d5faf326718d76edd1856b207a20f3df52b7b9f20565494af
data/CHANGELOG.txt CHANGED
@@ -1,272 +1,306 @@
1
- === 1.3.17
2
- - Modified `rake test` to no longer build stubs during test execution. Use `rake build_stub` when stub generation is necessary.
3
- - New `rake build` task as a unified build entry point, delegating to `build_stub`.
4
- - Updated GitHub Actions and internal scripts to use `rake build` instead of `rake build_stub`.
5
- - Add full support for multibyte (UTF-8) names across executables, scripts, and resources. Requires Windows 10 version 1903 or later.
6
- - Added UTF-8 manifest to stub.exe to enable UTF-8 support in ANSI API calls.
7
- - Update Bundler from 2.5.10 to 2.5.23. This is the last Bundler version officially supporting Ruby 3.0.
8
- - Added `bin/setup` and `bin/console` scripts for development (both Bash and Windows .bat versions).
9
- - `bin/setup` now installs dependencies and builds stub executables automatically.
10
- - Improved `spec.files` to explicitly include README, LICENSE, and CHANGELOG.
11
- - Introduced a `Development` section in the README with setup instructions and Windows shell compatibility.
12
- - Updated copyright year in README and LICENSE.
13
-
14
- === 1.3.16
15
- - Support for Ruby 3.0 and above. Drop ruby 2.6 and 2.7 support.
16
- - At startup, OCRAN no longer automatically removes directories that were previously deployed but couldn't be deleted. This change has been made to enhance security by preventing processes other than the startup process from manipulating temporary files created by them.
17
- - The ability for the stub to launch any script during the unpacking of application files has been removed. This feature was not in use.
18
- - The exit code from the Ruby application is now returned when the stub is terminated.
19
- - The packed data no longer contains redundant directory information.
20
- - Fixed errors in the --debug option.
21
- - Upgraded LZMA decoder to version 22.01
22
- - The directory generation for file extraction has been changed to use unique directory names created with high-resolution timestamps. Additionally, a retry limit for directory creation has been introduced, reducing the risk of infinite loops due to name collisions.
23
- - Implemented variable-length buffer handling for path strings in stub, eliminating the risk of buffer overruns dependent on MAX_PATH.
24
- - In order to reduce security risks during the cleanup process before application termination, we have implemented a safe current directory change from the system directory and the root of the C drive to the user's temporary directory and the directory of the app executable.
25
- - The 'stub' executable has been enhanced for security, ensuring it prevents directory traversal attacks by verifying that path elements do not contain relative notations like '.' or '..'.
26
- - Removed OcranBuilder and split functionality into StubBuilder and InnoSetupBuilder to introduce delayed loading and improve resource efficiency.
27
- - InnoSetup installer now operates independently of stub, launching through its own batch file.
28
- - Moved LibraryDetector to a separate file for modularity and implemented delayed loading with standardized Fiddle usage.
29
- - Update Bundler from 2.4.13 to 2.5.10.
30
- - Fixed issue where the gem.build_complete file was not included in the package due to an incorrect change.
31
- - Changed error output from standard output to standard error (stderr).
32
- - ocransa (Ocran-stand-alone) has been discontinued.
33
- - The implementation of bin/ocran.rb has been refactored and split into multiple files. These files have been relocated to the lib directory.
34
-
35
- === 1.3.15
36
- - Support for Ruby 2.6 and above.
37
- - Properly display errors from InnoSetup.
38
- - Fixed errors when creating an installer using InnoSetup. Previously, installer creation was not possible due to errors related to file sharing, which occurred only on Windows.
39
- - Retrieve the path of runtime DLLs even when the path is long. Note that stubs still do not support long paths, so creating executable files with long paths is not yet possible.
40
- - Fixed bugs in tests. All tests can now be executed.
41
- - Improved the speed of manifest file discovery. This manifest file is only required in the RubyInstaller environment.
42
- - Fixed bugs in the regular expressions of GEM_EXTRA_RE. This allows excluding C source files, etc., from the ocran executable package based on command options.
43
- - Added methods to Ocran::Pathname, making it closer to the implementation of Ruby's Pathname.
44
- - Reimplemented certain parts to match the implementation of Ruby 2.6 era, for compatibility with older Ruby versions. Therefore, the ocran command cannot be executed on Ruby versions earlier than 2.6.
45
-
46
- === 1.3.14
47
- - Add option to suppress or override RUBYOPT environment variable #3 by ccorn90
48
-
49
- === 1.3.13
50
- - Fixed the bug why Innosetup did not run because of missing encode method
51
- - Fix an issue where rubyinstaller did not find the msys path by putting in an empty msys-2.0.dll into msys64/usr/bin/msys-2.0.dll
52
- - compatibility with the tiny_tds gem (see above)
53
- - GitHub builds through github action: making sure you can trust the included binaries.
54
- - Added some samples including the glimmer-libui GUI example. GUI that starts fast.
55
-
56
- === 1.3.12
57
- * Forked from Ocra
58
- * Support Ruby up to 3.2
59
- * Update lzma.exe to version 22.01
60
-
61
- === 1.3.11
62
-
63
- * Support Ruby 2.2-2.7
64
- * Add ruby2_keywords.rb to ignored modules
65
- * Update lzma.exe to version 19.00
66
- * Workaround for warning about deprecated Object#=~
67
- * Use Fiddle instead of Win32API
68
- * Fix for invalid argument to relative_path_from
69
-
70
- === 1.3.10
71
-
72
- * Reduce memory usage while building & compressing (avoids out of
73
- memory issue on really big programs).
74
-
75
- * Compile stub.exe with 32-bit compiler again
76
-
77
- === 1.3.9
78
-
79
- * Support Ruby 2.4.1p111 (include manifest)
80
-
81
- === 1.3.8
82
-
83
- * Use GetModuleFileNameW for DLL detection
84
-
85
- === 1.3.7
86
-
87
- * Workaround for handling of file names and directory name with
88
- non-ASCII characters (e.g. "invalid byte sequence in UTF-8")
89
-
90
- === 1.3.6
91
-
92
- * More robust cleanup of temporary files. Deletes using manual
93
- recursive method instead of using the shell. Will mark files for
94
- later deletion both using Windows (requires Administrator
95
- privileges) and a custom method that will remove old temporary files
96
- when the executable is restarted.
97
-
98
- === 1.3.5
99
-
100
- * Fixes for Ruby 2.2.2p95
101
-
102
- === 1.3.4
103
-
104
- * Workarounds for Ruby 2.1.5
105
-
106
- === 1.3.3
107
-
108
- * Rebuild executables with MinGW GCC 4.8.1-4.
109
-
110
- === 1.3.2
111
-
112
- * Refactored Gemfile handling for better compatibility with Ruby
113
- version.
114
-
115
- === 1.3.1
116
-
117
- * Now includes $LOADED_FEATURES even when script is not run to check
118
- dependencies. This fixes compatability with Ruby 1.9.3 where
119
- rubygems is always loaded.
120
-
121
- * Fixed compatability with Ruby 2.0.0: Temp-path alias in binary
122
- changed to be valid UTF-8 character.
123
-
124
- * README.txt updated related to --no-dep-run (karhatsu).
125
-
126
- * Fixes for Bundler handling (DavidMikeSimon).
127
-
128
- === 1.3.0
129
-
130
- * Fixed some additional corner cases with absolute and relative
131
- require & load paths. Extended test suite to cover a lot more
132
- cases.
133
-
134
- * Now provides a meaningful exit status code (1 on error, 0 on
135
- success). (DavidMikeSimon)
136
-
137
- * New option to _not_ run the script to detect dependencies
138
- (--no-dep-run). (DavidMikeSimon)
139
-
140
- * Bundler support using the --gemfile option. (DavidMikeSimon)
141
-
142
- * Debug mode support in the stub (--debug). Also --debug-extract to
143
- keep extracted files from executable. (DavidMikeSimon)
144
-
145
- * New gem behaviour yet again due to changes in Rubygems. See README
146
- file.
147
-
148
- === 1.2.0
149
-
150
- * Ignore console events (Ctrl-C, Ctrl-Break). Ruby process handles
151
- them anyway and exist, allowing the stub to clean up temporary
152
- files.
153
-
154
- * Temporary memory used for decompression is now freed before the ruby
155
- interpreter is launched by the stub.
156
-
157
- * Progress dialog is no longer displayed when removing temporary
158
- files.
159
-
160
- * Now includes most files from any require'd Rubygem (Now works with
161
- mime-types, oledb and other gems that load additional data files
162
- from the Gem installation). Some files are still ignored
163
- (e.g. Readme's). Use "--no-gem-filter" to make Ocra unconditionally
164
- include all files listed in the Gem specification (Thanks to Jorge
165
- L. Cangas for patch & ideas).
166
-
167
- * NameErrors are now rescued when attempting to load autoloadable
168
- constants. Hopefully resolves issues with ActiveRecord [#28488].
169
-
170
- * Now works if the script changes environment or working directory
171
- while running.
172
-
173
- * Fixed a regression in 1.1.4 when resource files are specified;
174
- directory layout would not be maintained, e.g. when running "ocra
175
- bin/script share/data.dat".
176
-
177
- * Added support for passing arguments to script. Specify argument to
178
- your script after a "--" marker. Arguments will be passed both at
179
- compile time and run time. (#27815)
180
-
181
- * Now works if the source files are located beneath Ruby's
182
- exec_prefix. (#28505)
183
-
184
- === 1.1.4
185
-
186
- * The tempdir marker is now pretty-printed as "<tempdir>" in the
187
- output.
188
-
189
- * Fixed various issues with path and filenames being handled case
190
- sensitive.
191
-
192
- * Now uses config settings for Ruby executable names (should now also
193
- work with ruby installations built with --program-suffix).
194
-
195
- * Supported invoking ocra with an absolute path to the script. Will
196
- assume that the script is in the root of the source hierachy.
197
-
198
- === 1.1.3
199
-
200
- * Use Win32API (provided with Ruby) instead of win32-api (gem).
201
-
202
- * No longer sets GEM_HOME (which would override the default gem
203
- path). Instead sets GEM_PATH. Resolves issues with gems not loading
204
- on Ruby 1.9.
205
-
206
- === 1.1.2
207
-
208
- * Warnings can be disabled using --no-warnings.
209
-
210
- * Fixed not .exe being generated when script calls 'exit'.
211
-
212
- * Path to the generated executable is now avilable to the running
213
- script in the OCRA_EXECUTABLE environment variable.
214
-
215
- * Directories on the command line will now be created.
216
-
217
- * Supports path globs, fx. "ocra script.rb assets/**/*.png". (See
218
- documentation for Ruby's Dir class).
219
-
220
- * Fixed issue with spaces in temporary path (TMP environment).
221
-
222
- * Improved path comparison to ignore case (this is Windows after all)
223
- and be a bit more robust.
224
-
225
- * Added support for RubyGems installed in GEM_HOME (or other part
226
- handled by RubyGems). If not installed in the Ruby hierarchy, they
227
- will now be installed in a directory named 'gemhome' under the
228
- temporary directory.
229
-
230
- === 1.1.1
231
-
232
- * Fixed duplicate entries in the RUBYLIB environment variable.
233
-
234
- * Another slight fix for relative load paths.
235
-
236
- * RUBYOPT is now set to the value it had when OCRA was invoked.
237
-
238
- === 1.1.0
239
-
240
- * Added an icon to the executable. Can be replaced from a .ico file
241
- using the --icon <ico> option.
242
-
243
- * Improved handling of load paths added either from the command line
244
- (ruby -I), RUBYLIB environment variable or during the script (by
245
- modifying $: or $LOAD_PATH).
246
-
247
- * Now automatically detects loaded DLLs through Win32::API. Disable
248
- with --no-autodll.
249
-
250
- === 1.0.3 / 2009-05-25
251
-
252
- * Fixed invokation of executables with spaces in path names (#25966).
253
-
254
- * Fixed inverted handling of --windows & --console (#25974)
255
-
256
- * Fixed installation issue with RubyGems (missing "lib")
257
-
258
- === 1.0.2 / 2009-05-10
259
-
260
- * Added stubw.exe to gem (was missing 1.0.1)
261
-
262
- === 1.0.1 / 2009-05-05
263
-
264
- * Added stub with windows runtime for windowed applications
265
- (e.g. wxRuby) and fixed issue where OCRA would use ruby.exe instead
266
- of rubyw.exe for such programs. [#25774]
267
-
268
- === 1.0.0 / 2009-04-05
269
-
270
- * 1 major enhancement
271
-
272
- * Birthday!
1
+ === 1.4.0
2
+ - Add Linux support: build and run self-extracting ELF executables on Linux. The stub compiles and runs natively on Linux using POSIX APIs.
3
+ - Add macOS support: build and run self-extracting Mach-O executables on macOS.
4
+ - Add `--output-dir` option: output all files to a directory with a platform-appropriate launch script (`.sh` on Linux/macOS, `.bat` on Windows) instead of a single executable.
5
+ - Add `--output-zip` option: same as `--output-dir` but packages the result into a zip archive.
6
+ - Add `--macosx-bundle` option: wrap the macOS executable in a `.app` bundle with a generated `Info.plist`, suitable for Finder, the Dock, and Authenticode-style code signing with `codesign` and `xcrun notarytool`. Use `--bundle-id` to set `CFBundleIdentifier` and `--icon` (`.icns`) to set the bundle icon.
7
+ - Use symlinks for shared library aliases on POSIX (e.g. `libruby.so → libruby.so.4.0`) instead of copying files, matching the layout Ruby expects at runtime.
8
+ - Fix crash on cleanup when a symlink target does not exist: `DeleteRecursively` now uses `lstat` instead of `stat` so dangling symlinks are removed correctly.
9
+ - Publish platform-specific gems for Linux, macOS (ARM and Intel), and Windows so `gem install ocran` selects the right pre-built stub automatically.
10
+ - Publish a source gem (`ruby` platform) with `ext/extconf.rb` so users on unlisted platforms can install by compiling the stub from source. Falls back to plain `make` if `ridk exec make` is unavailable on Windows.
11
+ - CI: add GitHub Actions workflow to build and publish per-platform gems on tag push.
12
+ - CI: run the packed Linux executable inside a Debian Docker container to verify cross-distro portability (no Ruby required on target).
13
+ - CI: test against Ruby 3.2, 3.3, 3.4, and 4.0 on Linux, macOS (ARM and Intel), and Windows.
14
+
15
+ === 1.3.18
16
+ - Support shipping IRB as .exe File
17
+ - Fix SxS error 14001 when loading native extensions (e.g. openssl.so, date_core.so) at runtime. Each .so file may have a companion *.so-assembly.manifest in archdir defining its private SxS assembly; these manifests are now included alongside the .so files. All files in ruby_builtin_dlls/ (DLLs and manifest) are now included rather than the manifest alone.
18
+ - Support for Ruby 4.0.
19
+ - Include cacert.pem in the exe file to avoid SSL certificate verification issues.
20
+ - Use wide (UTF-16) Win32 APIs throughout system_utils.c (CreateFileW, CreateDirectoryW, DeleteFileW, FindFirstFileW/FindNextFileW, RemoveDirectoryW, GetFileAttributesW, MoveFileExW, GetTempPathW, CreateProcessW) to correctly handle multibyte (UTF-8) file and directory paths in the stub.
21
+ - Add Windows Authenticode code signing support. The stub now detects and skips PE security directory entries when searching for the OCRAN signature, so signed executables unpack correctly. Build time clears invalid security directory entries from PE headers to allow subsequent signing.
22
+ - Fix incorrect buffer size passed to GetModuleFileNameW in LibraryDetector (passed bytesize instead of character count).
23
+ - Fix pointer subtraction underflow in stub unpacker when a tampered offset places head past tail.
24
+ - Add bounds checking for icon file entries in edicon to prevent out-of-bounds reads from malformed .ico files.
25
+ - Support for Ruby 3.2 and above. Drop ruby 3.0 and 3.1 support.
26
+ - Suppress user notifications during stub cleanup and log errors to DEBUG output
27
+ - Fixes issue where two MessageBox dialogs appeared in GUI mode when a signature was not found.
28
+ - No longer create a marker file when the stub fails to delete the installation directory during cleanup.
29
+ - stub: During cleanup, switch to a safer working directory before removing the extraction directory.
30
+ - stub: Truncate error messages originating from the stub to a fixed maximum length.
31
+ - stub: Changed the name of the extraction directory to follow the mkdtemp style. The name is now generated using secure random numbers.
32
+ - stub: Disabled path expansion of template characters for additional options passed to the script.
33
+ - stub: Changed the script’s working directory switch to use Ruby’s `-C` option.
34
+
35
+ === 1.3.17
36
+ - Modified `rake test` to no longer build stubs during test execution. Use `rake build_stub` when stub generation is necessary.
37
+ - New `rake build` task as a unified build entry point, delegating to `build_stub`.
38
+ - Updated GitHub Actions and internal scripts to use `rake build` instead of `rake build_stub`.
39
+ - Add full support for multibyte (UTF-8) names across executables, scripts, and resources. Requires Windows 10 version 1903 or later.
40
+ - Added UTF-8 manifest to stub.exe to enable UTF-8 support in ANSI API calls.
41
+ - Update Bundler from 2.5.10 to 2.5.23. This is the last Bundler version officially supporting Ruby 3.0.
42
+ - Added `bin/setup` and `bin/console` scripts for development (both Bash and Windows .bat versions).
43
+ - `bin/setup` now installs dependencies and builds stub executables automatically.
44
+ - Improved `spec.files` to explicitly include README, LICENSE, and CHANGELOG.
45
+ - Introduced a `Development` section in the README with setup instructions and Windows shell compatibility.
46
+ - Updated copyright year in README and LICENSE.
47
+
48
+ === 1.3.16
49
+ - Support for Ruby 3.0 and above. Drop ruby 2.6 and 2.7 support.
50
+ - At startup, OCRAN no longer automatically removes directories that were previously deployed but couldn't be deleted. This change has been made to enhance security by preventing processes other than the startup process from manipulating temporary files created by them.
51
+ - The ability for the stub to launch any script during the unpacking of application files has been removed. This feature was not in use.
52
+ - The exit code from the Ruby application is now returned when the stub is terminated.
53
+ - The packed data no longer contains redundant directory information.
54
+ - Fixed errors in the --debug option.
55
+ - Upgraded LZMA decoder to version 22.01
56
+ - The directory generation for file extraction has been changed to use unique directory names created with high-resolution timestamps. Additionally, a retry limit for directory creation has been introduced, reducing the risk of infinite loops due to name collisions.
57
+ - Implemented variable-length buffer handling for path strings in stub, eliminating the risk of buffer overruns dependent on MAX_PATH.
58
+ - In order to reduce security risks during the cleanup process before application termination, we have implemented a safe current directory change from the system directory and the root of the C drive to the user's temporary directory and the directory of the app executable.
59
+ - The 'stub' executable has been enhanced for security, ensuring it prevents directory traversal attacks by verifying that path elements do not contain relative notations like '.' or '..'.
60
+ - Removed OcranBuilder and split functionality into StubBuilder and InnoSetupBuilder to introduce delayed loading and improve resource efficiency.
61
+ - InnoSetup installer now operates independently of stub, launching through its own batch file.
62
+ - Moved LibraryDetector to a separate file for modularity and implemented delayed loading with standardized Fiddle usage.
63
+ - Update Bundler from 2.4.13 to 2.5.10.
64
+ - Fixed issue where the gem.build_complete file was not included in the package due to an incorrect change.
65
+ - Changed error output from standard output to standard error (stderr).
66
+ - ocransa (Ocran-stand-alone) has been discontinued.
67
+ - The implementation of bin/ocran.rb has been refactored and split into multiple files. These files have been relocated to the lib directory.
68
+
69
+ === 1.3.15
70
+ - Support for Ruby 2.6 and above.
71
+ - Properly display errors from InnoSetup.
72
+ - Fixed errors when creating an installer using InnoSetup. Previously, installer creation was not possible due to errors related to file sharing, which occurred only on Windows.
73
+ - Retrieve the path of runtime DLLs even when the path is long. Note that stubs still do not support long paths, so creating executable files with long paths is not yet possible.
74
+ - Fixed bugs in tests. All tests can now be executed.
75
+ - Improved the speed of manifest file discovery. This manifest file is only required in the RubyInstaller environment.
76
+ - Fixed bugs in the regular expressions of GEM_EXTRA_RE. This allows excluding C source files, etc., from the ocran executable package based on command options.
77
+ - Added methods to Ocran::Pathname, making it closer to the implementation of Ruby's Pathname.
78
+ - Reimplemented certain parts to match the implementation of Ruby 2.6 era, for compatibility with older Ruby versions. Therefore, the ocran command cannot be executed on Ruby versions earlier than 2.6.
79
+
80
+ === 1.3.14
81
+ - Add option to suppress or override RUBYOPT environment variable #3 by ccorn90
82
+
83
+ === 1.3.13
84
+ - Fixed the bug why Innosetup did not run because of missing encode method
85
+ - Fix an issue where rubyinstaller did not find the msys path by putting in an empty msys-2.0.dll into msys64/usr/bin/msys-2.0.dll
86
+ - compatibility with the tiny_tds gem (see above)
87
+ - GitHub builds through github action: making sure you can trust the included binaries.
88
+ - Added some samples including the glimmer-libui GUI example. GUI that starts fast.
89
+
90
+ === 1.3.12
91
+ * Forked from Ocra
92
+ * Support Ruby up to 3.2
93
+ * Update lzma.exe to version 22.01
94
+
95
+ === 1.3.11
96
+
97
+ * Support Ruby 2.2-2.7
98
+ * Add ruby2_keywords.rb to ignored modules
99
+ * Update lzma.exe to version 19.00
100
+ * Workaround for warning about deprecated Object#=~
101
+ * Use Fiddle instead of Win32API
102
+ * Fix for invalid argument to relative_path_from
103
+
104
+ === 1.3.10
105
+
106
+ * Reduce memory usage while building & compressing (avoids out of
107
+ memory issue on really big programs).
108
+
109
+ * Compile stub.exe with 32-bit compiler again
110
+
111
+ === 1.3.9
112
+
113
+ * Support Ruby 2.4.1p111 (include manifest)
114
+
115
+ === 1.3.8
116
+
117
+ * Use GetModuleFileNameW for DLL detection
118
+
119
+ === 1.3.7
120
+
121
+ * Workaround for handling of file names and directory name with
122
+ non-ASCII characters (e.g. "invalid byte sequence in UTF-8")
123
+
124
+ === 1.3.6
125
+
126
+ * More robust cleanup of temporary files. Deletes using manual
127
+ recursive method instead of using the shell. Will mark files for
128
+ later deletion both using Windows (requires Administrator
129
+ privileges) and a custom method that will remove old temporary files
130
+ when the executable is restarted.
131
+
132
+ === 1.3.5
133
+
134
+ * Fixes for Ruby 2.2.2p95
135
+
136
+ === 1.3.4
137
+
138
+ * Workarounds for Ruby 2.1.5
139
+
140
+ === 1.3.3
141
+
142
+ * Rebuild executables with MinGW GCC 4.8.1-4.
143
+
144
+ === 1.3.2
145
+
146
+ * Refactored Gemfile handling for better compatibility with Ruby
147
+ version.
148
+
149
+ === 1.3.1
150
+
151
+ * Now includes $LOADED_FEATURES even when script is not run to check
152
+ dependencies. This fixes compatability with Ruby 1.9.3 where
153
+ rubygems is always loaded.
154
+
155
+ * Fixed compatability with Ruby 2.0.0: Temp-path alias in binary
156
+ changed to be valid UTF-8 character.
157
+
158
+ * README.txt updated related to --no-dep-run (karhatsu).
159
+
160
+ * Fixes for Bundler handling (DavidMikeSimon).
161
+
162
+ === 1.3.0
163
+
164
+ * Fixed some additional corner cases with absolute and relative
165
+ require & load paths. Extended test suite to cover a lot more
166
+ cases.
167
+
168
+ * Now provides a meaningful exit status code (1 on error, 0 on
169
+ success). (DavidMikeSimon)
170
+
171
+ * New option to _not_ run the script to detect dependencies
172
+ (--no-dep-run). (DavidMikeSimon)
173
+
174
+ * Bundler support using the --gemfile option. (DavidMikeSimon)
175
+
176
+ * Debug mode support in the stub (--debug). Also --debug-extract to
177
+ keep extracted files from executable. (DavidMikeSimon)
178
+
179
+ * New gem behaviour yet again due to changes in Rubygems. See README
180
+ file.
181
+
182
+ === 1.2.0
183
+
184
+ * Ignore console events (Ctrl-C, Ctrl-Break). Ruby process handles
185
+ them anyway and exist, allowing the stub to clean up temporary
186
+ files.
187
+
188
+ * Temporary memory used for decompression is now freed before the ruby
189
+ interpreter is launched by the stub.
190
+
191
+ * Progress dialog is no longer displayed when removing temporary
192
+ files.
193
+
194
+ * Now includes most files from any require'd Rubygem (Now works with
195
+ mime-types, oledb and other gems that load additional data files
196
+ from the Gem installation). Some files are still ignored
197
+ (e.g. Readme's). Use "--no-gem-filter" to make Ocra unconditionally
198
+ include all files listed in the Gem specification (Thanks to Jorge
199
+ L. Cangas for patch & ideas).
200
+
201
+ * NameErrors are now rescued when attempting to load autoloadable
202
+ constants. Hopefully resolves issues with ActiveRecord [#28488].
203
+
204
+ * Now works if the script changes environment or working directory
205
+ while running.
206
+
207
+ * Fixed a regression in 1.1.4 when resource files are specified;
208
+ directory layout would not be maintained, e.g. when running "ocra
209
+ bin/script share/data.dat".
210
+
211
+ * Added support for passing arguments to script. Specify argument to
212
+ your script after a "--" marker. Arguments will be passed both at
213
+ compile time and run time. (#27815)
214
+
215
+ * Now works if the source files are located beneath Ruby's
216
+ exec_prefix. (#28505)
217
+
218
+ === 1.1.4
219
+
220
+ * The tempdir marker is now pretty-printed as "<tempdir>" in the
221
+ output.
222
+
223
+ * Fixed various issues with path and filenames being handled case
224
+ sensitive.
225
+
226
+ * Now uses config settings for Ruby executable names (should now also
227
+ work with ruby installations built with --program-suffix).
228
+
229
+ * Supported invoking ocra with an absolute path to the script. Will
230
+ assume that the script is in the root of the source hierachy.
231
+
232
+ === 1.1.3
233
+
234
+ * Use Win32API (provided with Ruby) instead of win32-api (gem).
235
+
236
+ * No longer sets GEM_HOME (which would override the default gem
237
+ path). Instead sets GEM_PATH. Resolves issues with gems not loading
238
+ on Ruby 1.9.
239
+
240
+ === 1.1.2
241
+
242
+ * Warnings can be disabled using --no-warnings.
243
+
244
+ * Fixed not .exe being generated when script calls 'exit'.
245
+
246
+ * Path to the generated executable is now avilable to the running
247
+ script in the OCRA_EXECUTABLE environment variable.
248
+
249
+ * Directories on the command line will now be created.
250
+
251
+ * Supports path globs, fx. "ocra script.rb assets/**/*.png". (See
252
+ documentation for Ruby's Dir class).
253
+
254
+ * Fixed issue with spaces in temporary path (TMP environment).
255
+
256
+ * Improved path comparison to ignore case (this is Windows after all)
257
+ and be a bit more robust.
258
+
259
+ * Added support for RubyGems installed in GEM_HOME (or other part
260
+ handled by RubyGems). If not installed in the Ruby hierarchy, they
261
+ will now be installed in a directory named 'gemhome' under the
262
+ temporary directory.
263
+
264
+ === 1.1.1
265
+
266
+ * Fixed duplicate entries in the RUBYLIB environment variable.
267
+
268
+ * Another slight fix for relative load paths.
269
+
270
+ * RUBYOPT is now set to the value it had when OCRA was invoked.
271
+
272
+ === 1.1.0
273
+
274
+ * Added an icon to the executable. Can be replaced from a .ico file
275
+ using the --icon <ico> option.
276
+
277
+ * Improved handling of load paths added either from the command line
278
+ (ruby -I), RUBYLIB environment variable or during the script (by
279
+ modifying $: or $LOAD_PATH).
280
+
281
+ * Now automatically detects loaded DLLs through Win32::API. Disable
282
+ with --no-autodll.
283
+
284
+ === 1.0.3 / 2009-05-25
285
+
286
+ * Fixed invokation of executables with spaces in path names (#25966).
287
+
288
+ * Fixed inverted handling of --windows & --console (#25974)
289
+
290
+ * Fixed installation issue with RubyGems (missing "lib")
291
+
292
+ === 1.0.2 / 2009-05-10
293
+
294
+ * Added stubw.exe to gem (was missing 1.0.1)
295
+
296
+ === 1.0.1 / 2009-05-05
297
+
298
+ * Added stub with windows runtime for windowed applications
299
+ (e.g. wxRuby) and fixed issue where OCRA would use ruby.exe instead
300
+ of rubyw.exe for such programs. [#25774]
301
+
302
+ === 1.0.0 / 2009-04-05
303
+
304
+ * 1 major enhancement
305
+
306
+ * Birthday!