joelind-twitter 0.9.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (97) hide show
  1. data/History +290 -0
  2. data/License +20 -0
  3. data/Notes +33 -0
  4. data/README.rdoc +19 -0
  5. data/Rakefile +40 -0
  6. data/VERSION.yml +5 -0
  7. data/examples/connect.rb +30 -0
  8. data/examples/friendship_existence.rb +13 -0
  9. data/examples/helpers/config_store.rb +38 -0
  10. data/examples/httpauth.rb +11 -0
  11. data/examples/ids.rb +13 -0
  12. data/examples/lists.rb +11 -0
  13. data/examples/oauth.rb +27 -0
  14. data/examples/search.rb +15 -0
  15. data/examples/timeline.rb +19 -0
  16. data/examples/tumblr.rb +9 -0
  17. data/examples/unauthorized.rb +16 -0
  18. data/examples/update.rb +11 -0
  19. data/examples/user.rb +5 -0
  20. data/lib/twitter/base.rb +390 -0
  21. data/lib/twitter/geo.rb +25 -0
  22. data/lib/twitter/httpauth.rb +53 -0
  23. data/lib/twitter/local_trends.rb +30 -0
  24. data/lib/twitter/oauth.rb +85 -0
  25. data/lib/twitter/request.rb +71 -0
  26. data/lib/twitter/search.rb +163 -0
  27. data/lib/twitter/trends.rb +55 -0
  28. data/lib/twitter.rb +156 -0
  29. data/test/fixtures/blocking.json +1632 -0
  30. data/test/fixtures/firehose.json +1 -0
  31. data/test/fixtures/follower_ids.json +1 -0
  32. data/test/fixtures/followers.json +1 -0
  33. data/test/fixtures/friend_ids.json +1 -0
  34. data/test/fixtures/friends_timeline.json +1 -0
  35. data/test/fixtures/friendship.json +1 -0
  36. data/test/fixtures/friendship_exists.json +1 -0
  37. data/test/fixtures/geo_place.json +1 -0
  38. data/test/fixtures/geo_reverse_geocode.json +1 -0
  39. data/test/fixtures/geo_reverse_geocode_granularity.json +1 -0
  40. data/test/fixtures/geo_reverse_geocode_limit.json +1 -0
  41. data/test/fixtures/geo_search.json +1 -0
  42. data/test/fixtures/geo_search_ip_address.json +1 -0
  43. data/test/fixtures/geo_search_query.json +1 -0
  44. data/test/fixtures/home_timeline.json +1 -0
  45. data/test/fixtures/ids.json +1 -0
  46. data/test/fixtures/list.json +1 -0
  47. data/test/fixtures/list_statuses.json +1 -0
  48. data/test/fixtures/list_statuses_1_1.json +1 -0
  49. data/test/fixtures/list_statuses_2_1.json +1 -0
  50. data/test/fixtures/list_subscriptions.json +1 -0
  51. data/test/fixtures/list_users.json +1 -0
  52. data/test/fixtures/lists.json +1 -0
  53. data/test/fixtures/memberships.json +1 -0
  54. data/test/fixtures/mentions.json +1 -0
  55. data/test/fixtures/not_found.json +1 -0
  56. data/test/fixtures/people_search.json +39 -0
  57. data/test/fixtures/rate_limit_exceeded.json +1 -0
  58. data/test/fixtures/report_spam.json +41 -0
  59. data/test/fixtures/retweet.json +1 -0
  60. data/test/fixtures/retweeted_by_me.json +1 -0
  61. data/test/fixtures/retweeted_to_me.json +1 -0
  62. data/test/fixtures/retweeters_of_tweet.json +166 -0
  63. data/test/fixtures/retweets.json +1 -0
  64. data/test/fixtures/retweets_of_me.json +1 -0
  65. data/test/fixtures/sample-image.png +0 -0
  66. data/test/fixtures/saved_search.json +7 -0
  67. data/test/fixtures/saved_searches.json +16 -0
  68. data/test/fixtures/search.json +1 -0
  69. data/test/fixtures/search_from_jnunemaker.json +1 -0
  70. data/test/fixtures/status.json +1 -0
  71. data/test/fixtures/status_show.json +1 -0
  72. data/test/fixtures/trends_available.json +253 -0
  73. data/test/fixtures/trends_current.json +1 -0
  74. data/test/fixtures/trends_current_exclude.json +1 -0
  75. data/test/fixtures/trends_daily.json +1925 -0
  76. data/test/fixtures/trends_daily_date.json +1 -0
  77. data/test/fixtures/trends_daily_exclude.json +1 -0
  78. data/test/fixtures/trends_location.json +57 -0
  79. data/test/fixtures/trends_weekly.json +1 -0
  80. data/test/fixtures/trends_weekly_date.json +1 -0
  81. data/test/fixtures/trends_weekly_exclude.json +1 -0
  82. data/test/fixtures/unauthorized.json +1 -0
  83. data/test/fixtures/update_profile_background_image.json +1 -0
  84. data/test/fixtures/update_profile_image.json +1 -0
  85. data/test/fixtures/user.json +1 -0
  86. data/test/fixtures/user_timeline.json +710 -0
  87. data/test/fixtures/users.json +1 -0
  88. data/test/test_helper.rb +47 -0
  89. data/test/twitter/base_test.rb +426 -0
  90. data/test/twitter/geo_test.rb +79 -0
  91. data/test/twitter/httpauth_test.rb +86 -0
  92. data/test/twitter/oauth_test.rb +127 -0
  93. data/test/twitter/request_test.rb +217 -0
  94. data/test/twitter/search_test.rb +208 -0
  95. data/test/twitter/trends_test.rb +112 -0
  96. data/test/twitter_test.rb +106 -0
  97. metadata +305 -0
@@ -0,0 +1,253 @@
1
+ [{
2
+ "url": "http://where.yahooapis.com/v1/place/23424803",
3
+ "placeType": {
4
+ "code": 12,
5
+ "name": "Country"
6
+ },
7
+ "woeid": 23424803,
8
+ "countryCode": "IE",
9
+ "name": "Ireland",
10
+ "country": "Ireland"
11
+ },
12
+ {
13
+ "countryCode": "MX",
14
+ "country": "Mexico",
15
+ "url": "http://where.yahooapis.com/v1/place/23424900",
16
+ "name": "Mexico",
17
+ "placeType": {
18
+ "code": 12,
19
+ "name": "Country"
20
+ },
21
+ "woeid": 23424900
22
+ },
23
+ {
24
+ "url": "http://where.yahooapis.com/v1/place/23424975",
25
+ "woeid": 23424975,
26
+ "placeType": {
27
+ "code": 12,
28
+ "name": "Country"
29
+ },
30
+ "countryCode": "GB",
31
+ "name": "United Kingdom",
32
+ "country": "United Kingdom"
33
+ },
34
+ {
35
+ "url": "http://where.yahooapis.com/v1/place/2358820",
36
+ "placeType": {
37
+ "code": 7,
38
+ "name": "Town"
39
+ },
40
+ "countryCode": "US",
41
+ "woeid": 2358820,
42
+ "name": "Baltimore",
43
+ "country": "United States"
44
+ },
45
+ {
46
+ "countryCode": "US",
47
+ "country": "United States",
48
+ "url": "http://where.yahooapis.com/v1/place/2514815",
49
+ "name": "Washington",
50
+ "placeType": {
51
+ "code": 7,
52
+ "name": "Town"
53
+ },
54
+ "woeid": 2514815
55
+ },
56
+ {
57
+ "url": "http://where.yahooapis.com/v1/place/2367105",
58
+ "placeType": {
59
+ "code": 7,
60
+ "name": "Town"
61
+ },
62
+ "woeid": 2367105,
63
+ "countryCode": "US",
64
+ "name": "Boston",
65
+ "country": "United States"
66
+ },
67
+ {
68
+ "country": "Brazil",
69
+ "url": "http://where.yahooapis.com/v1/place/455827",
70
+ "placeType": {
71
+ "code": 7,
72
+ "name": "Town"
73
+ },
74
+ "countryCode": "BR",
75
+ "name": "Sao Paulo",
76
+ "woeid": 455827
77
+ },
78
+ {
79
+ "country": "United States",
80
+ "url": "http://where.yahooapis.com/v1/place/2459115",
81
+ "placeType": {
82
+ "code": 7,
83
+ "name": "Town"
84
+ },
85
+ "countryCode": "US",
86
+ "name": "New York",
87
+ "woeid": 2459115
88
+ },
89
+ {
90
+ "url": "http://where.yahooapis.com/v1/place/2487796",
91
+ "countryCode": "US",
92
+ "woeid": 2487796,
93
+ "name": "San Antonio",
94
+ "country": "United States",
95
+ "placeType": {
96
+ "code": 7,
97
+ "name": "Town"
98
+ }
99
+ },
100
+ {
101
+ "url": "http://where.yahooapis.com/v1/place/23424977",
102
+ "woeid": 23424977,
103
+ "placeType": {
104
+ "code": 12,
105
+ "name": "Country"
106
+ },
107
+ "countryCode": "US",
108
+ "name": "United States",
109
+ "country": "United States"
110
+ },
111
+ {
112
+ "url": "http://where.yahooapis.com/v1/place/23424768",
113
+ "woeid": 23424768,
114
+ "placeType": {
115
+ "code": 12,
116
+ "name": "Country"
117
+ },
118
+ "countryCode": "BR",
119
+ "name": "Brazil",
120
+ "country": "Brazil"
121
+ },
122
+ {
123
+ "url": "http://where.yahooapis.com/v1/place/2379574",
124
+ "placeType": {
125
+ "code": 7,
126
+ "name": "Town"
127
+ },
128
+ "countryCode": "US",
129
+ "woeid": 2379574,
130
+ "name": "Chicago",
131
+ "country": "United States"
132
+ },
133
+ {
134
+ "url": "http://where.yahooapis.com/v1/place/2471217",
135
+ "placeType": {
136
+ "code": 7,
137
+ "name": "Town"
138
+ },
139
+ "woeid": 2471217,
140
+ "countryCode": "US",
141
+ "name": "Philadelphia",
142
+ "country": "United States"
143
+ },
144
+ {
145
+ "countryCode": "US",
146
+ "country": "United States",
147
+ "url": "http://where.yahooapis.com/v1/place/2424766",
148
+ "name": "Houston",
149
+ "placeType": {
150
+ "code": 7,
151
+ "name": "Town"
152
+ },
153
+ "woeid": 2424766
154
+ },
155
+ {
156
+ "countryCode": "US",
157
+ "country": "United States",
158
+ "url": "http://where.yahooapis.com/v1/place/2442047",
159
+ "name": "Los Angeles",
160
+ "placeType": {
161
+ "code": 7,
162
+ "name": "Town"
163
+ },
164
+ "woeid": 2442047
165
+ },
166
+ {
167
+ "countryCode": "US",
168
+ "country": "United States",
169
+ "url": "http://where.yahooapis.com/v1/place/2487956",
170
+ "name": "San Francisco",
171
+ "placeType": {
172
+ "code": 7,
173
+ "name": "Town"
174
+ },
175
+ "woeid": 2487956
176
+ },
177
+ {
178
+ "url": "http://where.yahooapis.com/v1/place/23424775",
179
+ "woeid": 23424775,
180
+ "placeType": {
181
+ "code": 12,
182
+ "name": "Country"
183
+ },
184
+ "countryCode": "CA",
185
+ "name": "Canada",
186
+ "country": "Canada"
187
+ },
188
+ {
189
+ "country": "United States",
190
+ "url": "http://where.yahooapis.com/v1/place/2357024",
191
+ "placeType": {
192
+ "code": 7,
193
+ "name": "Town"
194
+ },
195
+ "countryCode": "US",
196
+ "name": "Atlanta",
197
+ "woeid": 2357024
198
+ },
199
+ {
200
+ "url": "http://where.yahooapis.com/v1/place/2406080",
201
+ "countryCode": "US",
202
+ "woeid": 2406080,
203
+ "name": "Fort Worth",
204
+ "country": "United States",
205
+ "placeType": {
206
+ "code": 7,
207
+ "name": "Town"
208
+ }
209
+ },
210
+ {
211
+ "url": "http://where.yahooapis.com/v1/place/2388929",
212
+ "countryCode": "US",
213
+ "woeid": 2388929,
214
+ "name": "Dallas",
215
+ "country": "United States",
216
+ "placeType": {
217
+ "code": 7,
218
+ "name": "Town"
219
+ }
220
+ },
221
+ {
222
+ "countryCode": "US",
223
+ "country": "United States",
224
+ "url": "http://where.yahooapis.com/v1/place/2490383",
225
+ "name": "Seattle",
226
+ "placeType": {
227
+ "code": 7,
228
+ "name": "Town"
229
+ },
230
+ "woeid": 2490383
231
+ },
232
+ {
233
+ "countryCode": "GB",
234
+ "country": "United Kingdom",
235
+ "url": "http://where.yahooapis.com/v1/place/44418",
236
+ "name": "London",
237
+ "placeType": {
238
+ "code": 7,
239
+ "name": "Town"
240
+ },
241
+ "woeid": 44418
242
+ },
243
+ {
244
+ "url": "http://where.yahooapis.com/v1/place/1",
245
+ "placeType": {
246
+ "code": 19,
247
+ "name": "Supername"
248
+ },
249
+ "countryCode": null,
250
+ "woeid": 1,
251
+ "name": "Earth",
252
+ "country": ""
253
+ }]
@@ -0,0 +1 @@
1
+ {"trends":{"2009-05-18 20:53:51":[{"query":"#musicmonday","name":"#musicmonday"},{"query":"#newdivide","name":"#newdivide"},{"query":"\"New Divide\"","name":"New Divide"},{"query":"#3turnoffwords","name":"#3turnoffwords"},{"query":"#3hotwords","name":"#3hotwords"},{"query":"#ecomonday","name":"#ecomonday"},{"query":"#medievalmovies","name":"#medievalmovies"},{"query":"\"Star Trek\"","name":"Star Trek"},{"query":"#wolframalpha","name":"#wolframalpha"},{"query":"AT&T","name":"AT&T"}]},"as_of":1242680031}
@@ -0,0 +1 @@
1
+ {"as_of":1242679796,"trends":{"2009-05-18 20:49:56":[{"query":"\"New Divide\"","name":"New Divide"},{"query":"\"Star Trek\"","name":"Star Trek"},{"query":"AT&T","name":"AT&T"},{"query":"\"Angels & Demons\"","name":"Angels & Demons"},{"query":"RIP","name":"RIP"},{"query":"Dollhouse","name":"Dollhouse"},{"query":"Ashes","name":"Ashes"},{"query":"\"Linkin Park\"","name":"Linkin Park"},{"query":"\"Memorial Day\" OR \"Green Day\"","name":"Memorial Day"},{"query":"Brazil","name":"Brazil"}]}}