twitter 4.8.1 → 5.0.0.rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (197) hide show
  1. data.tar.gz.sig +0 -0
  2. data/CHANGELOG.md +30 -0
  3. data/LICENSE.md +1 -1
  4. data/README.md +386 -266
  5. data/lib/twitter.rb +4 -39
  6. data/lib/twitter/arguments.rb +11 -0
  7. data/lib/twitter/base.rb +89 -68
  8. data/lib/twitter/client.rb +69 -110
  9. data/lib/twitter/configuration.rb +7 -3
  10. data/lib/twitter/creatable.rb +2 -4
  11. data/lib/twitter/cursor.rb +50 -42
  12. data/lib/twitter/direct_message.rb +2 -11
  13. data/lib/twitter/entity/uri.rb +13 -0
  14. data/lib/twitter/enumerable.rb +15 -0
  15. data/lib/twitter/error.rb +55 -7
  16. data/lib/twitter/error/already_favorited.rb +1 -1
  17. data/lib/twitter/error/already_posted.rb +10 -0
  18. data/lib/twitter/error/already_retweeted.rb +1 -1
  19. data/lib/twitter/error/bad_gateway.rb +2 -3
  20. data/lib/twitter/error/bad_request.rb +2 -2
  21. data/lib/twitter/error/forbidden.rb +2 -2
  22. data/lib/twitter/error/gateway_timeout.rb +2 -3
  23. data/lib/twitter/error/internal_server_error.rb +2 -3
  24. data/lib/twitter/error/not_acceptable.rb +2 -2
  25. data/lib/twitter/error/not_found.rb +2 -2
  26. data/lib/twitter/error/service_unavailable.rb +2 -3
  27. data/lib/twitter/error/too_many_requests.rb +2 -2
  28. data/lib/twitter/error/unauthorized.rb +2 -2
  29. data/lib/twitter/error/unprocessable_entity.rb +2 -2
  30. data/lib/twitter/factory.rb +2 -8
  31. data/lib/twitter/geo_factory.rb +2 -2
  32. data/lib/twitter/geo_results.rb +36 -0
  33. data/lib/twitter/identity.rb +0 -22
  34. data/lib/twitter/list.rb +18 -4
  35. data/lib/twitter/media/photo.rb +3 -3
  36. data/lib/twitter/media_factory.rb +2 -2
  37. data/lib/twitter/null_object.rb +24 -0
  38. data/lib/twitter/oembed.rb +3 -2
  39. data/lib/twitter/place.rb +15 -9
  40. data/lib/twitter/profile_banner.rb +5 -3
  41. data/lib/twitter/rate_limit.rb +1 -17
  42. data/lib/twitter/relationship.rb +2 -10
  43. data/lib/twitter/rest/api/direct_messages.rb +135 -0
  44. data/lib/twitter/rest/api/favorites.rb +120 -0
  45. data/lib/twitter/rest/api/friends_and_followers.rb +290 -0
  46. data/lib/twitter/rest/api/help.rb +58 -0
  47. data/lib/twitter/rest/api/lists.rb +491 -0
  48. data/lib/twitter/rest/api/oauth.rb +45 -0
  49. data/lib/twitter/rest/api/places_and_geo.rb +104 -0
  50. data/lib/twitter/rest/api/saved_searches.rb +91 -0
  51. data/lib/twitter/rest/api/search.rb +37 -0
  52. data/lib/twitter/rest/api/spam_reporting.rb +29 -0
  53. data/lib/twitter/rest/api/suggested_users.rb +51 -0
  54. data/lib/twitter/rest/api/timelines.rb +202 -0
  55. data/lib/twitter/rest/api/trends.rb +58 -0
  56. data/lib/twitter/rest/api/tweets.rb +293 -0
  57. data/lib/twitter/rest/api/undocumented.rb +52 -0
  58. data/lib/twitter/rest/api/users.rb +383 -0
  59. data/lib/twitter/rest/api/utils.rb +219 -0
  60. data/lib/twitter/rest/client.rb +193 -0
  61. data/lib/twitter/rest/request/multipart_with_file.rb +36 -0
  62. data/lib/twitter/rest/response/parse_json.rb +27 -0
  63. data/lib/twitter/{response → rest/response}/raise_error.rb +8 -11
  64. data/lib/twitter/search_results.rb +33 -21
  65. data/lib/twitter/settings.rb +1 -6
  66. data/lib/twitter/size.rb +1 -1
  67. data/lib/twitter/streaming/client.rb +77 -0
  68. data/lib/twitter/streaming/connection.rb +22 -0
  69. data/lib/twitter/streaming/response.rb +30 -0
  70. data/lib/twitter/suggestion.rb +4 -2
  71. data/lib/twitter/token.rb +8 -0
  72. data/lib/twitter/trend.rb +2 -1
  73. data/lib/twitter/trend_results.rb +59 -0
  74. data/lib/twitter/tweet.rb +41 -85
  75. data/lib/twitter/user.rb +51 -41
  76. data/lib/twitter/version.rb +4 -4
  77. data/spec/fixtures/already_posted.json +1 -0
  78. data/spec/fixtures/ids_list.json +1 -1
  79. data/spec/fixtures/ids_list2.json +1 -1
  80. data/spec/fixtures/search.json +1 -1
  81. data/spec/fixtures/search_malformed.json +1 -1
  82. data/spec/fixtures/track_streaming.json +3 -0
  83. data/spec/helper.rb +8 -13
  84. data/spec/twitter/base_spec.rb +25 -99
  85. data/spec/twitter/configuration_spec.rb +1 -1
  86. data/spec/twitter/cursor_spec.rb +13 -31
  87. data/spec/twitter/direct_message_spec.rb +41 -8
  88. data/spec/twitter/entity/uri_spec.rb +74 -0
  89. data/spec/twitter/error_spec.rb +59 -11
  90. data/spec/twitter/geo/point_spec.rb +1 -1
  91. data/spec/twitter/geo_factory_spec.rb +3 -3
  92. data/spec/twitter/geo_results_spec.rb +35 -0
  93. data/spec/twitter/identifiable_spec.rb +0 -21
  94. data/spec/twitter/list_spec.rb +51 -8
  95. data/spec/twitter/media/photo_spec.rb +118 -3
  96. data/spec/twitter/media_factory_spec.rb +2 -2
  97. data/spec/twitter/null_object_spec.rb +26 -0
  98. data/spec/twitter/oembed_spec.rb +69 -45
  99. data/spec/twitter/place_spec.rb +68 -12
  100. data/spec/twitter/profile_banner_spec.rb +1 -1
  101. data/spec/twitter/rate_limit_spec.rb +12 -12
  102. data/spec/twitter/relationship_spec.rb +31 -9
  103. data/spec/twitter/{api → rest/api}/direct_messages_spec.rb +22 -9
  104. data/spec/twitter/{api → rest/api}/favorites_spec.rb +80 -7
  105. data/spec/twitter/{api → rest/api}/friends_and_followers_spec.rb +104 -65
  106. data/spec/twitter/{api → rest/api}/geo_spec.rb +10 -10
  107. data/spec/twitter/{api → rest/api}/help_spec.rb +6 -6
  108. data/spec/twitter/{api → rest/api}/lists_spec.rb +77 -56
  109. data/spec/twitter/{api → rest/api}/oauth_spec.rb +6 -6
  110. data/spec/twitter/{api → rest/api}/saved_searches_spec.rb +7 -7
  111. data/spec/twitter/{api → rest/api}/search_spec.rb +8 -9
  112. data/spec/twitter/{api → rest/api}/spam_reporting_spec.rb +3 -3
  113. data/spec/twitter/{api → rest/api}/suggested_users_spec.rb +5 -5
  114. data/spec/twitter/{api → rest/api}/timelines_spec.rb +9 -9
  115. data/spec/twitter/{api → rest/api}/trends_spec.rb +6 -6
  116. data/spec/twitter/rest/api/tweets_spec.rb +503 -0
  117. data/spec/twitter/{api → rest/api}/undocumented_spec.rb +19 -45
  118. data/spec/twitter/{api → rest/api}/users_spec.rb +60 -35
  119. data/spec/twitter/rest/client_spec.rb +193 -0
  120. data/spec/twitter/saved_search_spec.rb +11 -0
  121. data/spec/twitter/search_results_spec.rb +29 -42
  122. data/spec/twitter/settings_spec.rb +17 -6
  123. data/spec/twitter/streaming/client_spec.rb +75 -0
  124. data/spec/twitter/token_spec.rb +16 -0
  125. data/spec/twitter/trend_results_spec.rb +89 -0
  126. data/spec/twitter/trend_spec.rb +23 -0
  127. data/spec/twitter/tweet_spec.rb +122 -115
  128. data/spec/twitter/user_spec.rb +136 -77
  129. data/spec/twitter_spec.rb +0 -119
  130. data/twitter.gemspec +8 -5
  131. metadata +148 -141
  132. metadata.gz.sig +0 -0
  133. data/lib/twitter/action/favorite.rb +0 -19
  134. data/lib/twitter/action/follow.rb +0 -30
  135. data/lib/twitter/action/list_member_added.rb +0 -39
  136. data/lib/twitter/action/mention.rb +0 -46
  137. data/lib/twitter/action/reply.rb +0 -27
  138. data/lib/twitter/action/retweet.rb +0 -27
  139. data/lib/twitter/action/tweet.rb +0 -20
  140. data/lib/twitter/action_factory.rb +0 -22
  141. data/lib/twitter/api/arguments.rb +0 -13
  142. data/lib/twitter/api/direct_messages.rb +0 -148
  143. data/lib/twitter/api/favorites.rb +0 -126
  144. data/lib/twitter/api/friends_and_followers.rb +0 -334
  145. data/lib/twitter/api/help.rb +0 -64
  146. data/lib/twitter/api/lists.rb +0 -618
  147. data/lib/twitter/api/oauth.rb +0 -44
  148. data/lib/twitter/api/places_and_geo.rb +0 -121
  149. data/lib/twitter/api/saved_searches.rb +0 -99
  150. data/lib/twitter/api/search.rb +0 -37
  151. data/lib/twitter/api/spam_reporting.rb +0 -30
  152. data/lib/twitter/api/suggested_users.rb +0 -55
  153. data/lib/twitter/api/timelines.rb +0 -214
  154. data/lib/twitter/api/trends.rb +0 -63
  155. data/lib/twitter/api/tweets.rb +0 -304
  156. data/lib/twitter/api/undocumented.rb +0 -97
  157. data/lib/twitter/api/users.rb +0 -439
  158. data/lib/twitter/api/utils.rb +0 -187
  159. data/lib/twitter/configurable.rb +0 -96
  160. data/lib/twitter/default.rb +0 -102
  161. data/lib/twitter/entity/url.rb +0 -9
  162. data/lib/twitter/error/client_error.rb +0 -35
  163. data/lib/twitter/error/decode_error.rb +0 -9
  164. data/lib/twitter/error/identity_map_key_error.rb +0 -9
  165. data/lib/twitter/error/server_error.rb +0 -28
  166. data/lib/twitter/exceptable.rb +0 -36
  167. data/lib/twitter/identity_map.rb +0 -22
  168. data/lib/twitter/request/multipart_with_file.rb +0 -34
  169. data/lib/twitter/response/parse_json.rb +0 -25
  170. data/spec/fixtures/about_me.json +0 -1
  171. data/spec/fixtures/activity_summary.json +0 -1
  172. data/spec/fixtures/bad_gateway.json +0 -1
  173. data/spec/fixtures/bad_request.json +0 -1
  174. data/spec/fixtures/by_friends.json +0 -1
  175. data/spec/fixtures/end_session.json +0 -1
  176. data/spec/fixtures/forbidden.json +0 -1
  177. data/spec/fixtures/internal_server_error.json +0 -1
  178. data/spec/fixtures/not_acceptable.json +0 -1
  179. data/spec/fixtures/phoenix_search.phoenix +0 -1
  180. data/spec/fixtures/resolve.json +0 -1
  181. data/spec/fixtures/service_unavailable.json +0 -1
  182. data/spec/fixtures/totals.json +0 -1
  183. data/spec/fixtures/trends.json +0 -1
  184. data/spec/fixtures/unauthorized.json +0 -1
  185. data/spec/fixtures/video_facets.json +0 -1
  186. data/spec/twitter/action/favorite_spec.rb +0 -29
  187. data/spec/twitter/action/follow_spec.rb +0 -29
  188. data/spec/twitter/action/list_member_added_spec.rb +0 -41
  189. data/spec/twitter/action/mention_spec.rb +0 -52
  190. data/spec/twitter/action/reply_spec.rb +0 -41
  191. data/spec/twitter/action/retweet_spec.rb +0 -41
  192. data/spec/twitter/action_factory_spec.rb +0 -35
  193. data/spec/twitter/action_spec.rb +0 -16
  194. data/spec/twitter/api/tweets_spec.rb +0 -285
  195. data/spec/twitter/client_spec.rb +0 -223
  196. data/spec/twitter/error/client_error_spec.rb +0 -23
  197. data/spec/twitter/error/server_error_spec.rb +0 -20
@@ -4,14 +4,17 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
  require 'twitter/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
- spec.add_dependency 'faraday', ['~> 0.8', '< 0.10']
8
- spec.add_dependency 'multi_json', '~> 1.0'
9
- spec.add_dependency 'simple_oauth', '~> 0.2'
7
+ spec.add_dependency 'buftok', '~> 0.1.0'
8
+ spec.add_dependency 'faraday', ['>= 0.8', '< 0.10']
9
+ spec.add_dependency 'http', ['>= 0.5.0.pre2', '< 0.6']
10
+ spec.add_dependency 'http_parser.rb', '~> 0.5.0'
11
+ spec.add_dependency 'json', '~> 1.8'
12
+ spec.add_dependency 'simple_oauth', '~> 0.2.0'
10
13
  spec.add_development_dependency 'bundler', '~> 1.0'
11
- spec.authors = ["John Nunemaker", "Wynn Netherland", "Erik Michaels-Ober", "Steve Richert", "Steve Agalloco"]
14
+ spec.authors = ["Erik Michaels-Ober", "John Nunemaker", "Wynn Netherland", "Steve Richert", "Steve Agalloco"]
12
15
  spec.cert_chain = ['certs/sferik.pem']
13
16
  spec.description = %q{A Ruby interface to the Twitter API.}
14
- spec.email = ['nunemaker@gmail.com', 'wynn.netherland@gmail.com', 'sferik@gmail.com', 'steve.richert@gmail.com', 'steve.agalloco@gmail.com']
17
+ spec.email = ["sferik@gmail.com"]
15
18
  spec.files = %w(.yardopts CHANGELOG.md CONTRIBUTING.md LICENSE.md README.md Rakefile twitter.gemspec)
16
19
  spec.files += Dir.glob("lib/**/*.rb")
17
20
  spec.files += Dir.glob("spec/**/*")
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.8.1
5
- prerelease:
4
+ version: 5.0.0.rc.1
5
+ prerelease: 6
6
6
  platform: ruby
7
7
  authors:
8
+ - Erik Michaels-Ober
8
9
  - John Nunemaker
9
10
  - Wynn Netherland
10
- - Erik Michaels-Ober
11
11
  - Steve Richert
12
12
  - Steve Agalloco
13
13
  autorequire:
@@ -40,14 +40,30 @@ cert_chain:
40
40
  U0xxV3ZRUnNCbHlwSGZoczZKSnVMbHlaUEdoVTNSL3YKU2YzbFZLcEJDV2dS
41
41
  cEdUdnk0NVhWcEIrNTl5MzNQSm1FdVExUFRFT1l2UXlhbzlVS01BQWFBTi83
42
42
  cVdRdGpsMApobHc9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
43
- date: 2013-06-14 00:00:00.000000000 Z
43
+ date: 2013-09-12 00:00:00.000000000 Z
44
44
  dependencies:
45
45
  - !ruby/object:Gem::Dependency
46
- name: faraday
46
+ name: buftok
47
47
  requirement: !ruby/object:Gem::Requirement
48
48
  none: false
49
49
  requirements:
50
50
  - - ~>
51
+ - !ruby/object:Gem::Version
52
+ version: 0.1.0
53
+ type: :runtime
54
+ prerelease: false
55
+ version_requirements: !ruby/object:Gem::Requirement
56
+ none: false
57
+ requirements:
58
+ - - ~>
59
+ - !ruby/object:Gem::Version
60
+ version: 0.1.0
61
+ - !ruby/object:Gem::Dependency
62
+ name: faraday
63
+ requirement: !ruby/object:Gem::Requirement
64
+ none: false
65
+ requirements:
66
+ - - ! '>='
51
67
  - !ruby/object:Gem::Version
52
68
  version: '0.8'
53
69
  - - <
@@ -58,20 +74,42 @@ dependencies:
58
74
  version_requirements: !ruby/object:Gem::Requirement
59
75
  none: false
60
76
  requirements:
61
- - - ~>
77
+ - - ! '>='
62
78
  - !ruby/object:Gem::Version
63
79
  version: '0.8'
64
80
  - - <
65
81
  - !ruby/object:Gem::Version
66
82
  version: '0.10'
67
83
  - !ruby/object:Gem::Dependency
68
- name: multi_json
84
+ name: http
85
+ requirement: !ruby/object:Gem::Requirement
86
+ none: false
87
+ requirements:
88
+ - - ! '>='
89
+ - !ruby/object:Gem::Version
90
+ version: 0.5.0.pre2
91
+ - - <
92
+ - !ruby/object:Gem::Version
93
+ version: '0.6'
94
+ type: :runtime
95
+ prerelease: false
96
+ version_requirements: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: 0.5.0.pre2
102
+ - - <
103
+ - !ruby/object:Gem::Version
104
+ version: '0.6'
105
+ - !ruby/object:Gem::Dependency
106
+ name: http_parser.rb
69
107
  requirement: !ruby/object:Gem::Requirement
70
108
  none: false
71
109
  requirements:
72
110
  - - ~>
73
111
  - !ruby/object:Gem::Version
74
- version: '1.0'
112
+ version: 0.5.0
75
113
  type: :runtime
76
114
  prerelease: false
77
115
  version_requirements: !ruby/object:Gem::Requirement
@@ -79,7 +117,23 @@ dependencies:
79
117
  requirements:
80
118
  - - ~>
81
119
  - !ruby/object:Gem::Version
82
- version: '1.0'
120
+ version: 0.5.0
121
+ - !ruby/object:Gem::Dependency
122
+ name: json
123
+ requirement: !ruby/object:Gem::Requirement
124
+ none: false
125
+ requirements:
126
+ - - ~>
127
+ - !ruby/object:Gem::Version
128
+ version: '1.8'
129
+ type: :runtime
130
+ prerelease: false
131
+ version_requirements: !ruby/object:Gem::Requirement
132
+ none: false
133
+ requirements:
134
+ - - ~>
135
+ - !ruby/object:Gem::Version
136
+ version: '1.8'
83
137
  - !ruby/object:Gem::Dependency
84
138
  name: simple_oauth
85
139
  requirement: !ruby/object:Gem::Requirement
@@ -87,7 +141,7 @@ dependencies:
87
141
  requirements:
88
142
  - - ~>
89
143
  - !ruby/object:Gem::Version
90
- version: '0.2'
144
+ version: 0.2.0
91
145
  type: :runtime
92
146
  prerelease: false
93
147
  version_requirements: !ruby/object:Gem::Requirement
@@ -95,7 +149,7 @@ dependencies:
95
149
  requirements:
96
150
  - - ~>
97
151
  - !ruby/object:Gem::Version
98
- version: '0.2'
152
+ version: 0.2.0
99
153
  - !ruby/object:Gem::Dependency
100
154
  name: bundler
101
155
  requirement: !ruby/object:Gem::Requirement
@@ -114,11 +168,7 @@ dependencies:
114
168
  version: '1.0'
115
169
  description: A Ruby interface to the Twitter API.
116
170
  email:
117
- - nunemaker@gmail.com
118
- - wynn.netherland@gmail.com
119
171
  - sferik@gmail.com
120
- - steve.richert@gmail.com
121
- - steve.agalloco@gmail.com
122
172
  executables: []
123
173
  extensions: []
124
174
  extra_rdoc_files: []
@@ -130,109 +180,98 @@ files:
130
180
  - README.md
131
181
  - Rakefile
132
182
  - twitter.gemspec
133
- - lib/twitter/action/favorite.rb
134
- - lib/twitter/action/follow.rb
135
- - lib/twitter/action/list_member_added.rb
136
- - lib/twitter/action/mention.rb
137
- - lib/twitter/action/reply.rb
138
- - lib/twitter/action/retweet.rb
139
- - lib/twitter/action/tweet.rb
140
- - lib/twitter/action_factory.rb
141
- - lib/twitter/api/arguments.rb
142
- - lib/twitter/api/direct_messages.rb
143
- - lib/twitter/api/favorites.rb
144
- - lib/twitter/api/friends_and_followers.rb
145
- - lib/twitter/api/help.rb
146
- - lib/twitter/api/lists.rb
147
- - lib/twitter/api/oauth.rb
148
- - lib/twitter/api/places_and_geo.rb
149
- - lib/twitter/api/saved_searches.rb
150
- - lib/twitter/api/search.rb
151
- - lib/twitter/api/spam_reporting.rb
152
- - lib/twitter/api/suggested_users.rb
153
- - lib/twitter/api/timelines.rb
154
- - lib/twitter/api/trends.rb
155
- - lib/twitter/api/tweets.rb
156
- - lib/twitter/api/undocumented.rb
157
- - lib/twitter/api/users.rb
158
- - lib/twitter/api/utils.rb
183
+ - lib/twitter/arguments.rb
159
184
  - lib/twitter/base.rb
160
185
  - lib/twitter/basic_user.rb
161
186
  - lib/twitter/client.rb
162
- - lib/twitter/configurable.rb
163
187
  - lib/twitter/configuration.rb
164
188
  - lib/twitter/core_ext/enumerable.rb
165
189
  - lib/twitter/core_ext/kernel.rb
166
190
  - lib/twitter/creatable.rb
167
191
  - lib/twitter/cursor.rb
168
- - lib/twitter/default.rb
169
192
  - lib/twitter/direct_message.rb
170
193
  - lib/twitter/entity/hashtag.rb
171
194
  - lib/twitter/entity/symbol.rb
172
- - lib/twitter/entity/url.rb
195
+ - lib/twitter/entity/uri.rb
173
196
  - lib/twitter/entity/user_mention.rb
174
197
  - lib/twitter/entity.rb
198
+ - lib/twitter/enumerable.rb
175
199
  - lib/twitter/error/already_favorited.rb
200
+ - lib/twitter/error/already_posted.rb
176
201
  - lib/twitter/error/already_retweeted.rb
177
202
  - lib/twitter/error/bad_gateway.rb
178
203
  - lib/twitter/error/bad_request.rb
179
- - lib/twitter/error/client_error.rb
180
204
  - lib/twitter/error/configuration_error.rb
181
- - lib/twitter/error/decode_error.rb
182
205
  - lib/twitter/error/forbidden.rb
183
206
  - lib/twitter/error/gateway_timeout.rb
184
- - lib/twitter/error/identity_map_key_error.rb
185
207
  - lib/twitter/error/internal_server_error.rb
186
208
  - lib/twitter/error/not_acceptable.rb
187
209
  - lib/twitter/error/not_found.rb
188
- - lib/twitter/error/server_error.rb
189
210
  - lib/twitter/error/service_unavailable.rb
190
211
  - lib/twitter/error/too_many_requests.rb
191
212
  - lib/twitter/error/unauthorized.rb
192
213
  - lib/twitter/error/unprocessable_entity.rb
193
214
  - lib/twitter/error.rb
194
- - lib/twitter/exceptable.rb
195
215
  - lib/twitter/factory.rb
196
216
  - lib/twitter/geo/point.rb
197
217
  - lib/twitter/geo/polygon.rb
198
218
  - lib/twitter/geo.rb
199
219
  - lib/twitter/geo_factory.rb
220
+ - lib/twitter/geo_results.rb
200
221
  - lib/twitter/identity.rb
201
- - lib/twitter/identity_map.rb
202
222
  - lib/twitter/language.rb
203
223
  - lib/twitter/list.rb
204
224
  - lib/twitter/media/photo.rb
205
225
  - lib/twitter/media_factory.rb
206
226
  - lib/twitter/metadata.rb
227
+ - lib/twitter/null_object.rb
207
228
  - lib/twitter/oembed.rb
208
229
  - lib/twitter/place.rb
209
230
  - lib/twitter/profile_banner.rb
210
231
  - lib/twitter/rate_limit.rb
211
232
  - lib/twitter/relationship.rb
212
- - lib/twitter/request/multipart_with_file.rb
213
- - lib/twitter/response/parse_json.rb
214
- - lib/twitter/response/raise_error.rb
233
+ - lib/twitter/rest/api/direct_messages.rb
234
+ - lib/twitter/rest/api/favorites.rb
235
+ - lib/twitter/rest/api/friends_and_followers.rb
236
+ - lib/twitter/rest/api/help.rb
237
+ - lib/twitter/rest/api/lists.rb
238
+ - lib/twitter/rest/api/oauth.rb
239
+ - lib/twitter/rest/api/places_and_geo.rb
240
+ - lib/twitter/rest/api/saved_searches.rb
241
+ - lib/twitter/rest/api/search.rb
242
+ - lib/twitter/rest/api/spam_reporting.rb
243
+ - lib/twitter/rest/api/suggested_users.rb
244
+ - lib/twitter/rest/api/timelines.rb
245
+ - lib/twitter/rest/api/trends.rb
246
+ - lib/twitter/rest/api/tweets.rb
247
+ - lib/twitter/rest/api/undocumented.rb
248
+ - lib/twitter/rest/api/users.rb
249
+ - lib/twitter/rest/api/utils.rb
250
+ - lib/twitter/rest/client.rb
251
+ - lib/twitter/rest/request/multipart_with_file.rb
252
+ - lib/twitter/rest/response/parse_json.rb
253
+ - lib/twitter/rest/response/raise_error.rb
215
254
  - lib/twitter/saved_search.rb
216
255
  - lib/twitter/search_results.rb
217
256
  - lib/twitter/settings.rb
218
257
  - lib/twitter/size.rb
219
258
  - lib/twitter/source_user.rb
259
+ - lib/twitter/streaming/client.rb
260
+ - lib/twitter/streaming/connection.rb
261
+ - lib/twitter/streaming/response.rb
220
262
  - lib/twitter/suggestion.rb
221
263
  - lib/twitter/target_user.rb
222
264
  - lib/twitter/token.rb
223
265
  - lib/twitter/trend.rb
266
+ - lib/twitter/trend_results.rb
224
267
  - lib/twitter/tweet.rb
225
268
  - lib/twitter/user.rb
226
269
  - lib/twitter/version.rb
227
270
  - lib/twitter.rb
228
- - spec/fixtures/about_me.json
229
- - spec/fixtures/activity_summary.json
230
271
  - spec/fixtures/already_favorited.json
272
+ - spec/fixtures/already_posted.json
231
273
  - spec/fixtures/already_retweeted.json
232
- - spec/fixtures/bad_gateway.json
233
- - spec/fixtures/bad_request.json
234
274
  - spec/fixtures/bearer_token.json
235
- - spec/fixtures/by_friends.json
236
275
  - spec/fixtures/category.json
237
276
  - spec/fixtures/configuration.json
238
277
  - spec/fixtures/contributees.json
@@ -240,18 +279,15 @@ files:
240
279
  - spec/fixtures/direct_message.json
241
280
  - spec/fixtures/direct_messages.json
242
281
  - spec/fixtures/empty.json
243
- - spec/fixtures/end_session.json
244
282
  - spec/fixtures/followers_list.json
245
283
  - spec/fixtures/followers_list2.json
246
284
  - spec/fixtures/following.json
247
- - spec/fixtures/forbidden.json
248
285
  - spec/fixtures/friends_list.json
249
286
  - spec/fixtures/friends_list2.json
250
287
  - spec/fixtures/friendships.json
251
288
  - spec/fixtures/ids.json
252
289
  - spec/fixtures/ids_list.json
253
290
  - spec/fixtures/ids_list2.json
254
- - spec/fixtures/internal_server_error.json
255
291
  - spec/fixtures/languages.json
256
292
  - spec/fixtures/list.json
257
293
  - spec/fixtures/lists.json
@@ -261,26 +297,22 @@ files:
261
297
  - spec/fixtures/members.json
262
298
  - spec/fixtures/memberships.json
263
299
  - spec/fixtures/memberships2.json
264
- - spec/fixtures/not_acceptable.json
265
300
  - spec/fixtures/not_following.json
266
301
  - spec/fixtures/not_found.json
267
302
  - spec/fixtures/oembed.json
268
303
  - spec/fixtures/ownerships.json
269
304
  - spec/fixtures/pbjt.gif
270
305
  - spec/fixtures/pengwynn.json
271
- - spec/fixtures/phoenix_search.phoenix
272
306
  - spec/fixtures/place.json
273
307
  - spec/fixtures/places.json
274
308
  - spec/fixtures/privacy.json
275
309
  - spec/fixtures/profile_banner.json
276
- - spec/fixtures/resolve.json
277
310
  - spec/fixtures/retweet.json
278
311
  - spec/fixtures/retweets.json
279
312
  - spec/fixtures/saved_search.json
280
313
  - spec/fixtures/saved_searches.json
281
314
  - spec/fixtures/search.json
282
315
  - spec/fixtures/search_malformed.json
283
- - spec/fixtures/service_unavailable.json
284
316
  - spec/fixtures/settings.json
285
317
  - spec/fixtures/sferik.json
286
318
  - spec/fixtures/status.json
@@ -289,71 +321,64 @@ files:
289
321
  - spec/fixtures/subscriptions2.json
290
322
  - spec/fixtures/suggestions.json
291
323
  - spec/fixtures/tos.json
292
- - spec/fixtures/totals.json
293
- - spec/fixtures/trends.json
294
- - spec/fixtures/unauthorized.json
324
+ - spec/fixtures/track_streaming.json
295
325
  - spec/fixtures/user_search.json
296
326
  - spec/fixtures/user_timeline.json
297
327
  - spec/fixtures/users.json
298
328
  - spec/fixtures/users_list.json
299
329
  - spec/fixtures/users_list2.json
300
- - spec/fixtures/video_facets.json
301
330
  - spec/fixtures/we_concept_bg2.png
302
331
  - spec/fixtures/wildcomet2.jpe
303
332
  - spec/helper.rb
304
- - spec/twitter/action/favorite_spec.rb
305
- - spec/twitter/action/follow_spec.rb
306
- - spec/twitter/action/list_member_added_spec.rb
307
- - spec/twitter/action/mention_spec.rb
308
- - spec/twitter/action/reply_spec.rb
309
- - spec/twitter/action/retweet_spec.rb
310
- - spec/twitter/action_factory_spec.rb
311
- - spec/twitter/action_spec.rb
312
- - spec/twitter/api/direct_messages_spec.rb
313
- - spec/twitter/api/favorites_spec.rb
314
- - spec/twitter/api/friends_and_followers_spec.rb
315
- - spec/twitter/api/geo_spec.rb
316
- - spec/twitter/api/help_spec.rb
317
- - spec/twitter/api/lists_spec.rb
318
- - spec/twitter/api/oauth_spec.rb
319
- - spec/twitter/api/saved_searches_spec.rb
320
- - spec/twitter/api/search_spec.rb
321
- - spec/twitter/api/spam_reporting_spec.rb
322
- - spec/twitter/api/suggested_users_spec.rb
323
- - spec/twitter/api/timelines_spec.rb
324
- - spec/twitter/api/trends_spec.rb
325
- - spec/twitter/api/tweets_spec.rb
326
- - spec/twitter/api/undocumented_spec.rb
327
- - spec/twitter/api/users_spec.rb
328
333
  - spec/twitter/base_spec.rb
329
334
  - spec/twitter/basic_user_spec.rb
330
- - spec/twitter/client_spec.rb
331
335
  - spec/twitter/configuration_spec.rb
332
336
  - spec/twitter/cursor_spec.rb
333
337
  - spec/twitter/direct_message_spec.rb
334
- - spec/twitter/error/client_error_spec.rb
335
- - spec/twitter/error/server_error_spec.rb
338
+ - spec/twitter/entity/uri_spec.rb
336
339
  - spec/twitter/error_spec.rb
337
340
  - spec/twitter/geo/point_spec.rb
338
341
  - spec/twitter/geo/polygon_spec.rb
339
342
  - spec/twitter/geo_factory_spec.rb
343
+ - spec/twitter/geo_results_spec.rb
340
344
  - spec/twitter/geo_spec.rb
341
345
  - spec/twitter/identifiable_spec.rb
342
346
  - spec/twitter/list_spec.rb
343
347
  - spec/twitter/media/photo_spec.rb
344
348
  - spec/twitter/media_factory_spec.rb
349
+ - spec/twitter/null_object_spec.rb
345
350
  - spec/twitter/oembed_spec.rb
346
351
  - spec/twitter/place_spec.rb
347
352
  - spec/twitter/profile_banner_spec.rb
348
353
  - spec/twitter/rate_limit_spec.rb
349
354
  - spec/twitter/relationship_spec.rb
355
+ - spec/twitter/rest/api/direct_messages_spec.rb
356
+ - spec/twitter/rest/api/favorites_spec.rb
357
+ - spec/twitter/rest/api/friends_and_followers_spec.rb
358
+ - spec/twitter/rest/api/geo_spec.rb
359
+ - spec/twitter/rest/api/help_spec.rb
360
+ - spec/twitter/rest/api/lists_spec.rb
361
+ - spec/twitter/rest/api/oauth_spec.rb
362
+ - spec/twitter/rest/api/saved_searches_spec.rb
363
+ - spec/twitter/rest/api/search_spec.rb
364
+ - spec/twitter/rest/api/spam_reporting_spec.rb
365
+ - spec/twitter/rest/api/suggested_users_spec.rb
366
+ - spec/twitter/rest/api/timelines_spec.rb
367
+ - spec/twitter/rest/api/trends_spec.rb
368
+ - spec/twitter/rest/api/tweets_spec.rb
369
+ - spec/twitter/rest/api/undocumented_spec.rb
370
+ - spec/twitter/rest/api/users_spec.rb
371
+ - spec/twitter/rest/client_spec.rb
350
372
  - spec/twitter/saved_search_spec.rb
351
373
  - spec/twitter/search_results_spec.rb
352
374
  - spec/twitter/settings_spec.rb
353
375
  - spec/twitter/size_spec.rb
354
376
  - spec/twitter/source_user_spec.rb
377
+ - spec/twitter/streaming/client_spec.rb
355
378
  - spec/twitter/suggestion_spec.rb
356
379
  - spec/twitter/target_user_spec.rb
380
+ - spec/twitter/token_spec.rb
381
+ - spec/twitter/trend_results_spec.rb
357
382
  - spec/twitter/trend_spec.rb
358
383
  - spec/twitter/tweet_spec.rb
359
384
  - spec/twitter/user_spec.rb
@@ -374,9 +399,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
374
399
  required_rubygems_version: !ruby/object:Gem::Requirement
375
400
  none: false
376
401
  requirements:
377
- - - ! '>='
402
+ - - ! '>'
378
403
  - !ruby/object:Gem::Version
379
- version: 1.3.5
404
+ version: 1.3.1
380
405
  requirements: []
381
406
  rubyforge_project:
382
407
  rubygems_version: 1.8.23
@@ -384,14 +409,10 @@ signing_key:
384
409
  specification_version: 3
385
410
  summary: A Ruby interface to the Twitter API.
386
411
  test_files:
387
- - spec/fixtures/about_me.json
388
- - spec/fixtures/activity_summary.json
389
412
  - spec/fixtures/already_favorited.json
413
+ - spec/fixtures/already_posted.json
390
414
  - spec/fixtures/already_retweeted.json
391
- - spec/fixtures/bad_gateway.json
392
- - spec/fixtures/bad_request.json
393
415
  - spec/fixtures/bearer_token.json
394
- - spec/fixtures/by_friends.json
395
416
  - spec/fixtures/category.json
396
417
  - spec/fixtures/configuration.json
397
418
  - spec/fixtures/contributees.json
@@ -399,18 +420,15 @@ test_files:
399
420
  - spec/fixtures/direct_message.json
400
421
  - spec/fixtures/direct_messages.json
401
422
  - spec/fixtures/empty.json
402
- - spec/fixtures/end_session.json
403
423
  - spec/fixtures/followers_list.json
404
424
  - spec/fixtures/followers_list2.json
405
425
  - spec/fixtures/following.json
406
- - spec/fixtures/forbidden.json
407
426
  - spec/fixtures/friends_list.json
408
427
  - spec/fixtures/friends_list2.json
409
428
  - spec/fixtures/friendships.json
410
429
  - spec/fixtures/ids.json
411
430
  - spec/fixtures/ids_list.json
412
431
  - spec/fixtures/ids_list2.json
413
- - spec/fixtures/internal_server_error.json
414
432
  - spec/fixtures/languages.json
415
433
  - spec/fixtures/list.json
416
434
  - spec/fixtures/lists.json
@@ -420,26 +438,22 @@ test_files:
420
438
  - spec/fixtures/members.json
421
439
  - spec/fixtures/memberships.json
422
440
  - spec/fixtures/memberships2.json
423
- - spec/fixtures/not_acceptable.json
424
441
  - spec/fixtures/not_following.json
425
442
  - spec/fixtures/not_found.json
426
443
  - spec/fixtures/oembed.json
427
444
  - spec/fixtures/ownerships.json
428
445
  - spec/fixtures/pbjt.gif
429
446
  - spec/fixtures/pengwynn.json
430
- - spec/fixtures/phoenix_search.phoenix
431
447
  - spec/fixtures/place.json
432
448
  - spec/fixtures/places.json
433
449
  - spec/fixtures/privacy.json
434
450
  - spec/fixtures/profile_banner.json
435
- - spec/fixtures/resolve.json
436
451
  - spec/fixtures/retweet.json
437
452
  - spec/fixtures/retweets.json
438
453
  - spec/fixtures/saved_search.json
439
454
  - spec/fixtures/saved_searches.json
440
455
  - spec/fixtures/search.json
441
456
  - spec/fixtures/search_malformed.json
442
- - spec/fixtures/service_unavailable.json
443
457
  - spec/fixtures/settings.json
444
458
  - spec/fixtures/sferik.json
445
459
  - spec/fixtures/status.json
@@ -448,71 +462,64 @@ test_files:
448
462
  - spec/fixtures/subscriptions2.json
449
463
  - spec/fixtures/suggestions.json
450
464
  - spec/fixtures/tos.json
451
- - spec/fixtures/totals.json
452
- - spec/fixtures/trends.json
453
- - spec/fixtures/unauthorized.json
465
+ - spec/fixtures/track_streaming.json
454
466
  - spec/fixtures/user_search.json
455
467
  - spec/fixtures/user_timeline.json
456
468
  - spec/fixtures/users.json
457
469
  - spec/fixtures/users_list.json
458
470
  - spec/fixtures/users_list2.json
459
- - spec/fixtures/video_facets.json
460
471
  - spec/fixtures/we_concept_bg2.png
461
472
  - spec/fixtures/wildcomet2.jpe
462
473
  - spec/helper.rb
463
- - spec/twitter/action/favorite_spec.rb
464
- - spec/twitter/action/follow_spec.rb
465
- - spec/twitter/action/list_member_added_spec.rb
466
- - spec/twitter/action/mention_spec.rb
467
- - spec/twitter/action/reply_spec.rb
468
- - spec/twitter/action/retweet_spec.rb
469
- - spec/twitter/action_factory_spec.rb
470
- - spec/twitter/action_spec.rb
471
- - spec/twitter/api/direct_messages_spec.rb
472
- - spec/twitter/api/favorites_spec.rb
473
- - spec/twitter/api/friends_and_followers_spec.rb
474
- - spec/twitter/api/geo_spec.rb
475
- - spec/twitter/api/help_spec.rb
476
- - spec/twitter/api/lists_spec.rb
477
- - spec/twitter/api/oauth_spec.rb
478
- - spec/twitter/api/saved_searches_spec.rb
479
- - spec/twitter/api/search_spec.rb
480
- - spec/twitter/api/spam_reporting_spec.rb
481
- - spec/twitter/api/suggested_users_spec.rb
482
- - spec/twitter/api/timelines_spec.rb
483
- - spec/twitter/api/trends_spec.rb
484
- - spec/twitter/api/tweets_spec.rb
485
- - spec/twitter/api/undocumented_spec.rb
486
- - spec/twitter/api/users_spec.rb
487
474
  - spec/twitter/base_spec.rb
488
475
  - spec/twitter/basic_user_spec.rb
489
- - spec/twitter/client_spec.rb
490
476
  - spec/twitter/configuration_spec.rb
491
477
  - spec/twitter/cursor_spec.rb
492
478
  - spec/twitter/direct_message_spec.rb
493
- - spec/twitter/error/client_error_spec.rb
494
- - spec/twitter/error/server_error_spec.rb
479
+ - spec/twitter/entity/uri_spec.rb
495
480
  - spec/twitter/error_spec.rb
496
481
  - spec/twitter/geo/point_spec.rb
497
482
  - spec/twitter/geo/polygon_spec.rb
498
483
  - spec/twitter/geo_factory_spec.rb
484
+ - spec/twitter/geo_results_spec.rb
499
485
  - spec/twitter/geo_spec.rb
500
486
  - spec/twitter/identifiable_spec.rb
501
487
  - spec/twitter/list_spec.rb
502
488
  - spec/twitter/media/photo_spec.rb
503
489
  - spec/twitter/media_factory_spec.rb
490
+ - spec/twitter/null_object_spec.rb
504
491
  - spec/twitter/oembed_spec.rb
505
492
  - spec/twitter/place_spec.rb
506
493
  - spec/twitter/profile_banner_spec.rb
507
494
  - spec/twitter/rate_limit_spec.rb
508
495
  - spec/twitter/relationship_spec.rb
496
+ - spec/twitter/rest/api/direct_messages_spec.rb
497
+ - spec/twitter/rest/api/favorites_spec.rb
498
+ - spec/twitter/rest/api/friends_and_followers_spec.rb
499
+ - spec/twitter/rest/api/geo_spec.rb
500
+ - spec/twitter/rest/api/help_spec.rb
501
+ - spec/twitter/rest/api/lists_spec.rb
502
+ - spec/twitter/rest/api/oauth_spec.rb
503
+ - spec/twitter/rest/api/saved_searches_spec.rb
504
+ - spec/twitter/rest/api/search_spec.rb
505
+ - spec/twitter/rest/api/spam_reporting_spec.rb
506
+ - spec/twitter/rest/api/suggested_users_spec.rb
507
+ - spec/twitter/rest/api/timelines_spec.rb
508
+ - spec/twitter/rest/api/trends_spec.rb
509
+ - spec/twitter/rest/api/tweets_spec.rb
510
+ - spec/twitter/rest/api/undocumented_spec.rb
511
+ - spec/twitter/rest/api/users_spec.rb
512
+ - spec/twitter/rest/client_spec.rb
509
513
  - spec/twitter/saved_search_spec.rb
510
514
  - spec/twitter/search_results_spec.rb
511
515
  - spec/twitter/settings_spec.rb
512
516
  - spec/twitter/size_spec.rb
513
517
  - spec/twitter/source_user_spec.rb
518
+ - spec/twitter/streaming/client_spec.rb
514
519
  - spec/twitter/suggestion_spec.rb
515
520
  - spec/twitter/target_user_spec.rb
521
+ - spec/twitter/token_spec.rb
522
+ - spec/twitter/trend_results_spec.rb
516
523
  - spec/twitter/trend_spec.rb
517
524
  - spec/twitter/tweet_spec.rb
518
525
  - spec/twitter/user_spec.rb