plamoni/SiriProxy — Issue #220: Plugin craches siriproxy
Author: fredskronk
Created: 2011-12-29 02:56:27+00:00
State: open

Hello,

Ok. I'm a bit new to all this and to Ruby and I must be doing something wrong.
When editing the example file by just changing a listen_for and the response it all works fine. But as soon as I try to remove some example code and updates the server crashes every time theirs an incoming Siri request.

I've done som PHP and Java in my days and acording to what I have read about Ruby on the net I should have done it all right. But, ah well.

This is the file I have at the moment.

require 'cora'
require 'siri_objects'

class SiriProxy::Plugin::whensthebuscomming < SiriProxy::Plugin
def initialize(config)
#if you have custom configuration options, process them here!
end

listen_for /Where am I/i do
say "How should I know."

request_completed
end
end

Any help would be appreciated.