Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

undefined method `-' for "\xD6":String #1

Open
speedmax opened this issue Sep 10, 2009 · 1 comment
Open

undefined method `-' for "\xD6":String #1

speedmax opened this issue Sep 10, 2009 · 1 comment

Comments

@speedmax
Copy link
Owner

rake aborted!
undefined method -' for "\xD6":String /home/q3amaster/workspace/oddsense/vendor/plugins/rchardet/lib/rchardet/chardistribution.rb:180:inget_order'
/home/q3amaster/workspace/oddsense/vendor/plugins/rchardet/lib/rchardet/chardistribution.rb:53:in feed' /home/q3amaster/workspace/oddsense/vendor/plugins/rchardet/lib/rchardet/mbcharsetprober.rb:71:inblock in feed'
/home/q3amaster/workspace/oddsense/vendor/plugins/rchardet/lib/rchardet/mbcharsetprober.rb:56:in each' /home/q3amaster/workspace/oddsense/vendor/plugins/rchardet/lib/rchardet/mbcharsetprober.rb:56:infeed'
/home/q3amaster/workspace/oddsense/vendor/plugins/rchardet/lib/rchardet/charsetgroupprober.rb:66:in block in feed' /home/q3amaster/workspace/oddsense/vendor/plugins/rchardet/lib/rchardet/charsetgroupprober.rb:63:ineach'
/home/q3amaster/workspace/oddsense/vendor/plugins/rchardet/lib/rchardet/charsetgroupprober.rb:63:in feed' /home/q3amaster/workspace/oddsense/vendor/plugins/rchardet/lib/rchardet/universaldetector.rb:124:inblock in feed'
/home/q3amaster/workspace/oddsense/vendor/plugins/rchardet/lib/rchardet/universaldetector.rb:123:in each' /home/q3amaster/workspace/oddsense/vendor/plugins/rchardet/lib/rchardet/universaldetector.rb:123:infeed'
/home/q3amaster/workspace/oddsense/vendor/plugins/rchardet/lib/rchardet.rb:63:in detect' /home/q3amaster/workspace/oddsense/vendor/plugins/oddsnap/lib/oddsnap/base.rb:29:indetect_encoding'
/home/q3amaster/workspace/oddsense/vendor/plugins/oddsnap/lib/oddsnap/base.rb:38:in remote_xml' /home/q3amaster/workspace/oddsense/vendor/plugins/oddsnap/lib/oddsnap/base.rb:16:indocument'
/home/q3amaster/workspace/oddsense/vendor/plugins/oddsnap/lib/oddsnap/betfair.rb:35:in filtered_events' /home/q3amaster/workspace/oddsense/vendor/plugins/oddsnap/lib/oddsnap/betfair.rb:14:ineach_event'
/home/q3amaster/workspace/oddsense/lib/tasks/import.rake:109:in block (5 levels) in <top (required)>' /home/q3amaster/workspace/oddsense/lib/tasks/import.rake:101:ineach'
/home/q3amaster/workspace/oddsense/lib/tasks/import.rake:101:in block (4 levels) in <top (required)>' /home/q3amaster/workspace/oddsense/lib/tasks/import.rake:96:ineach'
/home/q3amaster/workspace/oddsense/lib/tasks/import.rake:96:in block (3 levels) in <top (required)>' /home/q3amaster/workspace/oddsense/lib/tasks/import.rake:93:ineach'
/home/q3amaster/workspace/oddsense/lib/tasks/import.rake:93:in block (2 levels) in <top (required)>' /opt/ruby1.9/lib/ruby/1.9.1/rake.rb:613:incall'
/opt/ruby1.9/lib/ruby/1.9.1/rake.rb:613:in block in execute' /opt/ruby1.9/lib/ruby/1.9.1/rake.rb:608:ineach'
/opt/ruby1.9/lib/ruby/1.9.1/rake.rb:608:in execute' /opt/ruby1.9/lib/ruby/1.9.1/rake.rb:574:inblock in invoke_with_call_chain'
/opt/ruby1.9/lib/ruby/1.9.1/monitor.rb:190:in mon_synchronize' /opt/ruby1.9/lib/ruby/1.9.1/rake.rb:567:ininvoke_with_call_chain'
/opt/ruby1.9/lib/ruby/1.9.1/rake.rb:584:in block in invoke_prerequisites' /opt/ruby1.9/lib/ruby/1.9.1/rake.rb:581:ineach'
/opt/ruby1.9/lib/ruby/1.9.1/rake.rb:581:in invoke_prerequisites' /opt/ruby1.9/lib/ruby/1.9.1/rake.rb:573:inblock in invoke_with_call_chain'
/opt/ruby1.9/lib/ruby/1.9.1/monitor.rb:190:in mon_synchronize' /opt/ruby1.9/lib/ruby/1.9.1/rake.rb:567:ininvoke_with_call_chain'
/opt/ruby1.9/lib/ruby/1.9.1/rake.rb:560:in invoke' /opt/ruby1.9/lib/ruby/1.9.1/rake.rb:2012:ininvoke_task'
/opt/ruby1.9/lib/ruby/1.9.1/rake.rb:1990:in block (2 levels) in top_level' /opt/ruby1.9/lib/ruby/1.9.1/rake.rb:1990:ineach'
/opt/ruby1.9/lib/ruby/1.9.1/rake.rb:1990:in block in top_level' /opt/ruby1.9/lib/ruby/1.9.1/rake.rb:2029:instandard_exception_handling'
/opt/ruby1.9/lib/ruby/1.9.1/rake.rb:1984:in top_level' /opt/ruby1.9/lib/ruby/1.9.1/rake.rb:1963:inblock in run'
/opt/ruby1.9/lib/ruby/1.9.1/rake.rb:2029:in standard_exception_handling' /opt/ruby1.9/lib/ruby/1.9.1/rake.rb:1960:inrun'
/opt/ruby1.9/bin/rake:31:in `

'

@andy-frost
Copy link

You have used string index
ruby 1.8 'abc'[0] => 97
ruby 1.9 'abc'[0] => 'a'

If you replace it with followong in several places in chardistribution.rb gem will be 100% ruby 1.9 comp
'abc'[0].ord

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants