On Fri, Mar 28, 2008 at 2:02 AM, Chad Woolley <[EMAIL PROTECTED]> wrote: > Hi, > > For my project, I run CI regression testing against several rubygems > versions, which are embedded in specs fixtures dir: > http://ci.thewoolleyweb.com/ > > This is all dynamically specified through the cc.rb project name and a > RUBYGEMS_VERSION env var: > http://geminstaller.rubyforge.org/svn/trunk/cruise_config.rb > > I would also like to include a SVN external to automatically test > against the latest rubygems trunk (which is nice because cc.rb trunk > now detects svn external checkins). However, this is difficult since > the rubygems_version.rb on trunk is hardcoded to the version of the > latest release, and for my approach to work, the dir name and rubygems > version must match. > > Would you be open to either one of these two options? > > 1. 'preemptively' increment Gem::RubyGemsVersion after each release, > to have a higher "tiny" component. For example, the trunk now would > be "1.0.1.1", or "1.0.1.99" or whatever... > > or > > 2. Allow an environment var to be passed, which if set would append > the current trunk revision as the tiny component (and if not set, > would not touch the version). Something like this (but cleaned > up/extracted): > > RubyGemsVersion = '1.0.1' + (ENV['TRUNK_VERSION'] ? '.' + `svn log -q > -rhead > http://rubygems.rubyforge.org/svn/trunk`.scan(/r([0-9]*)/).first.first.to_s > : "") >
I like the idea, the only thing I don't like is the need for query the remote repository, but after all, it's getting the information from there ;-) > Yeah, I know I can do this myself by rewriting the rubygems_version.rb > file in the external before my CI build kicks off, but it would be > nice to have it built in to RubyGems. > Lot of projects that provide nightly builds set somehow the "version" information using some of these techniques... +1 from me, I like the idea. -- Luis Lavena Multimedia systems - Human beings, who are almost unique in having the ability to learn from the experience of others, are also remarkable for their apparent disinclination to do so. Douglas Adams _______________________________________________ Rubygems-developers mailing list [email protected] http://rubyforge.org/mailman/listinfo/rubygems-developers
