[Rubygems-developers] Patch added.
Alan C Francis
listsub at twelve71.com
Sun Sep 30 02:44:33 EDT 2007
A non-text attachment was scrubbed...
Name: config_file_hash_accessor_patch.diff
Type: application/octet-stream
Size: 432 bytes
Desc: not available
Url : http://rubyforge.org/pipermail/rubygems-developers/attachments/20070930/1dee8edd/attachment.obj
-------------- next part --------------
I've added
instance_variable_set("@#{key.to_sym}", value) if respond_to?
key.to_sym
to Gem::ConfigFile # []=
Which seems to work on the command line. Unfortunately I can't seem
to run the tests so can't verify I haven't broken anything :-)
------
Harpo:~/work/rubygems_trunk acf$ rake
(in /Users/acf/work/rubygems_trunk)
./lib/rubygems/custom_require.rb:27:in `gem_original_require': ./lib/
rubygems/digest/md5.rb:16: syntax error, unexpected '.', expecting
'\n' or ';' (SyntaxError)
def Gem::MD5.md5(string)
^
./lib/rubygems/digest/md5.rb:20: syntax error, unexpected kEND,
expecting $end from ./lib/rubygems/custom_require.rb:27:in `require'
from ./lib/rubygems/package.rb:12
from ./lib/rubygems/custom_require.rb:27:in
`gem_original_require'
from ./lib/rubygems/custom_require.rb:27:in `require'
from ./lib/rubygems/format.rb:9
from ./lib/rubygems/custom_require.rb:27:in
`gem_original_require'
from ./lib/rubygems/custom_require.rb:27:in `require'
from ./test/test_gem_commands_build_command.rb:4
from /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/
rake_test_loader.rb:5:in `load'
from /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/
rake_test_loader.rb:5
from /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/
rake_test_loader.rb:5:in `each'
from /usr/local/lib/ruby/gems/1.8/gems/rake-0.7.3/lib/rake/
rake_test_loader.rb:5
rake aborted!
Command failed with status (1): [/usr/local/bin/ruby -w -Ilib "/usr/
local/l...]
(See full trace by running task with --trace)
--
http://www.alancfrancis.com/
http://www.cardboardsoftware.com/
http://www.scotlandonrails.com/
On 30 Sep 2007, at 07:28, Alan C Francis wrote:
> Ahh, Gem.configuration[:update_sources] is set to true, but
> Gem.configuration.update_sources is still false. I'll go look at the
> config file stuff.
>
> A.
> --
> http://www.alancfrancis.com/
> http://www.cardboardsoftware.com/
> http://www.scotlandonrails.com/
More information about the Rubygems-developers
mailing list