Thufir wrote in post #1053185:
> am I not using the correct requires info?  So far as I can tell, I've
> followed the example code, with the proviso that they seem to mean
> "host"
> to replace "server".

Your problem seems to be related to the logging output:

> /home/thufir/.rvm/gems/ruby-1.9.3-p125/gems/ruby-net-nntp-1.0.0/lib/net/
> nntp.rb:30:in `logger': uninitialized class variable @@logger in
> Net::NNTP
> (NameError)
>   from /home/thufir/.rvm/gems/ruby-1.9.3-p125/gems/ruby-net-
> nntp-1.0.0/lib/net/nntp.rb:35:in `debug'
>   from /home/thufir/.rvm/gems/ruby-1.9.3-p125/gems/ruby-net-
> nntp-1.0.0/lib/net/nntp.rb:95:in `read_response'
>   from /home/thufir/.rvm/gems/ruby-1.9.3-p125/gems/ruby-net-
> nntp-1.0.0/lib/net/nntp.rb:73:in `connect'
>   from nntp.rb:14:in `<main>'

From the sources [1] it seems that you have to initialize the logger
manually. Try adding something like:

  nntp.logger = Logger.new 'mylog'

before calling nntp.connect.

HTH,

- Lars

[1]
https://forge.secure.at:10443/hgweb/projects/ruby-net-nntp/file/c3318cb0b5af/lib/net/nntp.rb

-- 
Posted via http://www.ruby-forum.com/.