Yet Another Ruby Installer
PowerShell Batchfile
Latest commit b05adf0 Jan 27, 2017 @scottmuc committed on GitHub Merge pull request #31 from lmno/pr/fix_231
Fixed Gem path for Ruby 2.3.1
Permalink
Failed to load latest commit information.
bin added ruby 2.3.1 Aug 15, 2016
7z.dll
7z.exe Initial release for ruby 1.9.2-p290 Oct 23, 2011
LICENSE added license and basic docs which fixes #5 Nov 20, 2011
README.md Fixed a typo "persoanlly" to personally Sep 18, 2013
installer.ps1 Update installer.ps1 Jan 29, 2012
rubyinstaller.ps1 Updated Gem path for Ruby 2.3.1. Should point to 2.3.0, not 2.2.0. Nov 26, 2016

README.md

Yet Another Ruby Installer: yari

yari lets you install and switch between multiple versions of Ruby. Somewhat inspired by rvm and rbenv for unix like operating systems.

yari does...

  • 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.

Installation

  1. Check out somewhere (I personally put in in %USERPROFILE%\.yari)

    > cd %USERPROFILE%
    > git clone git://github.com/scottmuc/yari.git .yari
    
  2. 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.

  3. Restart a new shell

Experimental Installation

Copy and paste the following in a Powershell Prompt

    (new-object Net.Webclient).DownloadString("https://github.com/scottmuc/yari/raw/master/installer.ps1") | iex

Usage

  1. 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]