[Rubyinstaller-devel] [ANN] pik 0.2.0 Released

Gordon Thiesfeld gthiesfeld at gmail.com
Mon Oct 19 01:15:32 EDT 2009

pik version 0.2.0 has been released!

* <http://github.com/vertiginous/pik>
* <http://rubyforge.org/projects/pik/>
* <Gordon Thiesfeld>

Pik is a tool to switch between multiple versions of ruby on Windows.

Or to put it another way

  doskey rvm=pik $*  # (sort of)

You have to tell it where your different ruby versions live using
'pik add'.  Then you can change to one by using 'pik switch'.

It also supports running commands/code with all versions configured.

  pik run  #  Runs commands on the command line
  pik ruby #  Runs using the ruby interpreter for each version
(ruby.exe, jruby.bat, ir.exe)
  pik gem  #  Runs using the gem command for each version  (gem.bat, igem.bat)


  >pik help commands

    add             Adds another ruby location to pik.
    checkup|cu      Checks your environment for current Ruby best practices.
    config          Adds/modifies configuration options.
    default         Switches back to the default settings.
    gem             Runs the gem command with all versions that pik is aware of.
    gemsync         Duplicates gems from the current version to the
one specified.
    help            Displays help information.
    implode         Removes your pik configuration.
    install|in      Downloads and installs different ruby versions.
    list|ls         Lists ruby versions that pik is aware of.
    remove|rm       Removes a ruby location from pik.
    ruby|rb         Runs ruby with all versions that pik is aware of.
    run             Runs command with all versions of ruby that pik is aware of.
    switch|sw|use   Switches ruby versions based on patterns.
    tag             Adds the given tag to the current version.
    tags            Runs the pik command against the given tags.

  For help on a particular command, use 'pik help COMMAND'.


Windows, more than one version of Ruby (otherwise, what's the point?)
and Rubygems


1. If you've used a version previous to this one, you'll need to uninstall them.
   Don't worry, this will leave your pik config intact.

    pik run "gem uninstall pik"

2. Install the pik gem

    gem install pik

3. You need to install pik to a location that's in your path, but
someplace other than your ruby\bin dir


    >pik_install C:\tools

4. Add all the versions of ruby that you want to use with pik

    >pik add
    Adding:  186: ruby 1.8.6 (2009-03-31 patchlevel 368) [i386-mingw32]
     Located at:  c:/ruby/186-p368-mingw32/bin

    >pik add C:\ruby\IronRuby-091\bin
    Adding:  091: IronRuby on .NET
     Located at:  C:/ruby/IronRuby-091/bin

    >pik add C:\ruby\jruby-1.4.0RC1\bin
    Adding:  140: jruby 1.4.0RC1 (ruby 1.8.7 patchlevel 174)
(2009-09-30 80c263b) (Java HotSpot(TM) Client VM 1.6.0_14) [x86-java]
     Located at:  C:/ruby/jruby-1.4.0RC1/bin


### 0.2.0 / 2009-10-18

* pik is now an exerb compile executable, and must be installed to a
location that is in the system path, but is
  seperate from ruby
* added pik_install command
* added support for IronRuby and Jruby
* added install command to install new Ruby versions
* added tag and tags command
* added cucumber functional tests
* updated gem post-install message
* changed pik run to run in ruby instead of in a batch file.
* Added pik ruby and pik gem commands.

More information about the Rubyinstaller-devel mailing list