Feature Requests: Browse | Submit New | Admin

[#28923] Support for ruby 1.9.2

Date:
2011-02-11 12:56
Priority:
3
Submitted By:
Jarl Friis (jarl)
Assigned To:
Nobody (None)
Category:
None
State:
Open
Summary:
Support for ruby 1.9.2

Detailed description
Dhaka fails when using ruby 1.9.2, it gives errors like:

/home/jarl/.rvm/gems/ruby-1.9.2-p136/gems/dhaka-2.2.1/lib/dhaka/grammar/grammar.rb:21:in `method_missing': undefined
method `collect' for "a":String (NoMethodError)
        from /home/jarl/.rvm/gems/ruby-1.9.2-p136/gems/dhaka-2.2.1/lib/dhaka/lexer/regex_grammar.rb:77:in `block (2
levels) in <class:RegexGrammar>'
        from /home/jarl/.rvm/gems/ruby-1.9.2-p136/gems/dhaka-2.2.1/lib/dhaka/lexer/regex_grammar.rb:76:in `each'
        from /home/jarl/.rvm/gems/ruby-1.9.2-p136/gems/dhaka-2.2.1/lib/dhaka/lexer/regex_grammar.rb:76:in `block in
<class:RegexGrammar>'
        from /home/jarl/.rvm/gems/ruby-1.9.2-p136/gems/dhaka-2.2.1/lib/dhaka/grammar/grammar.rb:106:in `instance_eval'
        from /home/jarl/.rvm/gems/ruby-1.9.2-p136/gems/dhaka-2.2.1/lib/dhaka/grammar/grammar.rb:106:in `for_symbol'
        from /home/jarl/.rvm/gems/ruby-1.9.2-p136/gems/dhaka-2.2.1/lib/dhaka/lexer/regex_grammar.rb:75:in
`<class:RegexGrammar>'
        from /home/jarl/.rvm/gems/ruby-1.9.2-p136/gems/dhaka-2.2.1/lib/dhaka/lexer/regex_grammar.rb:4:in
`<module:LexerSupport>'
        from /home/jarl/.rvm/gems/ruby-1.9.2-p136/gems/dhaka-2.2.1/lib/dhaka/lexer/regex_grammar.rb:2:in
`<module:Dhaka>'
        from /home/jarl/.rvm/gems/ruby-1.9.2-p136/gems/dhaka-2.2.1/lib/dhaka/lexer/regex_grammar.rb:1:in `<top
(required)>'
        from <internal:lib/rubygems/custom_require>:29:in `require'
        from <internal:lib/rubygems/custom_require>:29:in `require'
        from /home/jarl/.rvm/gems/ruby-1.9.2-p136/gems/dhaka-2.2.1/lib/dhaka.rb:62:in `block in <top (required)>'
        from /home/jarl/.rvm/gems/ruby-1.9.2-p136/gems/dhaka-2.2.1/lib/dhaka.rb:30:in `each'
        from /home/jarl/.rvm/gems/ruby-1.9.2-p136/gems/dhaka-2.2.1/lib/dhaka.rb:30:in `<top (required)>'
        from <internal:lib/rubygems/custom_require>:33:in `require'
        from <internal:lib/rubygems/custom_require>:33:in `rescue in require'
        from <internal:lib/rubygems/custom_require>:29:in `require'
        from dice_roller.rb:2:in `<main>'

Add A Comment: Notepad

Please login


Followup

Message
Date: 2011-02-11 13:00
Sender: Jarl Friis

Here is a patch

Attached Files:

Name Description Download
dhaka_for_ruby_192.patch Patch for ruby 1.9.2 Download

Changes:

Field Old Value Date By
File Added5147: dhaka_for_ruby_192.patch2011-02-11 13:00jarl