technicalpickles / jeweler

Opinionated tool for creating and managing Rubygem projects
MIT License
1.48k stars 164 forks source link

Jeweler::GemcutterTasks.new Throwing Ruby error #66

Closed Nevynxxx closed 13 years ago

Nevynxxx commented 14 years ago

Including the line Jeweler::GemcutterTasks.new, in the rake task causes Rake to fail with:

rake aborted! wrong number of arguments (1 for 0)

Commenting this line out, but leaving the rest works as intended.

With trace the error is:

$ rake -I./lib -T --trace
rake aborted!
wrong number of arguments (1 for 0)
/usr/lib/ruby19/gems/1.9.1/gems/jeweler-1.4.0/lib/jeweler/specification.rb:53:in `block in set_jeweler_defaults'
/usr/lib/ruby19/gems/1.9.1/gems/jeweler-1.4.0/lib/jeweler/specification.rb:44:in `chdir'
/usr/lib/ruby19/gems/1.9.1/gems/jeweler-1.4.0/lib/jeweler/specification.rb:44:in `set_jeweler_defaults'
/usr/lib/ruby19/gems/1.9.1/gems/jeweler-1.4.0/lib/jeweler.rb:33:in `initialize'
/usr/lib/ruby19/gems/1.9.1/gems/jeweler-1.4.0/lib/jeweler/tasks.rb:43:in `new'
/usr/lib/ruby19/gems/1.9.1/gems/jeweler-1.4.0/lib/jeweler/tasks.rb:43:in `jeweler'
/usr/lib/ruby19/gems/1.9.1/gems/jeweler-1.4.0/lib/jeweler/tasks.rb:11:in `jeweler'
/usr/lib/ruby19/gems/1.9.1/gems/jeweler-1.4.0/lib/jeweler/gemcutter_tasks.rb:20:in `initialize'
/home/anthony/Personal/Projects/wxRuby/wxRCG/tasks/gemcutter.rake:15:in `new'
/home/anthony/Personal/Projects/wxRuby/wxRCG/tasks/gemcutter.rake:15:in `'
/usr/lib/ruby19/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load'
/usr/lib/ruby19/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `block in load_with_new_constant_marking'
/usr/lib/ruby19/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:521:in `new_constants_in'
/usr/lib/ruby19/gems/1.9.1/gems/activesupport-2.3.5/lib/active_support/dependencies.rb:145:in `load_with_new_constant_marking'
/home/anthony/Personal/Projects/wxRuby/wxRCG/Rakefile:10:in `block in '
/home/anthony/Personal/Projects/wxRuby/wxRCG/Rakefile:10:in `each'
/home/anthony/Personal/Projects/wxRuby/wxRCG/Rakefile:10:in `'
/usr/lib/ruby19/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2383:in `load'
/usr/lib/ruby19/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2383:in `raw_load_rakefile'
/usr/lib/ruby19/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2017:in `block in load_rakefile'
/usr/lib/ruby19/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby19/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2016:in `load_rakefile'
/usr/lib/ruby19/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2000:in `block in run'
/usr/lib/ruby19/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:2068:in `standard_exception_handling'
/usr/lib/ruby19/gems/1.9.1/gems/rake-0.8.7/lib/rake.rb:1998:in `run'
/usr/lib/ruby19/gems/1.9.1/gems/rake-0.8.7/bin/rake:31:in `'
/usr/bin/rake:19:in `load'
/usr/bin/rake:19:in `
'

Versions:

$ ruby --version
ruby 1.9.1p243 (2009-07-16 revision 24175) [i686-linux]
$ gem list

*** LOCAL GEMS ***

actionmailer (2.3.5, 2.3.4, 2.3.3)
actionpack (2.3.5, 2.3.4, 2.3.3)
activerecord (2.3.5, 2.3.4, 2.3.3, 2.2.2)
activeresource (2.3.5, 2.3.4, 2.3.3)
activesupport (2.3.5, 2.3.4, 2.3.3, 2.2.2)
authlogic (2.1.3, 2.1.2)
freelancing-god-thinking-sphinx (1.2.11)
gemcutter (0.1.8, 0.1.6)
git (1.2.5, 1.2.4)
jeweler (1.4.0, 1.3.0, 1.2.1)
json_pure (1.2.0, 1.1.9)
mislav-will_paginate (2.3.11)
mysql (2.8.1)
net-scp (1.0.2)
net-ssh (2.0.16, 2.0.15)
nifty-generators (0.3.0)
ocra (1.1.3)
pg (0.8.0)
rack (1.0.1, 1.0.0)
rails (2.3.5, 2.3.4, 2.3.3)
rake (0.8.7)
rubigen (1.5.2)
rubyforge (2.0.3, 2.0.2, 1.0.4)
rubygems-update (1.3.5)
rubyzip (0.9.1)
sqlite3-ruby (1.2.5)
svn2git (1.3.1)
wx_sugar (0.1.22)
wxruby (2.0.1, 2.0.0)
wxruby-ruby19 (2.0.1, 2.0.0)
xdg (0.5.2)
TylerRick commented 14 years ago

I don't know about you, but the problem for me was that I was using a modified version of the 'git' gem (I had the path to it in my RUBYLIB) and it had a different api for one of the methods called on this line: self.files = (repo.ls_files(base_dir).keys - repo.lib.ignored_files).map do |file|

Looks like your error was on the same line...

wrong number of arguments (1 for 0) /var/lib/gems/1.9.1/gems/jeweler-1.4.0/lib/jeweler/specification.rb:53:in `block in set_jeweler_defaults'

technicalpickles commented 14 years ago

I think the code in this area has changed since you originally reported this.

If you feel inclined, give the 'master' branch a shot.

technicalpickles commented 14 years ago

I'm hoping this will be good in 1.5.0, which I'm ramping up for.

I'll close out when it goes final, but please re-open if you still see a problem!

technicalpickles commented 13 years ago

1.5.0 release, closing!