Skip to content

chili_pdf crashes on 1.9.2 #19

@makheshwar

Description

@makheshwar

Recently while upgrading to 1.9.2, the test case for downloading a wiki page as pdf failed with the following stack trace

Seems something wrong with the lambda change in 1.9.2, but could not figure out completly.

wrong number of arguments (1 for 0)
/usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/chili_pdf-0.4.4/lib/chili_pdf/token_manager.rb:12:in block in <module:TokenManager>' /usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/chili_pdf-0.4.4/lib/chili_pdf/string_token.rb:66:incall'
/usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/chili_pdf-0.4.4/lib/chili_pdf/string_token.rb:66:in replacement_value' /usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/chili_pdf-0.4.4/lib/chili_pdf/string_token.rb:54:inapply_to'
/usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/chili_pdf-0.4.4/lib/chili_pdf/token_manager.rb:32:in block in apply_tokens_to' /usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/chili_pdf-0.4.4/lib/chili_pdf/token_manager.rb:32:ineach'
/usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/chili_pdf-0.4.4/lib/chili_pdf/token_manager.rb:32:in inject' /usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/chili_pdf-0.4.4/lib/chili_pdf/token_manager.rb:32:inapply_tokens_to'
/usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/chili_pdf-0.4.4/lib/chili_pdf/formatter.rb:75:in replace_tokens_in' /usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/chili_pdf-0.4.4/lib/chili_pdf/formatter.rb:70:inblock in substitute_tokens'
/usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/chili_pdf-0.4.4/lib/chili_pdf/formatter.rb:68:in each' /usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/chili_pdf-0.4.4/lib/chili_pdf/formatter.rb:68:ininject'
/usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/chili_pdf-0.4.4/lib/chili_pdf/formatter.rb:68:in substitute_tokens' /usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/chili_pdf-0.4.4/lib/chili_pdf/formatter.rb:56:infooter_options'
/usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/chili_pdf-0.4.4/lib/chili_pdf/formatter.rb:45:in render_options' /usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/chili_pdf-0.4.4/app/controllers/extended_wiki_controller.rb:10:inblock (2 levels) in show'
/usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:135:in call' /usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:135:inblock in custom'
/usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:179:in call' /usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:179:inblock in respond'
/usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:173:in each' /usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:173:inrespond'
/usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-2.3.14/lib/action_controller/mime_responds.rb:107:in respond_to' /usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/chili_pdf-0.4.4/app/controllers/extended_wiki_controller.rb:9:inshow'
/usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-2.3.14/lib/action_controller/base.rb:1333:in perform_action' /usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-2.3.14/lib/action_controller/filters.rb:617:incall_filters'
/usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-2.3.14/lib/action_controller/filters.rb:610:in perform_action_with_filters' /usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:inblock in perform_action_with_benchmark'
/usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in block in ms' /usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/1.9.1/benchmark.rb:310:inrealtime'
/usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/activesupport-2.3.14/lib/active_support/core_ext/benchmark.rb:17:in ms' /usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-2.3.14/lib/action_controller/benchmarking.rb:68:inperform_action_with_benchmark'
/usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-2.3.14/lib/action_controller/rescue.rb:160:in perform_action_with_rescue' /usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-2.3.14/lib/action_controller/flash.rb:151:inperform_action_with_flash'
/usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-2.3.14/lib/action_controller/base.rb:532:in process' /usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-2.3.14/lib/action_controller/filters.rb:606:inprocess_with_filters'
/usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-2.3.14/lib/action_controller/base.rb:391:in process' /usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-2.3.14/lib/action_controller/base.rb:386:incall'
/usr/local/share/rbenv/versions/1.9.2-p290/lib/ruby/gems/1.9.1/gems/actionpack-2.3.14/lib/action_controller/routing/route_set.rb:438:in `call'

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions