Yet Another Ruby Installer: yari
- this project is no longer maintained
yari lets you install and switch between multiple versions of Ruby. Somewhat inspired by rvm and rbenv for unix like operating systems.
- Install ruby versions defined in the hard-coded registry in the script
- Download and configures the DevKit so you can install gems with native extensions
- Let you change ruby versions for your console session
- Set the ruby version for the machine
How It Works
yari will download and configure ruby to wherever you clone the yari. It will then modify your PATH so that the ruby version chosen will be used.
Check out somewhere (I personally put in in %USERPROFILE%\.yari)
> cd %USERPROFILE% > git clone git://github.com/scottmuc/yari.git .yari
Add this location to your PATH
> setx PATH %USERPROFILE%\.yari\bin
Note: if you already have something in your USER PATH environment variable this will overwrite it. I'm working on fixing this.
Restart a new shell
Copy and paste the following in a Powershell Prompt
(new-object Net.Webclient).DownloadString("https://github.com/scottmuc/yari/raw/master/installer.ps1") | iex
Setup your shell session to use ruby 1.9.2
> yari 1.9.2 > > ruby -v ruby 1.9.2p290 (2011-07-09) [i386-mingw32]