kjvarga/sitemap_generator — Issue #50: rake sitemap:refresh "rake aborted! wrong number of arguments (1 for 0)"
Author: brutuscat
Created: 2011-11-04 10:16:57+00:00
State: open

Hi, I've installed the gem via git like this
gem "sitemap_generator", :git => "git://github.com/kjvarga/sitemap_generator.git"

then I've run:
rake sitemap:install

I've edited my sitemap.rb which is like this:

```ruby
# Set the host name for URL creation
SitemapGenerator::Sitemap.default_host = "http://www.example.com"
SitemapGenerator::Sitemap.sitemaps_path = 'system/sitemaps'

SitemapGenerator::Sitemap.create do
add '/'
end
```
Then run:
rake sitemap:refresh:no_ping --trace

The rake task is failing. It looks like that I have some wrong xml lib or something... I'm very new to ruby sorry :S. This is the stack trace output:

shevany:entretenerse mauroasprea$ rake sitemap:refresh:no_ping --trace
** Invoke sitemap:refresh:no_ping (first_time)
** Invoke sitemap:create (first_time)
** Invoke sitemap:require_environment (first_time)
** Invoke environment (first_time)
** Execute environment
** Execute sitemap:require_environment
** Execute sitemap:create
rake aborted!
wrong number of arguments (1 for 0)
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/builder-3.0.0/lib/builder/xmlbase.rb:135:in `to_xs'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/builder-3.0.0/lib/builder/xmlbase.rb:135:in `_escape'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/builder-3.0.0/lib/builder/xmlbase.rb:88:in `text!'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/builder-3.0.0/lib/builder/xmlbase.rb:76:in `method_missing'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/bundler/gems/sitemap_generator-386551f3221e/lib/sitemap_generator/builder/sitemap_url.rb:61:in `to_xml'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/builder-3.0.0/lib/builder/xmlbase.rb:155:in `call'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/builder-3.0.0/lib/builder/xmlbase.rb:155:in `_nested_structures'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/builder-3.0.0/lib/builder/xmlbase.rb:63:in `method_missing'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/bundler/gems/sitemap_generator-386551f3221e/lib/sitemap_generator/builder/sitemap_url.rb:60:in `to_xml'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/bundler/gems/sitemap_generator-386551f3221e/lib/sitemap_generator/builder/sitemap_file.rb:82:in `add'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/bundler/gems/sitemap_generator-386551f3221e/lib/sitemap_generator/link_set.rb:322:in `add_default_links'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/bundler/gems/sitemap_generator-386551f3221e/lib/sitemap_generator/link_set.rb:118:in `add'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/bundler/gems/sitemap_generator-386551f3221e/lib/sitemap_generator/interpreter.rb:31:in `add'
/Users/mauroasprea/entretenerse/config/sitemap.rb:6:in `run'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/bundler/gems/sitemap_generator-386551f3221e/lib/sitemap_generator/interpreter.rb:49:in `instance_eval'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/bundler/gems/sitemap_generator-386551f3221e/lib/sitemap_generator/interpreter.rb:49:in `eval'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/bundler/gems/sitemap_generator-386551f3221e/lib/sitemap_generator/link_set.rb:36:in `create'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/bundler/gems/sitemap_generator-386551f3221e/lib/sitemap_generator.rb:31:in `send'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/bundler/gems/sitemap_generator-386551f3221e/lib/sitemap_generator.rb:31:in `method_missing'
/Users/mauroasprea/entretenerse/config/sitemap.rb:5:in `run'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/bundler/gems/sitemap_generator-386551f3221e/tasks/sitemap_generator_tasks.rake:41
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `call'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/lib/rake/task.rb:205:in `execute'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `each'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/lib/rake/task.rb:200:in `execute'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/lib/rake/task.rb:158:in `invoke_with_call_chain'
/Users/mauroasprea/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/lib/rake/task.rb:176:in `invoke_prerequisites'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `each'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/lib/rake/task.rb:174:in `invoke_prerequisites'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/lib/rake/task.rb:157:in `invoke_with_call_chain'
/Users/mauroasprea/.rvm/rubies/ruby-1.8.7-p352/lib/ruby/1.8/monitor.rb:242:in `synchronize'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/lib/rake/task.rb:151:in `invoke_with_call_chain'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/lib/rake/task.rb:144:in `invoke'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/lib/rake/application.rb:116:in `invoke_task'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `each'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/lib/rake/application.rb:94:in `top_level'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/lib/rake/application.rb:88:in `top_level'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/lib/rake/application.rb:66:in `run'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/lib/rake/application.rb:133:in `standard_exception_handling'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/lib/rake/application.rb:63:in `run'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/gems/rake-0.9.2.2/bin/rake:33
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/bin/rake:19:in `load'
/Users/mauroasprea/.rvm/gems/ruby-1.8.7-p352@entretenersetesting/bin/rake:19
Tasks: TOP => sitemap:refresh:no_ping => sitemap:create