Skip to content
/ RPtr Public

A ruby script that change the standard bin directory of ruby

License

Notifications You must be signed in to change notification settings

NebulaFox/RPtr

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 

Repository files navigation

RPtr - Ruby Pointer

In short, it points the binary in /bin for ruby to other installed locations of ruby.

This does require ruby version > 1.9 and requires the psych ruby gem for yaml, which comes as standard since ruby 1.9.2.

Example

I have two versions of Ruby. One from Mac OS X and the other from MacPorts.

./rptr.rb where /usr/bin/ruby
./rptr.rb add /System/Library/Frameworks/Ruby.framework/Versions/1.8/usr/bin/ruby system
./rptr.rb add /opt/local/bin/ruby1.9 port

To then use the MacPorts version

./rptr.rb use port

For help please use ./rptr.rb help

About

A ruby script that change the standard bin directory of ruby

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages