Sha256: 4605a2cccb36086fa38cf1717756deaac25e18efe86aff966d1807a2f38beb27
Contents?: true
Size: 419 Bytes
Versions: 2
Compression:
Stored size: 419 Bytes
Contents
module EMJack module Handler class Buried RESPONSE = /^BURIED\s+(\d+)\r\n/ def self.handles?(response) response =~ RESPONSE end def self.handle(deferrable, response, body) return false unless response =~ RESPONSE deferrable.fail(:buried, $1.to_i) true end EMJack::Connection.register_handler(EMJack::Handler::Buried) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
em-jack-0.0.6 | lib/em-jack/handlers/buried.rb |
em-jack-0.0.5 | lib/em-jack/handlers/buried.rb |