ocran 1.3.15 → 1.3.17

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: a782f6a9d0c148e6270aa19573c86e5f6518e9511bcfda3aec59de84a1291e41
4
- data.tar.gz: 4eff772bc2997a4a99d08ea925c9e9d2eb0e8a1da48c687588dbf7c46d3d3453
3
+ metadata.gz: b9a3cbb0a7f0f5d9eecc89b8f14d8c538abf146f9e95e982ece04a0fe1e58278
4
+ data.tar.gz: acd0b94387b943c42ca1bbbd336faaacddaf209768e69bd446baff44995ac3cd
5
5
  SHA512:
6
- metadata.gz: 3f94bc970689b64b199584baa2ee27f5f371ba6220b3fd736ef24314ab49644eb21932ba2e9397add861bfc609da6b5e4d0be5e45a6804a8bcf64057a1c51978
7
- data.tar.gz: b881a6a9f0832490a5875360531e367b0f6efb008b2c8f94c54815fb63885f5350a19c40800f13da70fe714607ee774fd2a4e598373318d2b15a2b4b6fb9fc75
6
+ metadata.gz: 6ce6b73b6a11d76d91c9ba09ce79e71c09de420f68d0ac52a8d6636c95167b669a6ccea3ad3ae171232db80b6335479240363d9e38042c52b3c0fa806b539a41
7
+ data.tar.gz: 36334319b2735ff7498cd03f49b85810c2e2a7ea902ec7a9a14a4378e4ec52af56507c551f8d92ee6139883388c91542f1e8c8da0269c0fff4b23660b6472703
data/CHANGELOG.txt ADDED
@@ -0,0 +1,272 @@
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!
data/LICENSE.txt ADDED
@@ -0,0 +1,23 @@
1
+ (The MIT License)
2
+
3
+ Copyright (c) 2009-2020 Lars Christensen
4
+ Copyright (c) 2020-2025 The OCRAN Committers Team
5
+
6
+ Permission is hereby granted, free of charge, to any person obtaining
7
+ a copy of this software and associated documentation files (the
8
+ 'Software'), to deal in the Software without restriction, including
9
+ without limitation the rights to use, copy, modify, merge, publish,
10
+ distribute, sublicense, and/or sell copies of the Software, and to
11
+ permit persons to whom the Software is furnished to do so, subject to
12
+ the following conditions:
13
+
14
+ The above copyright notice and this permission notice shall be
15
+ included in all copies or substantial portions of the Software.
16
+
17
+ THE SOFTWARE IS PROVIDED 'AS IS', WITHOUT WARRANTY OF ANY KIND,
18
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
19
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
20
+ IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY
21
+ CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
22
+ TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
23
+ SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.