Unleash Ruby
Current Version: 0.7.2
Uru is a lightweight, multi-platform command line tool that helps you use the
multiple rubies (currently MRI, JRuby, and Rubinius) on your 32/64-bit Linux,
OS X, or Windows systems.
While there are a number of fantastic ruby environment managers such as RVM,
rbenv, pik, and chruby, none are truely multi-platform, and all
provide different levels of awesomeness. In contrast, uru is a micro-kernel.
It provides a core set of minimal complexity, multi-platform ruby use enhancers.
In many cases, Ruby is a multi-platform joy to use. Shouldn't your ruby environment
manager also be multi-platform?
Easy to Install
The quickest path to uru zen is to download the binary archive for
your platform type, extract its contents to a directory already on PATH, and
perform one of the following installs. To build and install uru from Go source,
or get more in-depth details, review the installation and usage info.
Windows systems
:: assuming C:\tools is on PATH and uru_rt.exe was extracted to C:\tools
C:\tools>uru_rt admin install
:: register a pre-existing "system" ruby already placed on PATH as part
:: of cmd.exe initialization
C:\tools>uru_rt admin add system
Linux and OS X systems
# assuming ~/bin is on PATH and uru_rt was extracted to ~/bin
$ cd ~/bin && chmod +x uru_rt
# append to ~/.profile on Ubuntu, or to ~/.zshrc on Zsh
$ echo 'eval "$(uru_rt admin install)"' >> ~/.bash_profile
# register a pre-existing "system" ruby already placed on PATH from bash/Zsh
# startup configuration files
$ uru_rt admin add system
# restart shell
$ exec $SHELL -l
Easy to Use
While more detailed examples of uru's core commands are available here,
once you have registered your installed rubies with uru, usage is similar to:
$ uru ls
174 : jruby 1.7.4 (1.9.3p392) 2013-05-16 2390d3b on Java HotSpot(TM) S...
200p255 : ruby 2.0.0p255 (2013-07-07 revision 41812) [i686-linux]
=> system : ruby 2.1.0dev (2013-07-06 trunk 41808) [i686-linux]
$ uru 174
---> Now using jruby 1.7.4 tagged as `174`
$ uru ls
=> 174 : jruby 1.7.4 (1.9.3p392) 2013-05-16 2390d3b on Java HotSpot(TM) S...
200p255 : ruby 2.0.0p255 (2013-07-07 revision 41812) [i686-linux]
system : ruby 2.1.0dev (2013-07-06 trunk 41808) [i686-linux]
$ jruby --version
jruby 1.7.4 (1.9.3p392) 2013-05-16 2390d3b on Java HotSpot(TM) Server VM 1.7.0_25-b15 [linux-i386]
$ uru sys
---> Now using ruby 2.1.0-dev tagged as `system`
$ uru ls --verbose
174 : jruby 1.7.4 (1.9.3p392) 2013-05-16 2390d3b on Java HotSpot(TM) S...
ID: 1.7.4
Home: /home/jon/.rubies/jruby-1.7.4/bin
GemHome: /home/jon/.gem/jruby/1.7.4
200p255 : ruby 2.0.0p255 (2013-07-07 revision 41812) [i686-linux]
ID: 2.0.0-p255
Home: /home/jon/.rubies/ruby-2.0.0/bin
GemHome: /home/jon/.gem/ruby/2.0.0
=> system : ruby 2.1.0dev (2013-07-06 trunk 41808) [i686-linux]
ID: 2.1.0-dev
Home: /usr/local/bin
GemHome:
$ uru gem li rake
ruby 2.0.0p255 (2013-07-07 revision 41812) [i686-linux]
rake (10.1.0, 0.9.6)
ruby 2.1.0dev (2013-07-06 trunk 41808) [i686-linux]
rake (10.1.0, 0.9.6)
jruby 1.7.4 (1.9.3p392) 2013-05-16 2390d3b on Java HotSpot(TM) Server VM 1.7.0_25-b15 [linux-i386]
rake (10.1.0, 10.0.3)
$ uru ruby -e 'name="You"; puts "Hello #{name}!"'
ruby 2.0.0p255 (2013-07-07 revision 41812) [i686-linux]
Hello You!
ruby 2.1.0dev (2013-07-06 trunk 41808) [i686-linux]
Hello You!
jruby 1.7.4 (1.9.3p392) 2013-05-16 2390d3b on Java HotSpot(TM) Server VM 1.7.0_25-b15 [linux-i386]
Hello You!