Skip to content

Release 1.4.6

Choose a tag to compare

@github-actions github-actions released this 01 Oct 23:13
· 114 commits to master since this release
Immutable release. Only release title and notes can be modified.
17a237c
  • Applications no longer carry gems that only OCRAN itself activated. The gem scan read Gem.loaded_specs while the build was already running instead of the snapshot taken after the dependency run, so whatever OCRAN had activated by then was packed as if the application had loaded it: OCRAN's own gem and its fiddle dependency, activated by the ocran command of an installed OCRAN (since OCRA 1.3.2, which started packing every gem in Gem.loaded_specs; about 390 KB of stubs, lzma.exe and sources per application), and since 1.3.16, whose refactoring moved the build ahead of the gem scan, also tempfile, tmpdir, fileutils, delegate and etc from the stub builder and fiddle from DLL detection. The scan now uses the snapshot and leaves out the running OCRAN's gem and its runtime dependencies. Only activation is discounted: a gem the application does load is still packed. The same snapshot decides which gems' SxS assembly manifests are included on Windows.
  • Gems that Bundler installed into a configured path are found without Bundler (issue #61). ruby/setup-ruby with bundler-cache: true - the README's GitHub Actions example - installs the Gemfile's gems into vendor/bundle, a place plain RubyGems never looks, so ocran app.rb died with a LoadError on the first gem during the dependency run, --gemfile included. Before loading the script OCRAN now asks Bundler, in a child process and without evaluating the Gemfile, where the application's bundle is installed, and adds that directory to the gem path when it is not the system gems. The bundle is not set up, so gems the Gemfile does not list stay loadable as before; a bundle installed into the system gems and bundle exec are unaffected.
  • On Windows, an --output name without an extension now gets .exe (names ending in .exe or .com are used as given). The name used to be taken verbatim, so ocran myapp.rb --output myapp - the README's GitHub Actions example, whose comment promised myapp.exe - produced an extensionless myapp that Windows does not run. Other platforms keep the name as given. New CI workflow test-readme-actions.yml runs that example step for step on Windows, Linux and both macOS architectures against OCRAN from the commit under test.
  • Repository: removed a Ruby 3.3 bundle (vendor/bundle, 4,586 files), .bundle/config and a stray .ape-1.10 binary that a merge commit had checked in on 2026-08-09, and ignore them from now on. The bundle's binstubs call ruby3.3, which CI runners do not have, so every Ruby 3.3 test job failed before running a test once the bundler cache no longer replaced them; the jobs' cache-version is bumped to drop the caches that restored them. None of it was ever part of a published gem.