[Rubyinstaller-devel] Working with multiple Ruby versions

Lars Christensen larsch at belunktum.dk
Fri Aug 15 14:01:42 EDT 2008


Hi,

I'd like the option to work with multiple ruby versions in the same 
rubyinstaller directory, primarily to speed up 'rake' operations and to 
avoid multiple downloads, extracts, etc. Also, the current 'cp' operation 
on the ruby sources code when checking out from SVN is very slow.

My suggestion is to put the source/build/install targets into separate 
directories, depending on the origin and version of the Ruby source.

For example, when pulling from SVN:

sandbox/ruby_source/svn/tags/v1_8_6_114
sandbox/ruby_build/svn/tags/v1_8_6_114
sandbox/ruby_mingw/svn/tags/v1_8_6_114

Or a branch:

sandbox/ruby_source/svn/branches/ruby_1_8

Or from the tarball:

sandbox/ruby_source/ruby-1.8.6-p114

I've pushed some changes to 
http://github.com/larsch/rubyinstaller/commits/nocopycheckout2/ which 
implements the above. You can set the SVN URL in config/ruby_installer.rb, 
and it will then decide a path on it's own, from the contents of the URL. 
This can still be overridden by setting the options, e.g. 
:checkout_target, but by default they are left out and generated by the 
script.

Lars



More information about the Rubyinstaller-devel mailing list