lib/sinatra-cometio/options.rb in sinatra-cometio-0.5.0 vs lib/sinatra-cometio/options.rb in sinatra-cometio-0.5.1

- old
+ new

@@ -9,10 +9,11 @@ CometIO.options end def self.default_options { - :timeout => [120, lambda{|v| v.kind_of? Fixnum and v >= 20 }] + :timeout => [120, lambda{|v| v.kind_of? Fixnum and v >= 20 }], + :post_interval => [1, lambda{|v| [Fixnum, Float].include? v.class and v >= 1 }] } end def self.options @@options ||= (