[Rake-devel] MetaProject

Jim Weirich jim at weirichhouse.org
Mon Sep 5 15:47:33 EDT 2005


On Thursday 01 September 2005 08:57 pm, aslak hellesoy wrote:
> Hi all,
>
> (I also sent this to the RubyGems list)
>
> The past month I've been working on a project (MetaProject:
> http://xforge.rubyforge.org/) that among other things includes a quick
> release system (QRS) for (among other places) RubyForge.
>
> With MetaProject's Rake task, releasing new gems on RubyForge is a breeze:

Aslak,

I'm really excited about this project.  This will be a great help.

Unfortunately, I has a few problems ...

(1) The CHANGES file couldn't be parsed, resulting in an error message and a 
stack dump ... but the rake file continued processing.  The message should 
clearly be labled a warning and the stack dump avoided unless the --trace 
option is given.  Even better would be a way of disabling CHANGES parsing.  
(I'm not sure why it was failing ... my format looks similar to yours, 
perhaps my version numbers weren't matching).

(2) I wanted to enter the username/password interactively.  Unfortunately an 
undefined @host instance variable caused problems.  I worked around it with:

  Host = Struct.new(:name)
  release.instance_eval { @host = Host.new('RubyForge') }

(3) I got a "couldn't find package_id" message.  I enabled --trace on the rake 
command and got the following output.  I didn't follow it any farther ...

About to release 'REL_0.5.4.7'
Files:
  rake-0.5.4.7.gem
  rake-0.5.4.7.tgz
  rake-0.5.4.7.zip

Release Notes:
nil

Release Changes:
nil

Release Settings:
Preformatted: true
Processor: 8000

Starting release...
Releasing rake-0.5.4.7.gem...
rake aborted!
Couldn't get package_id
/usr/local/lib/ruby/gems/1.8/gems/meta_project-0.4.6/lib/meta_project/project/xforge/session.rb:41:in 
`package_id'
/usr/local/lib/ruby/gems/1.8/gems/meta_project-0.4.6/lib/meta_project/project/xforge/session.rb:75:in 
`release'
/usr/local/lib/ruby/gems/1.8/gems/meta_project-0.4.6/lib/meta_project/project/xforge/session.rb:71:in 
`start'
/usr/local/lib/ruby/1.8/net/http.rb:323:in `start'
/usr/local/lib/ruby/gems/1.8/gems/meta_project-0.4.6/lib/meta_project/project/xforge/session.rb:71:in 
`release'
/usr/local/lib/ruby/gems/1.8/gems/meta_project-0.4.6/lib/meta_project/project/xforge/session.rb:67:in 
`each_with_index'
/usr/local/lib/ruby/gems/1.8/gems/meta_project-0.4.6/lib/meta_project/project/xforge/session.rb:67:in 
`each'
/usr/local/lib/ruby/gems/1.8/gems/meta_project-0.4.6/lib/meta_project/project/xforge/session.rb:67:in 
`each_with_index'
/usr/local/lib/ruby/gems/1.8/gems/meta_project-0.4.6/lib/meta_project/project/xforge/session.rb:67:in 
`release'
/usr/local/lib/ruby/gems/1.8/gems/meta_project-0.4.6/lib/rake/contrib/xforge/release.rb:73:in 
`execute'
/usr/local/lib/ruby/gems/1.8/gems/meta_project-0.4.6/lib/rake/contrib/xforge/base.rb:15:in 
`initialize'
./Rakefile:383:in `new'
./Rakefile:383
./Rakefile:374:in `call'
./lib/rake.rb:200:in `execute'
./lib/rake.rb:200:in `each'
./lib/rake.rb:200:in `execute'
./lib/rake.rb:178:in `invoke'
./lib/rake.rb:1431:in `run'
./lib/rake.rb:1431:in `each'
./lib/rake.rb:1431:in `run'
bin/rake:7



-- 
-- Jim Weirich    jim at weirichhouse.org     http://onestepback.org
-----------------------------------------------------------------
"Beware of bugs in the above code; I have only proved it correct, 
not tried it." -- Donald Knuth (in a memo to Peter van Emde Boas)


More information about the Rake-devel mailing list