Forum: Ruby "FireRuby" (Ruby script for FirePHP)

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
937ba774375a8038ed224fdf4f54290f?d=identicon&s=25 T.N.T. (Guest)
on 2008-10-11 18:35
(Received via mailing list)
Hello group

Since I couldn't find anything regarding a ruby version of the
FirePHP.class.php for FirePHP so I wrote something myself. I'm just a
hobbyist so it's not the Fine Art and it's not really festure rich
(yet). But it works for the basic console.log(msg) thing. For plain cgi
as well as with webrick. If anybody is interested you can download it
here: http://banza.net/fireruby/fireruby.tar.bz2

I hope I didn't reinvent an existing wheel. Comments or hints to an
existing script are of course very welcome.

Regards from Berlin, TNT


CGI: _________________________________

require 'fireruby'
console = Fireruby::CGI.new
console.log 'HMMMmmm...'
console.info 'Übrigens...'
console.warn "Achtunk!"
console.error "Scheiße!"

WEBrick: _______________________________

server.mount_proc('/firetest') do |request, response|
  response.fire_log 'HMMMmmm...'
  response.fire_info 'Übrigens...'
  response.fire_warn "Achtunk!"
  response.fire_error "Scheiße!"
  response.body = "..."
end
This topic is locked and can not be replied to.