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
: "")

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.

Thanks,
-- Chad
_______________________________________________
Rubygems-developers mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/rubygems-developers

Reply via email to