okay/news

J

Jason Williams

I'm trying to get the YAML okay/news thing to work, and I'm having
some trouble.

I've got the latest ruby and yaml4r source from the sourceforge CVS.

I build and install ruby with a prefix of /usr (and then move a
bunch of stuff from /usr/local that seems to ignore the ./configure
prefix -- why does it do that, incidentally?).

I copy yaml4r/src/okay* to the right path, and get this problem -

$ ruby -rokay/news
/usr/lib/ruby/1.8/okay.rb:56:in `add_type': undefined method `call' for
nil:NilClass (NoMethodError)
from /usr/lib/ruby/1.8/okay.rb:41:in `call'
from /usr/lib/ruby/1.8/yaml.rb:39:in `transfer'
from /usr/lib/ruby/1.8/yaml.rb:39:in `load'
from /usr/lib/ruby/1.8/yaml.rb:39:in `load'
from /usr/lib/ruby/1.8/okay.rb:70:in `load_schema'
from /usr/lib/ruby/1.8/okay/news.rb:38

So I do "ruby install.rb" on yaml4r, and now I get this problem -

$ ruby -r okay/news
src/emitter.rb:424: warning: character class has `[' without escape
src/emitter.rb:1269:in `module_eval': undefined superclass `Hash'
(TypeError)
from /usr/lib/ruby/site_ruby/1.8/yaml.rb:490:in `module_eval'
from /usr/lib/ruby/site_ruby/1.8/yaml.rb:490
from /usr/lib/ruby/site_ruby/1.8/okay.rb:7:in `require'
from /usr/lib/ruby/site_ruby/1.8/okay.rb:7
from /usr/lib/ruby/site_ruby/1.8/okay/news.rb:4:in `require'
from /usr/lib/ruby/site_ruby/1.8/okay/news.rb:4

What am I doing wrong?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
474,137
Messages
2,570,797
Members
47,342
Latest member
eixataze

Latest Threads

Top