[Rubygems-developers] ConfigMap issues
Luis Lavena
luislavena at gmail.com
Sun Dec 16 08:10:23 EST 2007
Hey List,
it seems that the new 'defaults' functionality is broken:
$ rake test
1) Failure:
test_self_default_exec_format(TestGem) [./test/test_gem.rb:123]:
<"j%s"> expected but was
<"%s">.
This is testing Jruby default_exec_format, but its failing.
The test is overwriting Config::CONFIG based values for BASERUBY and
RUBY_INSTALL_NAME, but those are ignored by Gem.default_exec_format
since it's using ConfigMap (which was already initialized with the
values form RbConfig).
Conclusion: it has no effect.
Since rbconfig is already 'required' by Gem, should defaults be using
it all the time? or should be a better "reload!" functionality for it?
(or in any case, overwrite them instead of RbConfig for the indicated
test).
Just a thought.
--
Luis Lavena
Multimedia systems
-
A common mistake that people make when trying to design
something completely foolproof is to underestimate
the ingenuity of complete fools.
Douglas Adams
More information about the Rubygems-developers
mailing list