Support Requests: Browse | Submit New | Admin

[#29046] Unable to run test program for AnsiSys

Date:
2011-03-02 01:34
Priority:
3
Submitted By:
Brendan Hoffmann (hammy559)
Assigned To:
zunda (zunda)
Category:
None
State:
Closed
Summary:
Unable to run test program for AnsiSys

Detailed description
Using Ruby 1.9.2

Using latest AnsiSys gem

Tried to run the example code right from the rDoc main page for AnsiSys and received this error:

[brendan@spark ~]$ ruby ansi.rb
/usr/local/rvm/gems/ruby-1.9.2-head/gems/ansi-sys-0.8.3/lib/ansisys.rb:35:in `kcode': uninitialized constant
AnsiSys::Guess::NKF (NameError)
        from /usr/local/rvm/gems/ruby-1.9.2-head/gems/ansi-sys-0.8.3/lib/ansisys.rb:617:in `render'
        from ansi.rb:4:in `<main>'


Here is the contents of "ansi.rb":

  require 'ansisys'
  terminal = AnsiSys::Terminal.new
  terminal.echo("Hello \e[32mWorld\e[m")
  terminal.render #=> HTML fragment

Add A Comment: Notepad

Please login


Followup

Message
Date: 2013-05-22 19:43
Sender: zunda  

Seems to have been fixed
Date: 2011-03-05 07:11
Sender: zunda  

I am sorry that the library is still catching up to Ruby 1.9.2.
For now, could you try updating the library to 0.8.4?

Attached Files:

Name Description Download
No Files Currently Attached

Changes:

Field Old Value Date By
close_date2013-05-22 19:432013-05-22 19:43zunda
status_idOpen2013-05-22 19:43zunda
assigned_tonone2011-03-05 07:08zunda