From: Chad Fowler Date: 2004-05-01T11:43:19+09:00 Subject: Re: RubyGems 0.3.0 and Rake -- comments and problems On 30/4/2004, at 9:58 PM, Charles Comstock wrote: > Chad Fowler wrote: > >> * Install library "stub" allowing a normal 'require' to work (which >> then does the rubygems require and 'require_gem' > > Anyways, comments on first running it, having not installed version > .2. I had also not installed rake before but figured I would use > this chance to check it out. gem -i rake worked fine, except it > didn't run the actual rake installer, so there was no rake executable > in my $HOME/usr/bin directory. So I found out where it put it and ran > install there so it put it all in the right places. So then I ran > rake on itself and it ran all it's tests successfully. Ran the rake > rdoc task and that failed as rdoc was missing > 'rdoc/generators/template/html/css2' > Actually, Jim is going to create a new Rake gem that uses the new RubyGems functionality for creating application gems. Once he creates that, you should be able to install Rake (including the rake executable) very easily. The functionality is new as of today, so he hasn't yet provided a rake gem that does it. > This is was on a stable ruby install of ruby 1.8.1 (2004-04-27) > [i686-linux]. Anyway, so I remembered there had been a rakefile for > rubygems itself so I figured I would go back and play with that. > Typed rake and when it went through all it's tests it spit out: > > 1) Failure: > test_garbled_gem_throws_format_exception(TestFormat) > [./test/test_format.rb:29]: > exception expected but was > Class: > Message: <"Invalid object explicitly tagged !ruby/Object: > \"rubygems_versionboom \\\"1.0\\\" nameboom testing versionboom > !ruby/objectboomGemboomboomVersion versionboom 1.2.3 dateboom > 2004-03-18 22boom01boom52.859121 -05boom00 platformboom summaryboom > This exercise the gem testing stuff. require_pathsboom - lib filesboom > - lib/foo.rb - lib/test - lib/test.rb - lib/test/wow.rb > autorequireboom test test_suite_fileboom foo requirementsboom - a > computer processor\""> > ---Backtrace--- > /home/cec/s/c/cc1/usr/lib/ruby/1.8/yaml.rb:179:in `object_maker' > /home/cec/s/c/cc1/usr/lib/ruby/1.8/yaml/rubytypes.rb:36 > /home/cec/s/c/cc1/usr/lib/ruby/1.8/yaml/rubytypes.rb:34:in `call' > ../lib/rubygems/format.rb:92:in `transfer' > /home/cec/s/c/cc1/usr/lib/ruby/1.8/yaml.rb:39:in `load' > /home/cec/s/c/cc1/usr/lib/ruby/1.8/yaml.rb:39:in `load' > ../lib/rubygems/format.rb:98:in `read_spec' > ../lib/rubygems/format.rb:55:in `from_io' > ../test/test_format.rb:31:in `test_garbled_gem_throws_format_exception' > ../test/test_format.rb:29:in `assert_raise' > ../test/test_format.rb:29:in `test_garbled_gem_throws_format_exception' > Interesting. Haven't seen that one before. Will check it out. Thanks! Chad