Rchardet wrong message?

in my console:
sudo gem install rchardet
[sudo] password for pt:
Successfully installed rchardet-1.3
1 gem installed
Installing ri documentation for rchardet-1.3…
Updating class cache with 2274 classes…
Installing RDoc documentation for rchardet-1.3…
[email protected]:~$ irb
irb(main):001:0> require ‘rchardet’
SyntaxError:
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/rchardet-1.3/lib/rchardet/chardistribution.rb:60:
syntax error, unexpected ‘:’, expecting keyword_then or ‘;’ or ‘\n’
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/rchardet-1.3/lib/rchardet/chardistribution.rb:61:
syntax error, unexpected ‘:’, expecting keyword_then or ‘;’ or ‘\n’
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/rchardet-1.3/lib/rchardet/chardistribution.rb:75:
syntax error, unexpected ‘:’, expecting keyword_then or ‘;’ or ‘\n’
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/rchardet-1.3/lib/rchardet/chardistribution.rb:84:
syntax error, unexpected keyword_end, expecting $end
from
/usr/local/ruby/lib/ruby/gems/1.9.1/gems/rchardet-1.3/lib/rchardet.rb:25:in
require' from /usr/local/ruby/lib/ruby/gems/1.9.1/gems/rchardet-1.3/lib/rchardet.rb:25:in<top (required)>’
from (irb):1:in require' from (irb):1 from /usr/local/ruby/bin/irb:12:in
what is the matter?

On 18 April 2010 07:55, Pen T. [email protected] wrote:

rchardet

Looks like this was fixed on edge:
http://github.com/jmhodges/rchardet/commit/f54c49e6067a3403cadb2329947d3627490b7b39#L0L60

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs