twitter 4.8.1 → 5.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/CHANGELOG.md +36 -0
- data/CONTRIBUTING.md +13 -15
- data/LICENSE.md +1 -1
- data/README.md +401 -261
- data/Rakefile +6 -0
- data/lib/twitter/arguments.rb +14 -0
- data/lib/twitter/base.rb +109 -89
- data/lib/twitter/client.rb +38 -115
- data/lib/twitter/configuration.rb +5 -2
- data/lib/twitter/core_ext/kernel.rb +5 -1
- data/lib/twitter/creatable.rb +7 -4
- data/lib/twitter/cursor.rb +57 -45
- data/lib/twitter/direct_message.rb +2 -11
- data/lib/twitter/entity/uri.rb +14 -0
- data/lib/twitter/enumerable.rb +15 -0
- data/lib/twitter/error/already_favorited.rb +1 -1
- data/lib/twitter/error/already_posted.rb +10 -0
- data/lib/twitter/error/already_retweeted.rb +1 -1
- data/lib/twitter/error/bad_gateway.rb +2 -3
- data/lib/twitter/error/bad_request.rb +2 -2
- data/lib/twitter/error/forbidden.rb +2 -2
- data/lib/twitter/error/gateway_timeout.rb +2 -3
- data/lib/twitter/error/internal_server_error.rb +2 -3
- data/lib/twitter/error/not_acceptable.rb +2 -2
- data/lib/twitter/error/not_found.rb +2 -2
- data/lib/twitter/error/service_unavailable.rb +2 -3
- data/lib/twitter/error/too_many_requests.rb +2 -2
- data/lib/twitter/error/unauthorized.rb +2 -2
- data/lib/twitter/error/unprocessable_entity.rb +2 -2
- data/lib/twitter/error.rb +65 -14
- data/lib/twitter/factory.rb +13 -12
- data/lib/twitter/geo.rb +2 -7
- data/lib/twitter/geo_factory.rb +11 -7
- data/lib/twitter/geo_results.rb +40 -0
- data/lib/twitter/identity.rb +4 -34
- data/lib/twitter/list.rb +21 -4
- data/lib/twitter/media/photo.rb +6 -4
- data/lib/twitter/media_factory.rb +11 -7
- data/lib/twitter/null_object.rb +25 -0
- data/lib/twitter/oembed.rb +3 -2
- data/lib/twitter/place.rb +15 -15
- data/lib/twitter/profile_banner.rb +3 -2
- data/lib/twitter/rate_limit.rb +4 -17
- data/lib/twitter/relationship.rb +2 -19
- data/lib/twitter/rest/api/direct_messages.rb +138 -0
- data/lib/twitter/rest/api/favorites.rb +115 -0
- data/lib/twitter/rest/api/friends_and_followers.rb +287 -0
- data/lib/twitter/rest/api/help.rb +58 -0
- data/lib/twitter/rest/api/lists.rb +498 -0
- data/lib/twitter/rest/api/oauth.rb +62 -0
- data/lib/twitter/rest/api/places_and_geo.rb +86 -0
- data/lib/twitter/rest/api/saved_searches.rb +93 -0
- data/lib/twitter/rest/api/search.rb +37 -0
- data/lib/twitter/rest/api/spam_reporting.rb +29 -0
- data/lib/twitter/rest/api/suggested_users.rb +51 -0
- data/lib/twitter/rest/api/timelines.rb +202 -0
- data/lib/twitter/rest/api/trends.rb +58 -0
- data/lib/twitter/rest/api/tweets.rb +291 -0
- data/lib/twitter/rest/api/undocumented.rb +52 -0
- data/lib/twitter/rest/api/users.rb +383 -0
- data/lib/twitter/rest/api/utils.rb +246 -0
- data/lib/twitter/rest/client.rb +175 -0
- data/lib/twitter/rest/request/multipart_with_file.rb +36 -0
- data/lib/twitter/rest/response/parse_error_json.rb +15 -0
- data/lib/twitter/rest/response/parse_json.rb +31 -0
- data/lib/twitter/{response → rest/response}/raise_error.rb +8 -11
- data/lib/twitter/search_results.rb +37 -21
- data/lib/twitter/settings.rb +1 -6
- data/lib/twitter/size.rb +2 -15
- data/lib/twitter/streaming/client.rb +89 -0
- data/lib/twitter/streaming/connection.rb +22 -0
- data/lib/twitter/streaming/event.rb +35 -0
- data/lib/twitter/streaming/friend_list.rb +13 -0
- data/lib/twitter/streaming/message_parser.rb +18 -0
- data/lib/twitter/streaming/response.rb +34 -0
- data/lib/twitter/suggestion.rb +5 -8
- data/lib/twitter/token.rb +11 -1
- data/lib/twitter/trend.rb +4 -8
- data/lib/twitter/trend_results.rb +65 -0
- data/lib/twitter/tweet.rb +43 -92
- data/lib/twitter/user.rb +72 -47
- data/lib/twitter/version.rb +4 -4
- data/lib/twitter.rb +4 -39
- data/spec/fixtures/already_posted.json +1 -0
- data/spec/fixtures/ids_list.json +1 -1
- data/spec/fixtures/ids_list2.json +1 -1
- data/spec/fixtures/request_token.txt +6 -0
- data/spec/fixtures/search.json +1 -1
- data/spec/fixtures/search_malformed.json +1 -1
- data/spec/fixtures/track_streaming.json +3 -0
- data/spec/fixtures/track_streaming_user.json +5 -0
- data/spec/helper.rb +8 -13
- data/spec/twitter/base_spec.rb +13 -103
- data/spec/twitter/basic_user_spec.rb +3 -3
- data/spec/twitter/configuration_spec.rb +1 -1
- data/spec/twitter/cursor_spec.rb +17 -35
- data/spec/twitter/direct_message_spec.rb +44 -11
- data/spec/twitter/entity/uri_spec.rb +75 -0
- data/spec/twitter/error_spec.rb +59 -11
- data/spec/twitter/geo/point_spec.rb +6 -6
- data/spec/twitter/geo/polygon_spec.rb +5 -5
- data/spec/twitter/geo_factory_spec.rb +4 -4
- data/spec/twitter/geo_results_spec.rb +35 -0
- data/spec/twitter/geo_spec.rb +6 -6
- data/spec/twitter/identifiable_spec.rb +5 -26
- data/spec/twitter/list_spec.rb +54 -11
- data/spec/twitter/media/photo_spec.rb +122 -6
- data/spec/twitter/media_factory_spec.rb +3 -3
- data/spec/twitter/null_object_spec.rb +27 -0
- data/spec/twitter/oembed_spec.rb +69 -45
- data/spec/twitter/place_spec.rb +84 -28
- data/spec/twitter/profile_banner_spec.rb +1 -1
- data/spec/twitter/rate_limit_spec.rb +8 -25
- data/spec/twitter/relationship_spec.rb +26 -12
- data/spec/twitter/{api → rest/api}/direct_messages_spec.rb +28 -15
- data/spec/twitter/{api → rest/api}/favorites_spec.rb +80 -7
- data/spec/twitter/{api → rest/api}/friends_and_followers_spec.rb +121 -152
- data/spec/twitter/{api → rest/api}/geo_spec.rb +9 -23
- data/spec/twitter/{api → rest/api}/help_spec.rb +6 -6
- data/spec/twitter/{api → rest/api}/lists_spec.rb +116 -95
- data/spec/twitter/{api → rest/api}/oauth_spec.rb +21 -10
- data/spec/twitter/{api → rest/api}/saved_searches_spec.rb +13 -13
- data/spec/twitter/{api → rest/api}/search_spec.rb +8 -9
- data/spec/twitter/{api → rest/api}/spam_reporting_spec.rb +3 -3
- data/spec/twitter/{api → rest/api}/suggested_users_spec.rb +5 -5
- data/spec/twitter/{api → rest/api}/timelines_spec.rb +9 -9
- data/spec/twitter/{api → rest/api}/trends_spec.rb +6 -6
- data/spec/twitter/rest/api/tweets_spec.rb +503 -0
- data/spec/twitter/{api → rest/api}/undocumented_spec.rb +19 -45
- data/spec/twitter/{api → rest/api}/users_spec.rb +64 -39
- data/spec/twitter/rest/client_spec.rb +193 -0
- data/spec/twitter/saved_search_spec.rb +14 -3
- data/spec/twitter/search_results_spec.rb +32 -45
- data/spec/twitter/settings_spec.rb +17 -6
- data/spec/twitter/size_spec.rb +5 -15
- data/spec/twitter/source_user_spec.rb +3 -3
- data/spec/twitter/streaming/client_spec.rb +92 -0
- data/spec/twitter/streaming/event_spec.rb +45 -0
- data/spec/twitter/suggestion_spec.rb +5 -15
- data/spec/twitter/target_user_spec.rb +3 -3
- data/spec/twitter/token_spec.rb +16 -0
- data/spec/twitter/trend_results_spec.rb +89 -0
- data/spec/twitter/trend_spec.rb +26 -13
- data/spec/twitter/tweet_spec.rb +137 -124
- data/spec/twitter/user_spec.rb +139 -80
- data/spec/twitter_spec.rb +0 -119
- data/twitter.gemspec +12 -6
- data.tar.gz.sig +0 -0
- metadata +197 -138
- metadata.gz.sig +0 -0
- data/lib/twitter/action/favorite.rb +0 -19
- data/lib/twitter/action/follow.rb +0 -30
- data/lib/twitter/action/list_member_added.rb +0 -39
- data/lib/twitter/action/mention.rb +0 -46
- data/lib/twitter/action/reply.rb +0 -27
- data/lib/twitter/action/retweet.rb +0 -27
- data/lib/twitter/action/tweet.rb +0 -20
- data/lib/twitter/action_factory.rb +0 -22
- data/lib/twitter/api/arguments.rb +0 -13
- data/lib/twitter/api/direct_messages.rb +0 -148
- data/lib/twitter/api/favorites.rb +0 -126
- data/lib/twitter/api/friends_and_followers.rb +0 -334
- data/lib/twitter/api/help.rb +0 -64
- data/lib/twitter/api/lists.rb +0 -618
- data/lib/twitter/api/oauth.rb +0 -44
- data/lib/twitter/api/places_and_geo.rb +0 -121
- data/lib/twitter/api/saved_searches.rb +0 -99
- data/lib/twitter/api/search.rb +0 -37
- data/lib/twitter/api/spam_reporting.rb +0 -30
- data/lib/twitter/api/suggested_users.rb +0 -55
- data/lib/twitter/api/timelines.rb +0 -214
- data/lib/twitter/api/trends.rb +0 -63
- data/lib/twitter/api/tweets.rb +0 -304
- data/lib/twitter/api/undocumented.rb +0 -97
- data/lib/twitter/api/users.rb +0 -439
- data/lib/twitter/api/utils.rb +0 -187
- data/lib/twitter/configurable.rb +0 -96
- data/lib/twitter/default.rb +0 -102
- data/lib/twitter/entity/url.rb +0 -9
- data/lib/twitter/error/client_error.rb +0 -35
- data/lib/twitter/error/decode_error.rb +0 -9
- data/lib/twitter/error/identity_map_key_error.rb +0 -9
- data/lib/twitter/error/server_error.rb +0 -28
- data/lib/twitter/exceptable.rb +0 -36
- data/lib/twitter/identity_map.rb +0 -22
- data/lib/twitter/request/multipart_with_file.rb +0 -34
- data/lib/twitter/response/parse_json.rb +0 -25
- data/spec/fixtures/about_me.json +0 -1
- data/spec/fixtures/activity_summary.json +0 -1
- data/spec/fixtures/bad_gateway.json +0 -1
- data/spec/fixtures/bad_request.json +0 -1
- data/spec/fixtures/by_friends.json +0 -1
- data/spec/fixtures/end_session.json +0 -1
- data/spec/fixtures/forbidden.json +0 -1
- data/spec/fixtures/internal_server_error.json +0 -1
- data/spec/fixtures/not_acceptable.json +0 -1
- data/spec/fixtures/phoenix_search.phoenix +0 -1
- data/spec/fixtures/resolve.json +0 -1
- data/spec/fixtures/service_unavailable.json +0 -1
- data/spec/fixtures/totals.json +0 -1
- data/spec/fixtures/trends.json +0 -1
- data/spec/fixtures/unauthorized.json +0 -1
- data/spec/fixtures/video_facets.json +0 -1
- data/spec/twitter/action/favorite_spec.rb +0 -29
- data/spec/twitter/action/follow_spec.rb +0 -29
- data/spec/twitter/action/list_member_added_spec.rb +0 -41
- data/spec/twitter/action/mention_spec.rb +0 -52
- data/spec/twitter/action/reply_spec.rb +0 -41
- data/spec/twitter/action/retweet_spec.rb +0 -41
- data/spec/twitter/action_factory_spec.rb +0 -35
- data/spec/twitter/action_spec.rb +0 -16
- data/spec/twitter/api/tweets_spec.rb +0 -285
- data/spec/twitter/client_spec.rb +0 -223
- data/spec/twitter/error/client_error_spec.rb +0 -23
- data/spec/twitter/error/server_error_spec.rb +0 -20
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
|
+
version: 5.0.0
|
|
5
5
|
prerelease:
|
|
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,62 @@ cert_chain:
|
|
|
40
40
|
U0xxV3ZRUnNCbHlwSGZoczZKSnVMbHlaUEdoVTNSL3YKU2YzbFZLcEJDV2dS
|
|
41
41
|
cEdUdnk0NVhWcEIrNTl5MzNQSm1FdVExUFRFT1l2UXlhbzlVS01BQWFBTi83
|
|
42
42
|
cVdRdGpsMApobHc9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
|
|
43
|
-
date: 2013-
|
|
43
|
+
date: 2013-11-18 00:00:00.000000000 Z
|
|
44
44
|
dependencies:
|
|
45
45
|
- !ruby/object:Gem::Dependency
|
|
46
|
-
name:
|
|
46
|
+
name: buftok
|
|
47
|
+
requirement: !ruby/object:Gem::Requirement
|
|
48
|
+
none: false
|
|
49
|
+
requirements:
|
|
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: descendants_tracker
|
|
63
|
+
requirement: !ruby/object:Gem::Requirement
|
|
64
|
+
none: false
|
|
65
|
+
requirements:
|
|
66
|
+
- - ~>
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: 0.0.1
|
|
69
|
+
type: :runtime
|
|
70
|
+
prerelease: false
|
|
71
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
72
|
+
none: false
|
|
73
|
+
requirements:
|
|
74
|
+
- - ~>
|
|
75
|
+
- !ruby/object:Gem::Version
|
|
76
|
+
version: 0.0.1
|
|
77
|
+
- !ruby/object:Gem::Dependency
|
|
78
|
+
name: equalizer
|
|
47
79
|
requirement: !ruby/object:Gem::Requirement
|
|
48
80
|
none: false
|
|
49
81
|
requirements:
|
|
50
82
|
- - ~>
|
|
83
|
+
- !ruby/object:Gem::Version
|
|
84
|
+
version: 0.0.7
|
|
85
|
+
type: :runtime
|
|
86
|
+
prerelease: false
|
|
87
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
88
|
+
none: false
|
|
89
|
+
requirements:
|
|
90
|
+
- - ~>
|
|
91
|
+
- !ruby/object:Gem::Version
|
|
92
|
+
version: 0.0.7
|
|
93
|
+
- !ruby/object:Gem::Dependency
|
|
94
|
+
name: faraday
|
|
95
|
+
requirement: !ruby/object:Gem::Requirement
|
|
96
|
+
none: false
|
|
97
|
+
requirements:
|
|
98
|
+
- - ! '>='
|
|
51
99
|
- !ruby/object:Gem::Version
|
|
52
100
|
version: '0.8'
|
|
53
101
|
- - <
|
|
@@ -58,20 +106,20 @@ dependencies:
|
|
|
58
106
|
version_requirements: !ruby/object:Gem::Requirement
|
|
59
107
|
none: false
|
|
60
108
|
requirements:
|
|
61
|
-
- -
|
|
109
|
+
- - ! '>='
|
|
62
110
|
- !ruby/object:Gem::Version
|
|
63
111
|
version: '0.8'
|
|
64
112
|
- - <
|
|
65
113
|
- !ruby/object:Gem::Version
|
|
66
114
|
version: '0.10'
|
|
67
115
|
- !ruby/object:Gem::Dependency
|
|
68
|
-
name:
|
|
116
|
+
name: http
|
|
69
117
|
requirement: !ruby/object:Gem::Requirement
|
|
70
118
|
none: false
|
|
71
119
|
requirements:
|
|
72
120
|
- - ~>
|
|
73
121
|
- !ruby/object:Gem::Version
|
|
74
|
-
version:
|
|
122
|
+
version: 0.5.0
|
|
75
123
|
type: :runtime
|
|
76
124
|
prerelease: false
|
|
77
125
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -79,7 +127,55 @@ dependencies:
|
|
|
79
127
|
requirements:
|
|
80
128
|
- - ~>
|
|
81
129
|
- !ruby/object:Gem::Version
|
|
82
|
-
version:
|
|
130
|
+
version: 0.5.0
|
|
131
|
+
- !ruby/object:Gem::Dependency
|
|
132
|
+
name: http_parser.rb
|
|
133
|
+
requirement: !ruby/object:Gem::Requirement
|
|
134
|
+
none: false
|
|
135
|
+
requirements:
|
|
136
|
+
- - ~>
|
|
137
|
+
- !ruby/object:Gem::Version
|
|
138
|
+
version: 0.5.0
|
|
139
|
+
type: :runtime
|
|
140
|
+
prerelease: false
|
|
141
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
142
|
+
none: false
|
|
143
|
+
requirements:
|
|
144
|
+
- - ~>
|
|
145
|
+
- !ruby/object:Gem::Version
|
|
146
|
+
version: 0.5.0
|
|
147
|
+
- !ruby/object:Gem::Dependency
|
|
148
|
+
name: json
|
|
149
|
+
requirement: !ruby/object:Gem::Requirement
|
|
150
|
+
none: false
|
|
151
|
+
requirements:
|
|
152
|
+
- - ~>
|
|
153
|
+
- !ruby/object:Gem::Version
|
|
154
|
+
version: '1.8'
|
|
155
|
+
type: :runtime
|
|
156
|
+
prerelease: false
|
|
157
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
158
|
+
none: false
|
|
159
|
+
requirements:
|
|
160
|
+
- - ~>
|
|
161
|
+
- !ruby/object:Gem::Version
|
|
162
|
+
version: '1.8'
|
|
163
|
+
- !ruby/object:Gem::Dependency
|
|
164
|
+
name: memoizable
|
|
165
|
+
requirement: !ruby/object:Gem::Requirement
|
|
166
|
+
none: false
|
|
167
|
+
requirements:
|
|
168
|
+
- - ~>
|
|
169
|
+
- !ruby/object:Gem::Version
|
|
170
|
+
version: 0.2.0
|
|
171
|
+
type: :runtime
|
|
172
|
+
prerelease: false
|
|
173
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
174
|
+
none: false
|
|
175
|
+
requirements:
|
|
176
|
+
- - ~>
|
|
177
|
+
- !ruby/object:Gem::Version
|
|
178
|
+
version: 0.2.0
|
|
83
179
|
- !ruby/object:Gem::Dependency
|
|
84
180
|
name: simple_oauth
|
|
85
181
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -87,7 +183,7 @@ dependencies:
|
|
|
87
183
|
requirements:
|
|
88
184
|
- - ~>
|
|
89
185
|
- !ruby/object:Gem::Version
|
|
90
|
-
version:
|
|
186
|
+
version: 0.2.0
|
|
91
187
|
type: :runtime
|
|
92
188
|
prerelease: false
|
|
93
189
|
version_requirements: !ruby/object:Gem::Requirement
|
|
@@ -95,7 +191,7 @@ dependencies:
|
|
|
95
191
|
requirements:
|
|
96
192
|
- - ~>
|
|
97
193
|
- !ruby/object:Gem::Version
|
|
98
|
-
version:
|
|
194
|
+
version: 0.2.0
|
|
99
195
|
- !ruby/object:Gem::Dependency
|
|
100
196
|
name: bundler
|
|
101
197
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -114,11 +210,7 @@ dependencies:
|
|
|
114
210
|
version: '1.0'
|
|
115
211
|
description: A Ruby interface to the Twitter API.
|
|
116
212
|
email:
|
|
117
|
-
- nunemaker@gmail.com
|
|
118
|
-
- wynn.netherland@gmail.com
|
|
119
213
|
- sferik@gmail.com
|
|
120
|
-
- steve.richert@gmail.com
|
|
121
|
-
- steve.agalloco@gmail.com
|
|
122
214
|
executables: []
|
|
123
215
|
extensions: []
|
|
124
216
|
extra_rdoc_files: []
|
|
@@ -130,109 +222,102 @@ files:
|
|
|
130
222
|
- README.md
|
|
131
223
|
- Rakefile
|
|
132
224
|
- twitter.gemspec
|
|
133
|
-
- lib/twitter/
|
|
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
|
|
225
|
+
- lib/twitter/arguments.rb
|
|
159
226
|
- lib/twitter/base.rb
|
|
160
227
|
- lib/twitter/basic_user.rb
|
|
161
228
|
- lib/twitter/client.rb
|
|
162
|
-
- lib/twitter/configurable.rb
|
|
163
229
|
- lib/twitter/configuration.rb
|
|
164
230
|
- lib/twitter/core_ext/enumerable.rb
|
|
165
231
|
- lib/twitter/core_ext/kernel.rb
|
|
166
232
|
- lib/twitter/creatable.rb
|
|
167
233
|
- lib/twitter/cursor.rb
|
|
168
|
-
- lib/twitter/default.rb
|
|
169
234
|
- lib/twitter/direct_message.rb
|
|
170
235
|
- lib/twitter/entity/hashtag.rb
|
|
171
236
|
- lib/twitter/entity/symbol.rb
|
|
172
|
-
- lib/twitter/entity/
|
|
237
|
+
- lib/twitter/entity/uri.rb
|
|
173
238
|
- lib/twitter/entity/user_mention.rb
|
|
174
239
|
- lib/twitter/entity.rb
|
|
240
|
+
- lib/twitter/enumerable.rb
|
|
175
241
|
- lib/twitter/error/already_favorited.rb
|
|
242
|
+
- lib/twitter/error/already_posted.rb
|
|
176
243
|
- lib/twitter/error/already_retweeted.rb
|
|
177
244
|
- lib/twitter/error/bad_gateway.rb
|
|
178
245
|
- lib/twitter/error/bad_request.rb
|
|
179
|
-
- lib/twitter/error/client_error.rb
|
|
180
246
|
- lib/twitter/error/configuration_error.rb
|
|
181
|
-
- lib/twitter/error/decode_error.rb
|
|
182
247
|
- lib/twitter/error/forbidden.rb
|
|
183
248
|
- lib/twitter/error/gateway_timeout.rb
|
|
184
|
-
- lib/twitter/error/identity_map_key_error.rb
|
|
185
249
|
- lib/twitter/error/internal_server_error.rb
|
|
186
250
|
- lib/twitter/error/not_acceptable.rb
|
|
187
251
|
- lib/twitter/error/not_found.rb
|
|
188
|
-
- lib/twitter/error/server_error.rb
|
|
189
252
|
- lib/twitter/error/service_unavailable.rb
|
|
190
253
|
- lib/twitter/error/too_many_requests.rb
|
|
191
254
|
- lib/twitter/error/unauthorized.rb
|
|
192
255
|
- lib/twitter/error/unprocessable_entity.rb
|
|
193
256
|
- lib/twitter/error.rb
|
|
194
|
-
- lib/twitter/exceptable.rb
|
|
195
257
|
- lib/twitter/factory.rb
|
|
196
258
|
- lib/twitter/geo/point.rb
|
|
197
259
|
- lib/twitter/geo/polygon.rb
|
|
198
260
|
- lib/twitter/geo.rb
|
|
199
261
|
- lib/twitter/geo_factory.rb
|
|
262
|
+
- lib/twitter/geo_results.rb
|
|
200
263
|
- lib/twitter/identity.rb
|
|
201
|
-
- lib/twitter/identity_map.rb
|
|
202
264
|
- lib/twitter/language.rb
|
|
203
265
|
- lib/twitter/list.rb
|
|
204
266
|
- lib/twitter/media/photo.rb
|
|
205
267
|
- lib/twitter/media_factory.rb
|
|
206
268
|
- lib/twitter/metadata.rb
|
|
269
|
+
- lib/twitter/null_object.rb
|
|
207
270
|
- lib/twitter/oembed.rb
|
|
208
271
|
- lib/twitter/place.rb
|
|
209
272
|
- lib/twitter/profile_banner.rb
|
|
210
273
|
- lib/twitter/rate_limit.rb
|
|
211
274
|
- lib/twitter/relationship.rb
|
|
212
|
-
- lib/twitter/
|
|
213
|
-
- lib/twitter/
|
|
214
|
-
- lib/twitter/
|
|
275
|
+
- lib/twitter/rest/api/direct_messages.rb
|
|
276
|
+
- lib/twitter/rest/api/favorites.rb
|
|
277
|
+
- lib/twitter/rest/api/friends_and_followers.rb
|
|
278
|
+
- lib/twitter/rest/api/help.rb
|
|
279
|
+
- lib/twitter/rest/api/lists.rb
|
|
280
|
+
- lib/twitter/rest/api/oauth.rb
|
|
281
|
+
- lib/twitter/rest/api/places_and_geo.rb
|
|
282
|
+
- lib/twitter/rest/api/saved_searches.rb
|
|
283
|
+
- lib/twitter/rest/api/search.rb
|
|
284
|
+
- lib/twitter/rest/api/spam_reporting.rb
|
|
285
|
+
- lib/twitter/rest/api/suggested_users.rb
|
|
286
|
+
- lib/twitter/rest/api/timelines.rb
|
|
287
|
+
- lib/twitter/rest/api/trends.rb
|
|
288
|
+
- lib/twitter/rest/api/tweets.rb
|
|
289
|
+
- lib/twitter/rest/api/undocumented.rb
|
|
290
|
+
- lib/twitter/rest/api/users.rb
|
|
291
|
+
- lib/twitter/rest/api/utils.rb
|
|
292
|
+
- lib/twitter/rest/client.rb
|
|
293
|
+
- lib/twitter/rest/request/multipart_with_file.rb
|
|
294
|
+
- lib/twitter/rest/response/parse_error_json.rb
|
|
295
|
+
- lib/twitter/rest/response/parse_json.rb
|
|
296
|
+
- lib/twitter/rest/response/raise_error.rb
|
|
215
297
|
- lib/twitter/saved_search.rb
|
|
216
298
|
- lib/twitter/search_results.rb
|
|
217
299
|
- lib/twitter/settings.rb
|
|
218
300
|
- lib/twitter/size.rb
|
|
219
301
|
- lib/twitter/source_user.rb
|
|
302
|
+
- lib/twitter/streaming/client.rb
|
|
303
|
+
- lib/twitter/streaming/connection.rb
|
|
304
|
+
- lib/twitter/streaming/event.rb
|
|
305
|
+
- lib/twitter/streaming/friend_list.rb
|
|
306
|
+
- lib/twitter/streaming/message_parser.rb
|
|
307
|
+
- lib/twitter/streaming/response.rb
|
|
220
308
|
- lib/twitter/suggestion.rb
|
|
221
309
|
- lib/twitter/target_user.rb
|
|
222
310
|
- lib/twitter/token.rb
|
|
223
311
|
- lib/twitter/trend.rb
|
|
312
|
+
- lib/twitter/trend_results.rb
|
|
224
313
|
- lib/twitter/tweet.rb
|
|
225
314
|
- lib/twitter/user.rb
|
|
226
315
|
- lib/twitter/version.rb
|
|
227
316
|
- lib/twitter.rb
|
|
228
|
-
- spec/fixtures/about_me.json
|
|
229
|
-
- spec/fixtures/activity_summary.json
|
|
230
317
|
- spec/fixtures/already_favorited.json
|
|
318
|
+
- spec/fixtures/already_posted.json
|
|
231
319
|
- spec/fixtures/already_retweeted.json
|
|
232
|
-
- spec/fixtures/bad_gateway.json
|
|
233
|
-
- spec/fixtures/bad_request.json
|
|
234
320
|
- spec/fixtures/bearer_token.json
|
|
235
|
-
- spec/fixtures/by_friends.json
|
|
236
321
|
- spec/fixtures/category.json
|
|
237
322
|
- spec/fixtures/configuration.json
|
|
238
323
|
- spec/fixtures/contributees.json
|
|
@@ -240,18 +325,15 @@ files:
|
|
|
240
325
|
- spec/fixtures/direct_message.json
|
|
241
326
|
- spec/fixtures/direct_messages.json
|
|
242
327
|
- spec/fixtures/empty.json
|
|
243
|
-
- spec/fixtures/end_session.json
|
|
244
328
|
- spec/fixtures/followers_list.json
|
|
245
329
|
- spec/fixtures/followers_list2.json
|
|
246
330
|
- spec/fixtures/following.json
|
|
247
|
-
- spec/fixtures/forbidden.json
|
|
248
331
|
- spec/fixtures/friends_list.json
|
|
249
332
|
- spec/fixtures/friends_list2.json
|
|
250
333
|
- spec/fixtures/friendships.json
|
|
251
334
|
- spec/fixtures/ids.json
|
|
252
335
|
- spec/fixtures/ids_list.json
|
|
253
336
|
- spec/fixtures/ids_list2.json
|
|
254
|
-
- spec/fixtures/internal_server_error.json
|
|
255
337
|
- spec/fixtures/languages.json
|
|
256
338
|
- spec/fixtures/list.json
|
|
257
339
|
- spec/fixtures/lists.json
|
|
@@ -261,26 +343,23 @@ files:
|
|
|
261
343
|
- spec/fixtures/members.json
|
|
262
344
|
- spec/fixtures/memberships.json
|
|
263
345
|
- spec/fixtures/memberships2.json
|
|
264
|
-
- spec/fixtures/not_acceptable.json
|
|
265
346
|
- spec/fixtures/not_following.json
|
|
266
347
|
- spec/fixtures/not_found.json
|
|
267
348
|
- spec/fixtures/oembed.json
|
|
268
349
|
- spec/fixtures/ownerships.json
|
|
269
350
|
- spec/fixtures/pbjt.gif
|
|
270
351
|
- spec/fixtures/pengwynn.json
|
|
271
|
-
- spec/fixtures/phoenix_search.phoenix
|
|
272
352
|
- spec/fixtures/place.json
|
|
273
353
|
- spec/fixtures/places.json
|
|
274
354
|
- spec/fixtures/privacy.json
|
|
275
355
|
- spec/fixtures/profile_banner.json
|
|
276
|
-
- spec/fixtures/
|
|
356
|
+
- spec/fixtures/request_token.txt
|
|
277
357
|
- spec/fixtures/retweet.json
|
|
278
358
|
- spec/fixtures/retweets.json
|
|
279
359
|
- spec/fixtures/saved_search.json
|
|
280
360
|
- spec/fixtures/saved_searches.json
|
|
281
361
|
- spec/fixtures/search.json
|
|
282
362
|
- spec/fixtures/search_malformed.json
|
|
283
|
-
- spec/fixtures/service_unavailable.json
|
|
284
363
|
- spec/fixtures/settings.json
|
|
285
364
|
- spec/fixtures/sferik.json
|
|
286
365
|
- spec/fixtures/status.json
|
|
@@ -289,71 +368,66 @@ files:
|
|
|
289
368
|
- spec/fixtures/subscriptions2.json
|
|
290
369
|
- spec/fixtures/suggestions.json
|
|
291
370
|
- spec/fixtures/tos.json
|
|
292
|
-
- spec/fixtures/
|
|
293
|
-
- spec/fixtures/
|
|
294
|
-
- spec/fixtures/unauthorized.json
|
|
371
|
+
- spec/fixtures/track_streaming.json
|
|
372
|
+
- spec/fixtures/track_streaming_user.json
|
|
295
373
|
- spec/fixtures/user_search.json
|
|
296
374
|
- spec/fixtures/user_timeline.json
|
|
297
375
|
- spec/fixtures/users.json
|
|
298
376
|
- spec/fixtures/users_list.json
|
|
299
377
|
- spec/fixtures/users_list2.json
|
|
300
|
-
- spec/fixtures/video_facets.json
|
|
301
378
|
- spec/fixtures/we_concept_bg2.png
|
|
302
379
|
- spec/fixtures/wildcomet2.jpe
|
|
303
380
|
- 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
381
|
- spec/twitter/base_spec.rb
|
|
329
382
|
- spec/twitter/basic_user_spec.rb
|
|
330
|
-
- spec/twitter/client_spec.rb
|
|
331
383
|
- spec/twitter/configuration_spec.rb
|
|
332
384
|
- spec/twitter/cursor_spec.rb
|
|
333
385
|
- spec/twitter/direct_message_spec.rb
|
|
334
|
-
- spec/twitter/
|
|
335
|
-
- spec/twitter/error/server_error_spec.rb
|
|
386
|
+
- spec/twitter/entity/uri_spec.rb
|
|
336
387
|
- spec/twitter/error_spec.rb
|
|
337
388
|
- spec/twitter/geo/point_spec.rb
|
|
338
389
|
- spec/twitter/geo/polygon_spec.rb
|
|
339
390
|
- spec/twitter/geo_factory_spec.rb
|
|
391
|
+
- spec/twitter/geo_results_spec.rb
|
|
340
392
|
- spec/twitter/geo_spec.rb
|
|
341
393
|
- spec/twitter/identifiable_spec.rb
|
|
342
394
|
- spec/twitter/list_spec.rb
|
|
343
395
|
- spec/twitter/media/photo_spec.rb
|
|
344
396
|
- spec/twitter/media_factory_spec.rb
|
|
397
|
+
- spec/twitter/null_object_spec.rb
|
|
345
398
|
- spec/twitter/oembed_spec.rb
|
|
346
399
|
- spec/twitter/place_spec.rb
|
|
347
400
|
- spec/twitter/profile_banner_spec.rb
|
|
348
401
|
- spec/twitter/rate_limit_spec.rb
|
|
349
402
|
- spec/twitter/relationship_spec.rb
|
|
403
|
+
- spec/twitter/rest/api/direct_messages_spec.rb
|
|
404
|
+
- spec/twitter/rest/api/favorites_spec.rb
|
|
405
|
+
- spec/twitter/rest/api/friends_and_followers_spec.rb
|
|
406
|
+
- spec/twitter/rest/api/geo_spec.rb
|
|
407
|
+
- spec/twitter/rest/api/help_spec.rb
|
|
408
|
+
- spec/twitter/rest/api/lists_spec.rb
|
|
409
|
+
- spec/twitter/rest/api/oauth_spec.rb
|
|
410
|
+
- spec/twitter/rest/api/saved_searches_spec.rb
|
|
411
|
+
- spec/twitter/rest/api/search_spec.rb
|
|
412
|
+
- spec/twitter/rest/api/spam_reporting_spec.rb
|
|
413
|
+
- spec/twitter/rest/api/suggested_users_spec.rb
|
|
414
|
+
- spec/twitter/rest/api/timelines_spec.rb
|
|
415
|
+
- spec/twitter/rest/api/trends_spec.rb
|
|
416
|
+
- spec/twitter/rest/api/tweets_spec.rb
|
|
417
|
+
- spec/twitter/rest/api/undocumented_spec.rb
|
|
418
|
+
- spec/twitter/rest/api/users_spec.rb
|
|
419
|
+
- spec/twitter/rest/client_spec.rb
|
|
350
420
|
- spec/twitter/saved_search_spec.rb
|
|
351
421
|
- spec/twitter/search_results_spec.rb
|
|
352
422
|
- spec/twitter/settings_spec.rb
|
|
353
423
|
- spec/twitter/size_spec.rb
|
|
354
424
|
- spec/twitter/source_user_spec.rb
|
|
425
|
+
- spec/twitter/streaming/client_spec.rb
|
|
426
|
+
- spec/twitter/streaming/event_spec.rb
|
|
355
427
|
- spec/twitter/suggestion_spec.rb
|
|
356
428
|
- spec/twitter/target_user_spec.rb
|
|
429
|
+
- spec/twitter/token_spec.rb
|
|
430
|
+
- spec/twitter/trend_results_spec.rb
|
|
357
431
|
- spec/twitter/trend_spec.rb
|
|
358
432
|
- spec/twitter/tweet_spec.rb
|
|
359
433
|
- spec/twitter/user_spec.rb
|
|
@@ -384,14 +458,10 @@ signing_key:
|
|
|
384
458
|
specification_version: 3
|
|
385
459
|
summary: A Ruby interface to the Twitter API.
|
|
386
460
|
test_files:
|
|
387
|
-
- spec/fixtures/about_me.json
|
|
388
|
-
- spec/fixtures/activity_summary.json
|
|
389
461
|
- spec/fixtures/already_favorited.json
|
|
462
|
+
- spec/fixtures/already_posted.json
|
|
390
463
|
- spec/fixtures/already_retweeted.json
|
|
391
|
-
- spec/fixtures/bad_gateway.json
|
|
392
|
-
- spec/fixtures/bad_request.json
|
|
393
464
|
- spec/fixtures/bearer_token.json
|
|
394
|
-
- spec/fixtures/by_friends.json
|
|
395
465
|
- spec/fixtures/category.json
|
|
396
466
|
- spec/fixtures/configuration.json
|
|
397
467
|
- spec/fixtures/contributees.json
|
|
@@ -399,18 +469,15 @@ test_files:
|
|
|
399
469
|
- spec/fixtures/direct_message.json
|
|
400
470
|
- spec/fixtures/direct_messages.json
|
|
401
471
|
- spec/fixtures/empty.json
|
|
402
|
-
- spec/fixtures/end_session.json
|
|
403
472
|
- spec/fixtures/followers_list.json
|
|
404
473
|
- spec/fixtures/followers_list2.json
|
|
405
474
|
- spec/fixtures/following.json
|
|
406
|
-
- spec/fixtures/forbidden.json
|
|
407
475
|
- spec/fixtures/friends_list.json
|
|
408
476
|
- spec/fixtures/friends_list2.json
|
|
409
477
|
- spec/fixtures/friendships.json
|
|
410
478
|
- spec/fixtures/ids.json
|
|
411
479
|
- spec/fixtures/ids_list.json
|
|
412
480
|
- spec/fixtures/ids_list2.json
|
|
413
|
-
- spec/fixtures/internal_server_error.json
|
|
414
481
|
- spec/fixtures/languages.json
|
|
415
482
|
- spec/fixtures/list.json
|
|
416
483
|
- spec/fixtures/lists.json
|
|
@@ -420,26 +487,23 @@ test_files:
|
|
|
420
487
|
- spec/fixtures/members.json
|
|
421
488
|
- spec/fixtures/memberships.json
|
|
422
489
|
- spec/fixtures/memberships2.json
|
|
423
|
-
- spec/fixtures/not_acceptable.json
|
|
424
490
|
- spec/fixtures/not_following.json
|
|
425
491
|
- spec/fixtures/not_found.json
|
|
426
492
|
- spec/fixtures/oembed.json
|
|
427
493
|
- spec/fixtures/ownerships.json
|
|
428
494
|
- spec/fixtures/pbjt.gif
|
|
429
495
|
- spec/fixtures/pengwynn.json
|
|
430
|
-
- spec/fixtures/phoenix_search.phoenix
|
|
431
496
|
- spec/fixtures/place.json
|
|
432
497
|
- spec/fixtures/places.json
|
|
433
498
|
- spec/fixtures/privacy.json
|
|
434
499
|
- spec/fixtures/profile_banner.json
|
|
435
|
-
- spec/fixtures/
|
|
500
|
+
- spec/fixtures/request_token.txt
|
|
436
501
|
- spec/fixtures/retweet.json
|
|
437
502
|
- spec/fixtures/retweets.json
|
|
438
503
|
- spec/fixtures/saved_search.json
|
|
439
504
|
- spec/fixtures/saved_searches.json
|
|
440
505
|
- spec/fixtures/search.json
|
|
441
506
|
- spec/fixtures/search_malformed.json
|
|
442
|
-
- spec/fixtures/service_unavailable.json
|
|
443
507
|
- spec/fixtures/settings.json
|
|
444
508
|
- spec/fixtures/sferik.json
|
|
445
509
|
- spec/fixtures/status.json
|
|
@@ -448,71 +512,66 @@ test_files:
|
|
|
448
512
|
- spec/fixtures/subscriptions2.json
|
|
449
513
|
- spec/fixtures/suggestions.json
|
|
450
514
|
- spec/fixtures/tos.json
|
|
451
|
-
- spec/fixtures/
|
|
452
|
-
- spec/fixtures/
|
|
453
|
-
- spec/fixtures/unauthorized.json
|
|
515
|
+
- spec/fixtures/track_streaming.json
|
|
516
|
+
- spec/fixtures/track_streaming_user.json
|
|
454
517
|
- spec/fixtures/user_search.json
|
|
455
518
|
- spec/fixtures/user_timeline.json
|
|
456
519
|
- spec/fixtures/users.json
|
|
457
520
|
- spec/fixtures/users_list.json
|
|
458
521
|
- spec/fixtures/users_list2.json
|
|
459
|
-
- spec/fixtures/video_facets.json
|
|
460
522
|
- spec/fixtures/we_concept_bg2.png
|
|
461
523
|
- spec/fixtures/wildcomet2.jpe
|
|
462
524
|
- 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
525
|
- spec/twitter/base_spec.rb
|
|
488
526
|
- spec/twitter/basic_user_spec.rb
|
|
489
|
-
- spec/twitter/client_spec.rb
|
|
490
527
|
- spec/twitter/configuration_spec.rb
|
|
491
528
|
- spec/twitter/cursor_spec.rb
|
|
492
529
|
- spec/twitter/direct_message_spec.rb
|
|
493
|
-
- spec/twitter/
|
|
494
|
-
- spec/twitter/error/server_error_spec.rb
|
|
530
|
+
- spec/twitter/entity/uri_spec.rb
|
|
495
531
|
- spec/twitter/error_spec.rb
|
|
496
532
|
- spec/twitter/geo/point_spec.rb
|
|
497
533
|
- spec/twitter/geo/polygon_spec.rb
|
|
498
534
|
- spec/twitter/geo_factory_spec.rb
|
|
535
|
+
- spec/twitter/geo_results_spec.rb
|
|
499
536
|
- spec/twitter/geo_spec.rb
|
|
500
537
|
- spec/twitter/identifiable_spec.rb
|
|
501
538
|
- spec/twitter/list_spec.rb
|
|
502
539
|
- spec/twitter/media/photo_spec.rb
|
|
503
540
|
- spec/twitter/media_factory_spec.rb
|
|
541
|
+
- spec/twitter/null_object_spec.rb
|
|
504
542
|
- spec/twitter/oembed_spec.rb
|
|
505
543
|
- spec/twitter/place_spec.rb
|
|
506
544
|
- spec/twitter/profile_banner_spec.rb
|
|
507
545
|
- spec/twitter/rate_limit_spec.rb
|
|
508
546
|
- spec/twitter/relationship_spec.rb
|
|
547
|
+
- spec/twitter/rest/api/direct_messages_spec.rb
|
|
548
|
+
- spec/twitter/rest/api/favorites_spec.rb
|
|
549
|
+
- spec/twitter/rest/api/friends_and_followers_spec.rb
|
|
550
|
+
- spec/twitter/rest/api/geo_spec.rb
|
|
551
|
+
- spec/twitter/rest/api/help_spec.rb
|
|
552
|
+
- spec/twitter/rest/api/lists_spec.rb
|
|
553
|
+
- spec/twitter/rest/api/oauth_spec.rb
|
|
554
|
+
- spec/twitter/rest/api/saved_searches_spec.rb
|
|
555
|
+
- spec/twitter/rest/api/search_spec.rb
|
|
556
|
+
- spec/twitter/rest/api/spam_reporting_spec.rb
|
|
557
|
+
- spec/twitter/rest/api/suggested_users_spec.rb
|
|
558
|
+
- spec/twitter/rest/api/timelines_spec.rb
|
|
559
|
+
- spec/twitter/rest/api/trends_spec.rb
|
|
560
|
+
- spec/twitter/rest/api/tweets_spec.rb
|
|
561
|
+
- spec/twitter/rest/api/undocumented_spec.rb
|
|
562
|
+
- spec/twitter/rest/api/users_spec.rb
|
|
563
|
+
- spec/twitter/rest/client_spec.rb
|
|
509
564
|
- spec/twitter/saved_search_spec.rb
|
|
510
565
|
- spec/twitter/search_results_spec.rb
|
|
511
566
|
- spec/twitter/settings_spec.rb
|
|
512
567
|
- spec/twitter/size_spec.rb
|
|
513
568
|
- spec/twitter/source_user_spec.rb
|
|
569
|
+
- spec/twitter/streaming/client_spec.rb
|
|
570
|
+
- spec/twitter/streaming/event_spec.rb
|
|
514
571
|
- spec/twitter/suggestion_spec.rb
|
|
515
572
|
- spec/twitter/target_user_spec.rb
|
|
573
|
+
- spec/twitter/token_spec.rb
|
|
574
|
+
- spec/twitter/trend_results_spec.rb
|
|
516
575
|
- spec/twitter/trend_spec.rb
|
|
517
576
|
- spec/twitter/tweet_spec.rb
|
|
518
577
|
- spec/twitter/user_spec.rb
|
metadata.gz.sig
CHANGED
|
Binary file
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
require 'twitter/action/tweet'
|
|
2
|
-
|
|
3
|
-
module Twitter
|
|
4
|
-
module Action
|
|
5
|
-
class Favorite < Twitter::Action::Tweet
|
|
6
|
-
attr_reader :target_objects
|
|
7
|
-
|
|
8
|
-
# A collection containing the favorited tweet
|
|
9
|
-
#
|
|
10
|
-
# @return [Array<Twitter::Tweet>]
|
|
11
|
-
def targets
|
|
12
|
-
@targets = Array(@attrs[:targets]).map do |tweet|
|
|
13
|
-
Twitter::Tweet.fetch_or_new(tweet)
|
|
14
|
-
end
|
|
15
|
-
end
|
|
16
|
-
|
|
17
|
-
end
|
|
18
|
-
end
|
|
19
|
-
end
|
|
@@ -1,30 +0,0 @@
|
|
|
1
|
-
require 'twitter/base'
|
|
2
|
-
require 'twitter/creatable'
|
|
3
|
-
|
|
4
|
-
module Twitter
|
|
5
|
-
module Action
|
|
6
|
-
class Follow < Twitter::Base
|
|
7
|
-
include Twitter::Creatable
|
|
8
|
-
attr_reader :max_position, :min_position, :target_objects
|
|
9
|
-
|
|
10
|
-
# A collection of users who followed a user
|
|
11
|
-
#
|
|
12
|
-
# @return [Array<Twitter::User>]
|
|
13
|
-
def sources
|
|
14
|
-
@sources = Array(@attrs[:sources]).map do |user|
|
|
15
|
-
Twitter::User.fetch_or_new(user)
|
|
16
|
-
end
|
|
17
|
-
end
|
|
18
|
-
|
|
19
|
-
# A collection containing the followed user
|
|
20
|
-
#
|
|
21
|
-
# @return [Array<Twitter::User>]
|
|
22
|
-
def targets
|
|
23
|
-
@targets = Array(@attrs[:targets]).map do |user|
|
|
24
|
-
Twitter::User.fetch_or_new(user)
|
|
25
|
-
end
|
|
26
|
-
end
|
|
27
|
-
|
|
28
|
-
end
|
|
29
|
-
end
|
|
30
|
-
end
|