Sha256: 3e7ec6c0992f1e582becef598ffba731c963de2716c6a21b4b2e73429569bb7a

Contents?: true

Size: 948 Bytes

Versions: 2

Compression:

Stored size: 948 Bytes

Contents

require 'em-twitter/client'
require 'em-twitter/version'
require 'logger'

module EventMachine
  module Twitter
    DEFAULT_CONNECTION_OPTIONS = {
      :host               => 'stream.twitter.com',
      :port               => 443,
      :method             => 'POST',
      :content_type       => "application/x-www-form-urlencoded",
      :path               => '/',
      :params             => {},
      :headers            => {},
      :user_agent         => "EM::Twitter Ruby Gem #{EM::Twitter::VERSION}",
      :proxy              => nil,
      :ssl                => {},
      :timeout            => 0,
      :auth               => {},
      :reconnect_options  => {},
      :encoding           => nil,
      :auto_reconnect     => true
    }

    class ReconnectLimitError < StandardError; end

    def self.logger
      @logger ||= Logger.new(STDOUT)
    end

    def self.logger=(new_logger)
      @logger = new_logger
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
em-twitter-0.1.1 lib/em-twitter.rb
em-twitter-0.1.0 lib/em-twitter.rb