← Back

Updated asdf and prebuilt Rubies

Improvement

Hatchbox servers now run asdf 0.20, the current Go version of asdf. Each server switches on its next deploy. Your installed languages, .tool-versions files and .asdf-vars keep working as before. Our build adds .asdf-vars support and is open source at hatchboxio/asdf.

Prebuilt Rubies. When your app needs a Ruby version the server doesn't have yet, Hatchbox now downloads it from hatchboxio/precompiled-ruby. It takes a couple of seconds. Versions without a prebuilt download are compiled on the server, as before.

The first deploy after a Ruby upgrade takes a little longer. Gems with native extensions, like bcrypt, puma and nio4r, are rebuilt for the new Ruby once. Later deploys skip that step.

If you use asdf in your own scripts. asdf 0.20 renamed a few commands:

  • asdf global ruby 3.4.4 is now asdf set -u ruby 3.4.4
  • asdf local is now asdf set
  • asdf shell is gone; set ASDF_RUBY_VERSION (or ASDF_<TOOL>_VERSION) instead
  • asdf plugin-add, asdf plugin-list and asdf list-all are now asdf plugin add, asdf plugin list and asdf list all

asdf exec, asdf install, asdf vars and the shims in ~/.asdf/shims work as before, including from cron jobs.

See the Ruby docs for the list of prebuilt versions.