pik version 0.2.1 has been released!
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’. You can also
get new versions with ‘pik install’.
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,
pik help commands
add Adds another ruby location to pik.
checkup|cu Checks your environment for current Ruby best
config Adds/modifies configuration options.
default Switches back to the default settings.
gem Runs the gem command with all versions that pik is
gemsync Duplicates gems from the current version to the one
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
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?)
If you’ve used a version previous to this one, you’ll need to
Don’t worry, this will leave your pik config intact.
pik run “gem uninstall pik”
Install the pik gem
gem install pik
You need to install pik to a location that’s in your path, but
someplace other than your ruby\bin dir
Add all the versions of ruby that you want to use with pik
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 0.9.1.0 on .NET 188.8.131.52
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™ Client VM 1.6.0_14) [x86-java]
Located at: C:/ruby/jruby-1.4.0RC1/bin
0.2.1 / 2009-10-19
- bugfix - path to pik could have spaces - thanks, Dominic S.
- update install instructions
0.2.0 / 2009-10-18
- pik is now an exerb compiled 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.