Sha256: 81d6226a7314266c2aa898557e245191725a077b09295e16b3305a1e02eb542d
Contents?: true
Size: 923 Bytes
Versions: 5
Compression:
Stored size: 923 Bytes
Contents
require 'forwardable' require 'rubygems' %w(oauth mash httparty).each do |lib| gem lib require lib end module Twitter class TwitterError < StandardError attr_reader :data def initialize(data) @data = data super end end class RateLimitExceeded < TwitterError; end class Unauthorized < TwitterError; end class General < TwitterError; end class Unavailable < StandardError; end class InformTwitter < StandardError; end class NotFound < StandardError; end def self.firehose response = HTTParty.get('http://twitter.com/statuses/public_timeline.json', :format => :json) response.map { |tweet| Mash.new(tweet) } end end directory = File.dirname(__FILE__) $:.unshift(directory) unless $:.include?(directory) require 'twitter/oauth' require 'twitter/httpauth' require 'twitter/request' require 'twitter/base' require 'twitter/search'
Version data entries
5 entries across 5 versions & 2 rubygems