Permalink
Browse files

Add #NewTwitter methods and tests

Remove deprecated method #replies (use #mentions instead) and #help, which returned invalid JSON.
  • Loading branch information...
1 parent b4b87de commit 0bfbf6352de9bdda2b93ed053a358c0cb8e78e8f @sferik committed Sep 30, 2010
Showing with 865 additions and 5,542 deletions.
  1. +1 −1 examples/timeline.rb
  2. +2 −2 lib/twitter.rb
  3. +193 −113 lib/twitter/base.rb
  4. +60 −8 lib/twitter/unauthenticated.rb
  5. +1 −0 test/fixtures/array.json
  6. +0 −1,632 test/fixtures/blocking.json
  7. +1 −0 test/fixtures/direct_message.json
  8. +0 −1 test/fixtures/firehose.json
  9. +0 −1 test/fixtures/follower_ids.json
  10. +0 −1 test/fixtures/followers.json
  11. +0 −1 test/fixtures/friend_ids.json
  12. +0 −1 test/fixtures/friends_timeline.json
  13. +0 −1 test/fixtures/home_timeline.json
  14. +0 −1 test/fixtures/ids.json
  15. +0 −1 test/fixtures/list_statuses.json
  16. +0 −1 test/fixtures/list_statuses_1_1.json
  17. +0 −1 test/fixtures/list_statuses_2_1.json
  18. +1 −1 test/fixtures/list_users.json
  19. BIN test/fixtures/me.jpeg
  20. +0 −1 test/fixtures/mentions.json
  21. BIN test/fixtures/nature02922-f1.2.jpeg
  22. +0 −39 test/fixtures/people_search.json
  23. +1 −0 test/fixtures/rate_limit_status.json
  24. +1 −0 test/fixtures/relationship.json
  25. +0 −41 test/fixtures/report_spam.json
  26. +1 −1 test/fixtures/retweet.json
  27. +0 −1 test/fixtures/retweeted_by_me.json
  28. +0 −1 test/fixtures/retweeted_to_me.json
  29. +0 −166 test/fixtures/retweeters_of_tweet.json
  30. +0 −1 test/fixtures/retweets.json
  31. +0 −1 test/fixtures/retweets_of_me.json
  32. BIN test/fixtures/sample-image.png
  33. +1 −7 test/fixtures/saved_search.json
  34. +0 −16 test/fixtures/saved_searches.json
  35. +1 −0 test/fixtures/settings.json
  36. +1 −1 test/fixtures/status.json
  37. +1 −0 test/fixtures/totals.json
  38. +0 −253 test/fixtures/trends_available.json
  39. +1 −1,925 test/fixtures/trends_daily.json
  40. +0 −57 test/fixtures/trends_location.json
  41. +0 −1 test/fixtures/update_profile_background_image.json
  42. +0 −1 test/fixtures/update_profile_image.json
  43. +1 −1 test/fixtures/user.json
  44. +0 −710 test/fixtures/user_timeline.json
  45. +0 −1 test/fixtures/users.json
  46. +347 −300 test/twitter/base_test.rb
  47. +19 −50 test/twitter/geo_test.rb
  48. +3 −2 test/twitter/oauth_test.rb
  49. +65 −64 test/twitter/search_test.rb
  50. +31 −69 test/twitter/trends_test.rb
  51. +91 −61 test/twitter/unauthenticated_test.rb
  52. +40 −3 test/twitter_test.rb
  53. +1 −1 website/index.html
View
@@ -13,5 +13,5 @@
pp client.user_timeline
puts '*'*50
-pp client.replies
+pp client.mentions
puts '*'*50
View
@@ -9,7 +9,7 @@ module Twitter
def self.client; Twitter::Unauthenticated.new end
- def_delegators :client, :firehose, :user, :status, :friend_ids, :follower_ids, :timeline, :list_timeline
+ def_delegators :client, :firehose, :user, :suggestions, :retweeted_to_user, :retweeted_by_user, :status, :friend_ids, :follower_ids, :timeline, :lists_subscribed, :list_timeline
def self.adapter
@adapter ||= Faraday.default_adapter
@@ -38,7 +38,7 @@ def self.api_endpoint=(value)
end
def self.api_version
- @api_version ||= "1"
+ @api_version ||= 1
end
def self.api_version=(value)
Oops, something went wrong.

0 comments on commit 0bfbf63

Please sign in to comment.