lib/twitter.rb in billymeltdown-twitter-0.3.8.1 vs lib/twitter.rb in billymeltdown-twitter-0.4.2
- old
+ new
@@ -1,25 +1,33 @@
-%w(uri cgi net/http yaml rubygems hpricot active_support).each { |f| require f }
+require 'uri'
+require 'cgi'
+require 'net/http'
+require 'yaml'
+require 'time'
+require 'rubygems'
+require 'hpricot'
-$:.unshift(File.join(File.dirname(__FILE__)))
+$:.unshift(File.dirname(__FILE__))
require 'twitter/version'
require 'twitter/easy_class_maker'
require 'twitter/base'
require 'twitter/user'
require 'twitter/search'
require 'twitter/status'
require 'twitter/direct_message'
require 'twitter/rate_limit_status'
+require 'twitter/search_result_info'
+require 'twitter/search_result'
module Twitter
class Unavailable < StandardError; end
class CantConnect < StandardError; end
class BadResponse < StandardError; end
class UnknownTimeline < ArgumentError; end
class RateExceeded < StandardError; end
- class CantFindUsers < ArgumentError; end
- class AlreadyFollowing < StandardError; end
class RequestRefused < ArgumentError; end
- class YouAreNotFriends < StandardError; end
+ class CantFindUsers < RequestRefused; end
+ class AlreadyFollowing < RequestRefused; end
+ class YouAreNotFriends < RequestRefused; end
SourceName = 'twittergem'
end
\ No newline at end of file