This file provides guidance to Claude Code (claude.ai/code) when working with code in this repository.
This repository builds portable Ruby binaries that can be installed and run from anywhere on the filesystem. The build source of truth is the checked-in YAML under recipes/; Homebrew is not used by local packaging or CI release workflows.
Validate the recipe files:
bin/validate-recipesBuild a Ruby version locally:
bin/package 3.4.9 --target macos --yjit --output rubies
bin/package 3.4.9 --target x86_64_linux --no-yjit --output rubiesBuilds need a baseruby of Ruby 3.0.0 or newer; set JDX_RUBY_BASERUBY when the shell default is older. Ruby 3.2.x builds require JDX_RUBY_BASERUBY to point to an existing Ruby executable with the same version.
YJIT builds require rustup or rustc in PATH. Set JDX_RUBY_RUSTUP_HOME to isolate rustup state when desired.
recipes/rubies.yml: Ruby source URL, SHA256, series, and prerelease version metadata.recipes/dependencies.yml: portable dependency source URL and SHA256 metadata.recipes/series.yml: per-series behavior such as libedit, bundled gems, and baseruby requirements.recipes/targets.yml: release targets, artifact platform names, and pinned manylinux2014 containers.
bin/package: Builds portable dependencies, builds Ruby, runs runtime/linkage/ABI checks, and writes release tarballs.bin/update-bundled-gems: Bumps the bundledmsgpackandbootsnapgems inrecipes/series.ymlto the newest stable release with the same major version that the series' minimum Ruby supports. The autobump workflow runs it and opens a PR.bin/validate-recipes: Validates YAML shape, required fields, duplicate versions, URL/SHA256 formats, and target matrix completeness.bin/update-ruby-recipe: Adds or updates a Ruby entry inrecipes/rubies.yml; used by autobump.
- Linux builds use pinned manylinux2014/glibc 2.17 containers for both YJIT and no-YJIT artifacts.
- macOS builds use Xcode/system clang and source-built portable dependencies.
pkgconfis built as a bootstrap tool so macOS does not need Homebrew.- OpenSSL, libyaml, libffi, libxcrypt, zlib, ncurses, and libedit are source-built into an isolated prefix as needed.
- Bundled
msgpackandbootsnapgems are staged during the Ruby build. - SSL certificates are bundled in
libexec/cert.pem. - Native gem compilation headers, static libs, and pkg-config files are copied into the portable Ruby prefix.
- Shell polyglot executables and
rbconfig.rbare patched for relocatable native gem builds.
Release tarballs keep the existing names:
ruby-VERSION.macos.tar.gzruby-VERSION.x86_64_linux.tar.gzruby-VERSION.x86_64_linux.no_yjit.tar.gzruby-VERSION.arm64_linux.tar.gzruby-VERSION.arm64_linux.no_yjit.tar.gz
Read .entire/agent-guide.md for this repository's workflow, source inspection, and verification guidance. @.entire/agent-guide.md