Supported Ruby Versions
A list of supported Ruby versions that are precompiled by Hatchbox
Updated
Hatchbox precompiles many Ruby versions to make your deployments fast. You can also specify other Ruby versions and they will be compiled during deployment.
We encourage you to use the latest version of Ruby that you can so bugfixes and security patches are applied.
Ruby Versions
- 4.0.0 and newer
- 3.4.0 and newer
- 3.3.0 and newer
- 3.2.0 and newer
- 3.1.0 and newer
- 3.0.0 and newer
- 2.7.0 and newer
- 2.6.10
- 2.5.9
- 2.4.10
- 2.3.8
- 2.2.10
- 2.1.10
- 2.0.0-p648
- 1.9.3-p551
- 1.8.7-p374
Older Ruby versions may have issues with newer Ubuntu LTS versions as glibc, openssl, and other dependencies have changed since they were released.
YJIT Support
Ruby 3.2 and newer are compiled with YJIT support.
Rails 7.2 and newer automatically enables YJIT with Ruby 3.3 or newer. Otherwise, you can enable YJIT with an environment variable:
RUBY_YJIT_ENABLE=1RUBYOPT="--yjit"