chruby vs nodenv
chruby
github.comnodenv
github.comSide by side
| Figure | chruby | nodenv |
|---|---|---|
| Price from | Free | Free |
| Free plan | Yes | Yes |
| Free trial | — | — |
| Open source | — | — |
| macOS | Yes | Yes |
| Linux | Yes | Yes |
| Plans published | 1 | 1 |
| Spec score · Runtime Version Managers | 7.9 (#7) | 7.6 (#15) |
| Spec score · Development Environment Managers | 7.9 (#17) | 7.5 (#33) |
| Automatic switching | Optional auto-switching checks the current and parent directories for a .ruby-version file. | It checks a project’s .node-version file and switches Node.js versions as you move between project directories. |
| Install options | The project documents installation from a release tarball, Homebrew, Arch Linux AUR, Fedora Copr, and FreeBSD ports. | Installation options include Homebrew, Arch Linux’s AUR, or a manual Git checkout; Debian, Ubuntu, and Fedora repositories do not currently package it. |
| License | The repository identifies its license as MIT. | The repository identifies the project as MIT licensed. |
| Purpose | chruby changes the current Ruby version in a shell. | nodenv manages Node.js versions so projects can use the correct version on the same machine. |
| Security | The README says all releases are PGP signed and gives instructions to verify a release signature. | The repository links to a security policy, but the opened README does not state a security certification or compliance standard. |
| Shell support | It supports bash 3 or later and zsh. | The project provides completion scripts for Bash, Zsh, and Fish and documents shell initialization for these shells. |
Plans
In their own words
chruby
chruby is a free, MIT-licensed shell utility for changing the Ruby version used in a session. Selecting a Ruby updates PATH and sets GEM_HOME and GEM_PATH for that installation. It can match installed Ruby names fuzzily and uses the system Ruby when no selection is made. Optional automatic switching checks the current and parent directories for a .ruby-version file. chruby supports bash 3 or later and zsh on Linux and macOS. Installation instructions cover a release tarball, Homebrew, Arch Linux AUR, Fedora Copr, and FreeBSD ports. Additional Ruby implementations can be installed with ruby-install or ruby-build. The project provides guidance for integrations including Capistrano, Chef, Cron, Emacs, Pow, Puppet, Sudo, Vim, and Fish. Releases are PGP signed, with verification instructions, and the codebase is described as about 100 lines with tests.