twitter 4.4.4 → 4.5.0

Sign up to get free protection for your applications and to get access to all the features.
data/.yardopts CHANGED
@@ -1,7 +1,7 @@
1
1
  --no-private
2
2
  --protected
3
3
  --tag rate_limited:"Rate Limited?"
4
- --tag authentication_required:"Authentication Required?"
4
+ --tag authentication:"Authentication"
5
5
  --markup markdown
6
6
  -
7
7
  CHANGELOG.md
@@ -1,3 +1,7 @@
1
+ 4.5.0
2
+ -----
3
+ * [Add no_retweet_ids](https://github.com/sferik/twitter/commit/cab8d6ebf3afdbd24463932262798a132d70a6f1)
4
+
1
5
  4.4.4
2
6
  -----
3
7
  * [Fix documentation bugs](https://github.com/sferik/twitter/commit/45213d16efda0bd78e8c4c3c80892b824393e37c)
data/README.md CHANGED
@@ -1,9 +1,11 @@
1
1
  # The Twitter Ruby Gem
2
+ [![Gem Version](https://badge.fury.io/rb/twitter.png)][gem]
2
3
  [![Build Status](https://secure.travis-ci.org/sferik/twitter.png?branch=master)][travis]
3
4
  [![Dependency Status](https://gemnasium.com/sferik/twitter.png?travis)][gemnasium]
4
5
  [![Code Climate](https://codeclimate.com/badge.png)][codeclimate]
5
6
  [![Click here to make a donation](http://www.pledgie.com/campaigns/18388.png)][pledgie]
6
7
 
8
+ [gem]: https://rubygems.org/gems/twitter
7
9
  [travis]: http://travis-ci.org/sferik/twitter
8
10
  [gemnasium]: https://gemnasium.com/sferik/twitter
9
11
  [codeclimate]: https://codeclimate.com/github/sferik/twitter
@@ -117,7 +119,6 @@ version 3 are no longer available in version 4:
117
119
  * `Twitter::API#disable_notifications`
118
120
  * `Twitter::API#enable_notifications`
119
121
  * `Twitter::API#end_session`
120
- * `Twitter::API#no_retweet_ids`
121
122
  * `Twitter::API#rate_limit_status`
122
123
  * `Twitter::API#rate_limited?`
123
124
  * `Twitter::API#recommendations`
@@ -267,7 +268,7 @@ The Faraday middleware stack is fully configurable and is exposed as a
267
268
  `Faraday::Builder` object. You can modify the default middleware in-place:
268
269
 
269
270
  ```ruby
270
- Twitter.middleware.insert_after Twitter::Response::RaiseClientError, CustomMiddleware
271
+ Twitter.middleware.insert_after Twitter::Response::RaiseError, CustomMiddleware
271
272
  ```
272
273
 
273
274
  A custom adapter may be set as part of a custom middleware stack:
@@ -316,6 +317,13 @@ Twitter.friends("gem")
316
317
  Twitter.friends(213747670)
317
318
  Twitter.friends
318
319
  ```
320
+
321
+ **Fetch a collection of user_ids that the currently authenticated user does not want to receive retweets from**
322
+
323
+ ```ruby
324
+ Twitter.no_retweet_ids
325
+ ````
326
+
319
327
  **Fetch the timeline of Tweets by a user**
320
328
 
321
329
  ```ruby
@@ -393,6 +401,7 @@ version:
393
401
  * Ruby 1.8.7
394
402
  * Ruby 1.9.2
395
403
  * Ruby 1.9.3
404
+ * Ruby 2.0.0
396
405
 
397
406
  This library may inadvertently work (or seem to work) on other Ruby
398
407
  implementations, however support will only be provided for the versions listed
@@ -13,7 +13,7 @@ module Twitter
13
13
  # @see https://dev.twitter.com/docs/api/1.1/get/direct_messages
14
14
  # @note This method requires an access token with RWD (read, write & direct message) permissions. Consult The Application Permission Model for more information.
15
15
  # @rate_limited Yes
16
- # @authentication_required Requires user context
16
+ # @authentication Requires user context
17
17
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
18
18
  # @return [Array<Twitter::DirectMessage>] Direct messages sent to the authenticating user.
19
19
  # @param options [Hash] A customizable set of options.
@@ -32,7 +32,7 @@ module Twitter
32
32
  # @see https://dev.twitter.com/docs/api/1.1/get/direct_messages/sent
33
33
  # @note This method requires an access token with RWD (read, write & direct message) permissions. Consult The Application Permission Model for more information.
34
34
  # @rate_limited Yes
35
- # @authentication_required Requires user context
35
+ # @authentication Requires user context
36
36
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
37
37
  # @return [Array<Twitter::DirectMessage>] Direct messages sent by the authenticating user.
38
38
  # @param options [Hash] A customizable set of options.
@@ -51,7 +51,7 @@ module Twitter
51
51
  # @see https://dev.twitter.com/docs/api/1.1/get/direct_messages/show
52
52
  # @note This method requires an access token with RWD (read, write & direct message) permissions. Consult The Application Permission Model for more information.
53
53
  # @rate_limited Yes
54
- # @authentication_required Requires user context
54
+ # @authentication Requires user context
55
55
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
56
56
  # @return [Twitter::DirectMessage] The requested messages.
57
57
  # @param id [Integer] A Tweet IDs.
@@ -65,7 +65,7 @@ module Twitter
65
65
 
66
66
  # @note This method requires an access token with RWD (read, write & direct message) permissions. Consult The Application Permission Model for more information.
67
67
  # @rate_limited Yes
68
- # @authentication_required Requires user context
68
+ # @authentication Requires user context
69
69
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
70
70
  # @return [Array<Twitter::DirectMessage>] The requested messages.
71
71
  # @overload direct_messages(options={})
@@ -108,7 +108,7 @@ module Twitter
108
108
  # @see https://dev.twitter.com/docs/api/1.1/post/direct_messages/destroy
109
109
  # @note This method requires an access token with RWD (read, write & direct message) permissions. Consult The Application Permission Model for more information.
110
110
  # @rate_limited No
111
- # @authentication_required Requires user context
111
+ # @authentication Requires user context
112
112
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
113
113
  # @return [Array<Twitter::DirectMessage>] Deleted direct message.
114
114
  # @overload direct_message_destroy(*ids)
@@ -126,7 +126,7 @@ module Twitter
126
126
  #
127
127
  # @see https://dev.twitter.com/docs/api/1.1/post/direct_messages/new
128
128
  # @rate_limited No
129
- # @authentication_required Requires user context
129
+ # @authentication Requires user context
130
130
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
131
131
  # @return [Twitter::DirectMessage] The sent message.
132
132
  # @param user [Integer, String, Twitter::User] A Twitter user ID, screen name, or object.
@@ -12,7 +12,7 @@ module Twitter
12
12
 
13
13
  # @see https://dev.twitter.com/docs/api/1.1/get/favorites/list
14
14
  # @rate_limited Yes
15
- # @authentication_required Requires user context
15
+ # @authentication Requires user context
16
16
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
17
17
  # @return [Array<Twitter::Tweet>] favorite Tweets.
18
18
  # @overload favorites(options={})
@@ -45,7 +45,7 @@ module Twitter
45
45
  #
46
46
  # @see https://dev.twitter.com/docs/api/1.1/post/favorites/destroy
47
47
  # @rate_limited No
48
- # @authentication_required Requires user context
48
+ # @authentication Requires user context
49
49
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
50
50
  # @return [Array<Twitter::Tweet>] The un-favorited Tweets.
51
51
  # @overload unfavorite(*ids)
@@ -66,7 +66,7 @@ module Twitter
66
66
  #
67
67
  # @see https://dev.twitter.com/docs/api/1.1/post/favorites/create
68
68
  # @rate_limited No
69
- # @authentication_required Requires user context
69
+ # @authentication Requires user context
70
70
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
71
71
  # @return [Array<Twitter::Tweet>] The favorited Tweets.
72
72
  # @overload favorite(*ids)
@@ -95,7 +95,7 @@ module Twitter
95
95
  #
96
96
  # @see https://dev.twitter.com/docs/api/1.1/post/favorites/create
97
97
  # @rate_limited No
98
- # @authentication_required Requires user context
98
+ # @authentication Requires user context
99
99
  # @raise [Twitter::Error::AlreadyFavorited] Error raised when tweet has already been favorited.
100
100
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
101
101
  # @return [Array<Twitter::Tweet>] The favorited Tweets.
@@ -12,7 +12,7 @@ module Twitter
12
12
 
13
13
  # @see https://dev.twitter.com/docs/api/1.1/get/friends/ids
14
14
  # @rate_limited Yes
15
- # @authentication_required Requires user context
15
+ # @authentication Requires user context
16
16
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
17
17
  # @return [Twitter::Cursor]
18
18
  # @overload friend_ids(options={})
@@ -37,7 +37,7 @@ module Twitter
37
37
 
38
38
  # @see https://dev.twitter.com/docs/api/1.1/get/followers/ids
39
39
  # @rate_limited Yes
40
- # @authentication_required Requires user context
40
+ # @authentication Requires user context
41
41
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
42
42
  # @return [Twitter::Cursor]
43
43
  # @overload follower_ids(options={})
@@ -64,7 +64,7 @@ module Twitter
64
64
  #
65
65
  # @see https://dev.twitter.com/docs/api/1.1/get/friendships/lookup
66
66
  # @rate_limited Yes
67
- # @authentication_required Requires user context
67
+ # @authentication Requires user context
68
68
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
69
69
  # @return [Array<Twitter::User>] The requested users.
70
70
  # @overload friendships(*users)
@@ -86,7 +86,7 @@ module Twitter
86
86
  #
87
87
  # @see https://dev.twitter.com/docs/api/1.1/get/friendships/incoming
88
88
  # @rate_limited Yes
89
- # @authentication_required Requires user context
89
+ # @authentication Requires user context
90
90
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
91
91
  # @return [Twitter::Cursor]
92
92
  # @param options [Hash] A customizable set of options.
@@ -101,7 +101,7 @@ module Twitter
101
101
  #
102
102
  # @see https://dev.twitter.com/docs/api/1.1/get/friendships/outgoing
103
103
  # @rate_limited Yes
104
- # @authentication_required Requires user context
104
+ # @authentication Requires user context
105
105
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
106
106
  # @return [Twitter::Cursor]
107
107
  # @param options [Hash] A customizable set of options.
@@ -116,7 +116,7 @@ module Twitter
116
116
  #
117
117
  # @see https://dev.twitter.com/docs/api/1.1/post/friendships/create
118
118
  # @rate_limited No
119
- # @authentication_required Requires user context
119
+ # @authentication Requires user context
120
120
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
121
121
  # @return [Array<Twitter::User>] The followed users.
122
122
  # @overload follow(*users)
@@ -146,7 +146,7 @@ module Twitter
146
146
  #
147
147
  # @see https://dev.twitter.com/docs/api/1.1/post/friendships/create
148
148
  # @rate_limited No
149
- # @authentication_required Requires user context
149
+ # @authentication Requires user context
150
150
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
151
151
  # @return [Array<Twitter::User>] The followed users.
152
152
  # @overload follow!(*users)
@@ -177,7 +177,7 @@ module Twitter
177
177
  #
178
178
  # @see https://dev.twitter.com/docs/api/1.1/post/friendships/destroy
179
179
  # @rate_limited No
180
- # @authentication_required Requires user context
180
+ # @authentication Requires user context
181
181
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
182
182
  # @return [Array<Twitter::User>] The unfollowed users.
183
183
  # @overload unfollow(*users)
@@ -196,7 +196,7 @@ module Twitter
196
196
  #
197
197
  # @see https://dev.twitter.com/docs/api/1.1/post/friendships/update
198
198
  # @rate_limited No
199
- # @authentication_required Requires user context
199
+ # @authentication Requires user context
200
200
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
201
201
  # @return [Twitter::Relationship]
202
202
  # @param user [Integer, String, Twitter::User] A Twitter user ID, screen name, or object.
@@ -214,7 +214,7 @@ module Twitter
214
214
  #
215
215
  # @see https://dev.twitter.com/docs/api/1.1/get/friendships/show
216
216
  # @rate_limited Yes
217
- # @authentication_required Requires user context
217
+ # @authentication Requires user context
218
218
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
219
219
  # @return [Twitter::Relationship]
220
220
  # @param source [Integer, String, Twitter::User] The Twitter user ID, screen name, or object of the source user.
@@ -238,7 +238,7 @@ module Twitter
238
238
  #
239
239
  # @see https://dev.twitter.com/docs/api/1.1/get/friendships/show
240
240
  # @rate_limited Yes
241
- # @authentication_required Requires user context
241
+ # @authentication Requires user context
242
242
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
243
243
  # @return [Boolean] true if user_a follows user_b, otherwise false.
244
244
  # @param source [Integer, String, Twitter::User] The Twitter user ID, screen name, or object of the source user.
@@ -256,7 +256,7 @@ module Twitter
256
256
  #
257
257
  # @see https://dev.twitter.com/docs/api/1.1/get/followers/list
258
258
  # @rate_limited Yes
259
- # @authentication_required Requires user context
259
+ # @authentication Requires user context
260
260
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
261
261
  # @return [Twitter::Cursor]
262
262
  # @overload friend_ids(options={})
@@ -287,7 +287,7 @@ module Twitter
287
287
  #
288
288
  # @see https://dev.twitter.com/docs/api/1.1/get/friendships/show
289
289
  # @rate_limited Yes
290
- # @authentication_required Requires user context
290
+ # @authentication Requires user context
291
291
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
292
292
  # @return [Twitter::Cursor]
293
293
  # @overload friend_ids(options={})
@@ -315,6 +315,22 @@ module Twitter
315
315
  end
316
316
  alias following friends
317
317
 
318
+ # Returns a collection of user_ids that the currently authenticated user does not want to receive retweets from.
319
+ # =>
320
+ # @see https://dev.twitter.com/docs/api/1.1/get/friendships/no_retweets/ids
321
+ # @rate_limited Yes
322
+ # @authentication Requires user context
323
+ # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
324
+ # @return [Array<Integer>]
325
+ # @param options [Hash] A customizable set of options.
326
+ # @option options [Boolean] :stringify_ids Many programming environments will not consume our ids due to their size. Provide this option to have ids returned as strings instead. Read more about Twitter IDs, JSON and Snowflake.
327
+ # @example Enable rewteets and devise notifications for @sferik
328
+ # Twitter.no_retweet_ids
329
+ def no_retweet_ids(options={})
330
+ get("/1.1/friendships/no_retweets/ids.json", options)[:body].map(&:to_i)
331
+ end
332
+ alias no_retweets_ids no_retweet_ids
333
+
318
334
  end
319
335
  end
320
336
  end
@@ -11,7 +11,7 @@ module Twitter
11
11
  #
12
12
  # @see https://dev.twitter.com/docs/api/1.1/get/help/configuration
13
13
  # @rate_limited Yes
14
- # @authentication_required Requires user context
14
+ # @authentication Requires user context
15
15
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
16
16
  # @return [Twitter::Configuration] Twitter's configuration.
17
17
  # @example Return the current configuration used by Twitter
@@ -24,7 +24,7 @@ module Twitter
24
24
  #
25
25
  # @see https://dev.twitter.com/docs/api/1.1/get/help/languages
26
26
  # @rate_limited Yes
27
- # @authentication_required Requires user context
27
+ # @authentication Requires user context
28
28
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
29
29
  # @return [Array<Twitter::Language>]
30
30
  # @example Return the list of languages Twitter supports
@@ -37,7 +37,7 @@ module Twitter
37
37
  #
38
38
  # @see https://dev.twitter.com/docs/api/1.1/get/help/privacy
39
39
  # @rate_limited Yes
40
- # @authentication_required Requires user context
40
+ # @authentication Requires user context
41
41
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
42
42
  # @return [String]
43
43
  # @example Return {https://twitter.com/privacy Twitter's Privacy Policy}
@@ -50,7 +50,7 @@ module Twitter
50
50
  #
51
51
  # @see https://dev.twitter.com/docs/api/1.1/get/help/tos
52
52
  # @rate_limited Yes
53
- # @authentication_required Requires user context
53
+ # @authentication Requires user context
54
54
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
55
55
  # @return [String]
56
56
  # @example Return {https://twitter.com/tos Twitter's Terms of Service}
@@ -18,17 +18,17 @@ module Twitter
18
18
  #
19
19
  # @see https://dev.twitter.com/docs/api/1.1/get/lists/list
20
20
  # @rate_limited Yes
21
- # @authentication_required Requires user context
21
+ # @authentication Requires user context
22
22
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
23
23
  # @return [Array<Twitter::List>]
24
24
  # @overload lists(options={})
25
25
  # @param options [Hash] A customizable set of options.
26
- # @example Returns all lists the authenticating user subscribes to
26
+ # @example Return all lists the authenticating user subscribes to
27
27
  # Twitter.lists
28
28
  # @overload lists(user, options={})
29
29
  # @param user [Integer, String, Twitter::User] A Twitter user ID, screen name, or object.
30
30
  # @param options [Hash] A customizable set of options.
31
- # @example Returns all lists that @sferik subscribes to
31
+ # @example Return all lists that @sferik subscribes to
32
32
  # Twitter.lists('sferik')
33
33
  # Twitter.lists(7505382)
34
34
  def lists(*args)
@@ -40,7 +40,7 @@ module Twitter
40
40
  #
41
41
  # @see https://dev.twitter.com/docs/api/1.1/get/lists/statuses
42
42
  # @rate_limited Yes
43
- # @authentication_required Requires user context
43
+ # @authentication Requires user context
44
44
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
45
45
  # @return [Array<Twitter::Tweet>]
46
46
  # @overload list_timeline(list, options={})
@@ -75,7 +75,7 @@ module Twitter
75
75
  #
76
76
  # @see https://dev.twitter.com/docs/api/1.1/post/lists/members/destroy
77
77
  # @rate_limited No
78
- # @authentication_required Requires user context
78
+ # @authentication Requires user context
79
79
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
80
80
  # @return [Twitter::List] The list.
81
81
  # @overload list_remove_member(list, user_to_remove, options={})
@@ -104,7 +104,7 @@ module Twitter
104
104
  #
105
105
  # @see https://dev.twitter.com/docs/api/1.1/get/lists/memberships
106
106
  # @rate_limited Yes
107
- # @authentication_required Requires user context
107
+ # @authentication Requires user context
108
108
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
109
109
  # @return [Twitter::Cursor]
110
110
  # @overload memberships(options={})
@@ -129,7 +129,7 @@ module Twitter
129
129
  #
130
130
  # @see https://dev.twitter.com/docs/api/1.1/get/lists/subscribers
131
131
  # @rate_limited Yes
132
- # @authentication_required Requires user context
132
+ # @authentication Requires user context
133
133
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
134
134
  # @return [Twitter::Cursor] The subscribers of the specified list.
135
135
  # @overload list_subscribers(list, options={})
@@ -156,7 +156,7 @@ module Twitter
156
156
  #
157
157
  # @see https://dev.twitter.com/docs/api/1.1/post/lists/subscribers/create
158
158
  # @rate_limited No
159
- # @authentication_required Requires user context
159
+ # @authentication Requires user context
160
160
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
161
161
  # @return [Twitter::List] The specified list.
162
162
  # @overload list_subscribe(list, options={})
@@ -181,7 +181,7 @@ module Twitter
181
181
  #
182
182
  # @see https://dev.twitter.com/docs/api/1.1/get/lists/subscribers/show
183
183
  # @rate_limited Yes
184
- # @authentication_required Requires user context
184
+ # @authentication Requires user context
185
185
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
186
186
  # @return [Boolean] true if user is a subscriber of the specified list, otherwise false.
187
187
  # @overload list_subscriber?(list, user_to_check, options={})
@@ -211,7 +211,7 @@ module Twitter
211
211
  #
212
212
  # @see https://dev.twitter.com/docs/api/1.1/post/lists/subscribers/destroy
213
213
  # @rate_limited No
214
- # @authentication_required Requires user context
214
+ # @authentication Requires user context
215
215
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
216
216
  # @return [Twitter::List] The specified list.
217
217
  # @overload list_unsubscribe(list, options={})
@@ -237,7 +237,7 @@ module Twitter
237
237
  # @see https://dev.twitter.com/docs/api/1.1/post/lists/members/create_all
238
238
  # @note Lists are limited to having 500 members, and you are limited to adding up to 100 members to a list at a time with this method.
239
239
  # @rate_limited No
240
- # @authentication_required Requires user context
240
+ # @authentication Requires user context
241
241
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
242
242
  # @return [Twitter::List] The list.
243
243
  # @overload list_add_members(list, users, options={})
@@ -268,7 +268,7 @@ module Twitter
268
268
  # Check if a user is a member of the specified list
269
269
  #
270
270
  # @see https://dev.twitter.com/docs/api/1.1/get/lists/members/show
271
- # @authentication_required Requires user context
271
+ # @authentication Requires user context
272
272
  # @rate_limited Yes
273
273
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
274
274
  # @return [Boolean] true if user is a member of the specified list, otherwise false.
@@ -296,7 +296,7 @@ module Twitter
296
296
  #
297
297
  # @see https://dev.twitter.com/docs/api/1.1/get/lists/members
298
298
  # @rate_limited Yes
299
- # @authentication_required Requires user context
299
+ # @authentication Requires user context
300
300
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
301
301
  # @return [Twitter::Cursor]
302
302
  # @overload list_members(list, options={})
@@ -325,7 +325,7 @@ module Twitter
325
325
  # @see https://dev.twitter.com/docs/api/1.1/post/lists/members/create
326
326
  # @note Lists are limited to having 500 members.
327
327
  # @rate_limited No
328
- # @authentication_required Requires user context
328
+ # @authentication Requires user context
329
329
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
330
330
  # @return [Twitter::List] The list.
331
331
  # @overload list_add_member(list, user_to_add, options={})
@@ -354,7 +354,7 @@ module Twitter
354
354
  # @see https://dev.twitter.com/docs/api/1.1/post/lists/destroy
355
355
  # @note Must be owned by the authenticated user.
356
356
  # @rate_limited No
357
- # @authentication_required Requires user context
357
+ # @authentication Requires user context
358
358
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
359
359
  # @return [Twitter::List] The deleted list.
360
360
  # @overload list_destroy(list, options={})
@@ -380,7 +380,7 @@ module Twitter
380
380
  #
381
381
  # @see https://dev.twitter.com/docs/api/1.1/post/lists/update
382
382
  # @rate_limited No
383
- # @authentication_required Requires user context
383
+ # @authentication Requires user context
384
384
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
385
385
  # @return [Twitter::List] The created list.
386
386
  # @overload list_update(list, options={})
@@ -411,7 +411,7 @@ module Twitter
411
411
  # @see https://dev.twitter.com/docs/api/1.1/post/lists/create
412
412
  # @note Accounts are limited to 20 lists.
413
413
  # @rate_limited No
414
- # @authentication_required Requires user context
414
+ # @authentication Requires user context
415
415
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
416
416
  # @return [Twitter::List] The created list.
417
417
  # @param name [String] The name for the list.
@@ -429,7 +429,7 @@ module Twitter
429
429
  # @see https://dev.twitter.com/docs/api/1.1/get/lists/show
430
430
  # @note Private lists will only be shown if the authenticated user owns the specified list.
431
431
  # @rate_limited Yes
432
- # @authentication_required Requires user context
432
+ # @authentication Requires user context
433
433
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
434
434
  # @return [Twitter::List] The specified list.
435
435
  # @overload list(list, options={})
@@ -455,7 +455,7 @@ module Twitter
455
455
  #
456
456
  # @see https://dev.twitter.com/docs/api/1.1/get/lists/subscriptions
457
457
  # @rate_limited Yes
458
- # @authentication_required Requires user context
458
+ # @authentication Requires user context
459
459
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
460
460
  # @return [Twitter::Cursor]
461
461
  # @overload subscriptions(options={})
@@ -478,7 +478,7 @@ module Twitter
478
478
  #
479
479
  # @see https://dev.twitter.com/docs/api/1.1/post/lists/members/destroy_all
480
480
  # @rate_limited No
481
- # @authentication_required Requires user context
481
+ # @authentication Requires user context
482
482
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
483
483
  # @return [Twitter::List] The list.
484
484
  # @overload list_remove_members(list, users, options={})
@@ -10,7 +10,7 @@ module Twitter
10
10
  #
11
11
  # @see https://dev.twitter.com/docs/api/1.1/get/geo/id/:place_id
12
12
  # @rate_limited Yes
13
- # @authentication_required Requires user context
13
+ # @authentication Requires user context
14
14
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
15
15
  # @param place_id [String] A place in the world. These IDs can be retrieved from {Twitter::API::PlacesAndGeo#reverse_geocode}.
16
16
  # @param options [Hash] A customizable set of options.
@@ -26,7 +26,7 @@ module Twitter
26
26
  # @see https://dev.twitter.com/docs/api/1.1/get/geo/reverse_geocode
27
27
  # @note This request is an informative call and will deliver generalized results about geography.
28
28
  # @rate_limited Yes
29
- # @authentication_required Requires user context
29
+ # @authentication Requires user context
30
30
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
31
31
  # @param options [Hash] A customizable set of options.
32
32
  # @option options [Float] :lat The latitude to search around. This option will be ignored unless it is inside the range -90.0 to +90.0 (North is positive) inclusive. It will also be ignored if there isn't a corresponding :long option.
@@ -45,7 +45,7 @@ module Twitter
45
45
  #
46
46
  # @see https://dev.twitter.com/docs/api/1.1/get/geo/search
47
47
  # @rate_limited Yes
48
- # @authentication_required Requires user context
48
+ # @authentication Requires user context
49
49
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
50
50
  # @param options [Hash] A customizable set of options.
51
51
  # @option options [Float] :lat The latitude to search around. This option will be ignored unless it is inside the range -90.0 to +90.0 (North is positive) inclusive. It will also be ignored if there isn't a corresponding :long option.
@@ -70,7 +70,7 @@ module Twitter
70
70
  # @see https://dev.twitter.com/docs/api/1.1/get/geo/similar_places
71
71
  # @note Conceptually, you would use this method to get a list of known places to choose from first. Then, if the desired place doesn't exist, make a request to {Twitter::API::PlacesAndGeo#place} to create a new one. The token contained in the response is the token necessary to create a new place.
72
72
  # @rate_limited Yes
73
- # @authentication_required Requires user context
73
+ # @authentication Requires user context
74
74
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
75
75
  # @param options [Hash] A customizable set of options.
76
76
  # @option options [Float] :lat The latitude to search around. This option will be ignored unless it is inside the range -90.0 to +90.0 (North is positive) inclusive. It will also be ignored if there isn't a corresponding :long option.
@@ -90,7 +90,7 @@ module Twitter
90
90
  #
91
91
  # @see https://dev.twitter.com/docs/api/1.1/post/geo/place
92
92
  # @rate_limited Yes
93
- # @authentication_required Requires user context
93
+ # @authentication Requires user context
94
94
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
95
95
  # @param options [Hash] A customizable set of options.
96
96
  # @option options [String] :name The name a place is known as.
@@ -8,7 +8,7 @@ module Twitter
8
8
  include Twitter::API::Utils
9
9
 
10
10
  # @rate_limited Yes
11
- # @authentication_required Requires user context
11
+ # @authentication Requires user context
12
12
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
13
13
  # @return [Array<Twitter::SavedSearch>] The saved searches.
14
14
  # @overload saved_search(options={})
@@ -46,7 +46,7 @@ module Twitter
46
46
  #
47
47
  # @see https://dev.twitter.com/docs/api/1.1/get/saved_searches/show/:id
48
48
  # @rate_limited Yes
49
- # @authentication_required Requires user context
49
+ # @authentication Requires user context
50
50
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
51
51
  # @return [Twitter::SavedSearch] The saved searches.
52
52
  # @param id [Integer] A Tweet IDs.
@@ -61,7 +61,7 @@ module Twitter
61
61
  #
62
62
  # @see https://dev.twitter.com/docs/api/1.1/post/saved_searches/create
63
63
  # @rate_limited No
64
- # @authentication_required Requires user context
64
+ # @authentication Requires user context
65
65
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
66
66
  # @return [Twitter::SavedSearch] The created saved search.
67
67
  # @param query [String] The query of the search the user would like to save.
@@ -77,7 +77,7 @@ module Twitter
77
77
  # @see https://dev.twitter.com/docs/api/1.1/post/saved_searches/destroy/:id
78
78
  # @note The search specified by ID must be owned by the authenticating user.
79
79
  # @rate_limited No
80
- # @authentication_required Requires user context
80
+ # @authentication Requires user context
81
81
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
82
82
  # @return [Array<Twitter::SavedSearch>] The deleted saved searches.
83
83
  # @overload saved_search_destroy(*ids)
@@ -12,7 +12,7 @@ module Twitter
12
12
  # @see https://dev.twitter.com/docs/using-search
13
13
  # @note Please note that Twitter's search service and, by extension, the Search API is not meant to be an exhaustive source of Tweets. Not all Tweets will be indexed or made available via the search interface.
14
14
  # @rate_limited Yes
15
- # @authentication_required Requires user context
15
+ # @authentication Requires user context
16
16
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
17
17
  # @param q [String] A search term.
18
18
  # @param options [Hash] A customizable set of options.
@@ -26,7 +26,7 @@ module Twitter
26
26
  # @option options [Integer] :max_id Returns results with an ID less than (that is, older than) or equal to the specified ID.
27
27
  # @option options [Boolean, String, Integer] :include_entities The tweet entities node will be disincluded when set to false.
28
28
  # @return [Twitter::SearchResults] Return tweets that match a specified query with search metadata
29
- # @example Returns tweets related to twitter
29
+ # @example Return tweets related to twitter
30
30
  # Twitter.search('twitter')
31
31
  def search(q, options={})
32
32
  object_from_response(Twitter::SearchResults, :get, "/1.1/search/tweets.json", options.merge(:q => q))
@@ -10,7 +10,7 @@ module Twitter
10
10
  #
11
11
  # @see https://dev.twitter.com/docs/api/1.1/post/users/report_spam
12
12
  # @rate_limited Yes
13
- # @authentication_required Requires user context
13
+ # @authentication Requires user context
14
14
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
15
15
  # @return [Array<Twitter::User>] The reported users.
16
16
  # @overload report_spam(*users)
@@ -10,7 +10,7 @@ module Twitter
10
10
 
11
11
  # @return [Array<Twitter::Suggestion>]
12
12
  # @rate_limited Yes
13
- # @authentication_required Requires user context
13
+ # @authentication Requires user context
14
14
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
15
15
  # @overload suggestions(options={})
16
16
  # Returns the list of suggested user categories
@@ -40,7 +40,7 @@ module Twitter
40
40
  #
41
41
  # @see https://dev.twitter.com/docs/api/1.1/get/users/suggestions/:slug/members
42
42
  # @rate_limited Yes
43
- # @authentication_required Requires user context
43
+ # @authentication Requires user context
44
44
  # @param slug [String] The short name of list or a category.
45
45
  # @param options [Hash] A customizable set of options.
46
46
  # @return [Array<Twitter::User>]
@@ -14,7 +14,7 @@ module Twitter
14
14
  # @see https://dev.twitter.com/docs/api/1.1/get/statuses/mentions_timeline
15
15
  # @note This method can only return up to 800 Tweets.
16
16
  # @rate_limited Yes
17
- # @authentication_required Requires user context
17
+ # @authentication Requires user context
18
18
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
19
19
  # @return [Array<Twitter::Tweet>]
20
20
  # @param options [Hash] A customizable set of options.
@@ -34,7 +34,7 @@ module Twitter
34
34
  # @see https://dev.twitter.com/docs/api/1.1/get/statuses/user_timeline
35
35
  # @note This method can only return up to 3,200 Tweets.
36
36
  # @rate_limited Yes
37
- # @authentication_required Requires user context
37
+ # @authentication Requires user context
38
38
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
39
39
  # @return [Array<Twitter::Tweet>]
40
40
  # @overload user_timeline(user, options={})
@@ -58,7 +58,7 @@ module Twitter
58
58
  # @see https://dev.twitter.com/docs/api/1.1/get/statuses/user_timeline
59
59
  # @note This method can only return up to 3,200 Tweets.
60
60
  # @rate_limited Yes
61
- # @authentication_required Requires user context
61
+ # @authentication Requires user context
62
62
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
63
63
  # @return [Array<Twitter::Tweet>]
64
64
  # @param user [Integer, String, Twitter::User] A Twitter user ID, screen name, or object.
@@ -83,7 +83,7 @@ module Twitter
83
83
  # @see https://dev.twitter.com/docs/api/1.1/get/statuses/user_timeline
84
84
  # @note This method can only return up to 3,200 Tweets.
85
85
  # @rate_limited Yes
86
- # @authentication_required Requires user context
86
+ # @authentication Requires user context
87
87
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
88
88
  # @return [Array<Twitter::Tweet>]
89
89
  # @param options [Hash] A customizable set of options.
@@ -106,7 +106,7 @@ module Twitter
106
106
  # @see https://dev.twitter.com/docs/api/1.1/get/statuses/home_timeline
107
107
  # @note This method can only return up to 800 Tweets, including retweets.
108
108
  # @rate_limited Yes
109
- # @authentication_required Requires user context
109
+ # @authentication Requires user context
110
110
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
111
111
  # @return [Array<Twitter::Tweet>]
112
112
  # @param options [Hash] A customizable set of options.
@@ -129,7 +129,7 @@ module Twitter
129
129
  # @see https://dev.twitter.com/docs/api/1.1/get/statuses/home_timeline
130
130
  # @note This method can only return up to 800 Tweets, including retweets.
131
131
  # @rate_limited Yes
132
- # @authentication_required Requires user context
132
+ # @authentication Requires user context
133
133
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
134
134
  # @return [Array<Twitter::Tweet>]
135
135
  # @param options [Hash] A customizable set of options.
@@ -152,7 +152,7 @@ module Twitter
152
152
  #
153
153
  # @see https://dev.twitter.com/docs/api/1.1/get/statuses/retweets_of_me
154
154
  # @rate_limited Yes
155
- # @authentication_required Requires user context
155
+ # @authentication Requires user context
156
156
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
157
157
  # @return [Array<Twitter::Tweet>]
158
158
  # @param options [Hash] A customizable set of options.
@@ -11,7 +11,7 @@ module Twitter
11
11
  #
12
12
  # @see https://dev.twitter.com/docs/api/1.1/get/trends/place
13
13
  # @rate_limited Yes
14
- # @authentication_required Requires user context
14
+ # @authentication Requires user context
15
15
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
16
16
  # @param id [Integer] The {https://developer.yahoo.com/geo/geoplanet Yahoo! Where On Earth ID} of the location to return trending information for. WOEIDs can be retrieved by calling {Twitter::API::Trends#trend_locations}. Global information is available by using 1 as the WOEID.
17
17
  # @param options [Hash] A customizable set of options.
@@ -31,7 +31,7 @@ module Twitter
31
31
  #
32
32
  # @see https://dev.twitter.com/docs/api/1.1/get/trends/available
33
33
  # @rate_limited Yes
34
- # @authentication_required Requires user context
34
+ # @authentication Requires user context
35
35
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
36
36
  # @param options [Hash] A customizable set of options.
37
37
  # @return [Array<Twitter::Place>]
@@ -46,7 +46,7 @@ module Twitter
46
46
  #
47
47
  # @see https://dev.twitter.com/docs/api/1.1/get/trends/closest
48
48
  # @rate_limited Yes
49
- # @authentication_required Requires user context
49
+ # @authentication Requires user context
50
50
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
51
51
  # @param options [Hash] A customizable set of options.
52
52
  # @option options [Float] :lat If provided with a :long option the available trend locations will be sorted by distance, nearest to furthest, to the co-ordinate pair. The valid ranges for latitude are -90.0 to +90.0 (North is positive) inclusive.
@@ -14,7 +14,7 @@ module Twitter
14
14
  #
15
15
  # @see https://dev.twitter.com/docs/api/1.1/get/statuses/retweets/:id
16
16
  # @rate_limited Yes
17
- # @authentication_required Requires user context
17
+ # @authentication Requires user context
18
18
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
19
19
  # @return [Array<Twitter::Tweet>]
20
20
  # @param id [Integer] The numerical ID of the desired Tweet.
@@ -31,7 +31,7 @@ module Twitter
31
31
  #
32
32
  # @see https://dev.twitter.com/docs/api/1.1/get/statuses/retweets/:id
33
33
  # @rate_limited Yes
34
- # @authentication_required Requires user context
34
+ # @authentication Requires user context
35
35
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
36
36
  # @return [Array]
37
37
  # @param id [Integer] The numerical ID of the desired Tweet.
@@ -55,7 +55,7 @@ module Twitter
55
55
  #
56
56
  # @see https://dev.twitter.com/docs/api/1.1/get/statuses/show/:id
57
57
  # @rate_limited Yes
58
- # @authentication_required Requires user context
58
+ # @authentication Requires user context
59
59
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
60
60
  # @return [Twitter::Tweet] The requested Tweet.
61
61
  # @param id [Integer] A Tweet ID.
@@ -71,7 +71,7 @@ module Twitter
71
71
  #
72
72
  # @see https://dev.twitter.com/docs/api/1.1/get/statuses/show/:id
73
73
  # @rate_limited Yes
74
- # @authentication_required Requires user context
74
+ # @authentication Requires user context
75
75
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
76
76
  # @return [Array<Twitter::Tweet>] The requested Tweets.
77
77
  # @overload statuses(*ids)
@@ -91,7 +91,7 @@ module Twitter
91
91
  # @see https://dev.twitter.com/docs/api/1.1/post/statuses/destroy/:id
92
92
  # @note The authenticating user must be the author of the specified Tweets.
93
93
  # @rate_limited No
94
- # @authentication_required Requires user context
94
+ # @authentication Requires user context
95
95
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
96
96
  # @return [Array<Twitter::Tweet>] The deleted Tweets.
97
97
  # @overload status_destroy(*ids)
@@ -112,7 +112,7 @@ module Twitter
112
112
  # @see https://dev.twitter.com/docs/api/1.1/post/statuses/update
113
113
  # @note A status update with text identical to the authenticating user's current status will be ignored to prevent duplicates.
114
114
  # @rate_limited No
115
- # @authentication_required Requires user context
115
+ # @authentication Requires user context
116
116
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
117
117
  # @return [Twitter::Tweet] The created Tweet.
118
118
  # @param status [String] The text of your status update, up to 140 characters.
@@ -133,7 +133,7 @@ module Twitter
133
133
  #
134
134
  # @see https://dev.twitter.com/docs/api/1.1/post/statuses/retweet/:id
135
135
  # @rate_limited Yes
136
- # @authentication_required Requires user context
136
+ # @authentication Requires user context
137
137
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
138
138
  # @return [Array<Twitter::Tweet>] The original tweets with retweet details embedded.
139
139
  # @overload retweet(*ids)
@@ -159,7 +159,7 @@ module Twitter
159
159
  #
160
160
  # @see https://dev.twitter.com/docs/api/1.1/post/statuses/retweet/:id
161
161
  # @rate_limited Yes
162
- # @authentication_required Requires user context
162
+ # @authentication Requires user context
163
163
  # @raise [Twitter::Error::AlreadyRetweeted] Error raised when tweet has already been retweeted.
164
164
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
165
165
  # @return [Array<Twitter::Tweet>] The original tweets with retweet details embedded.
@@ -187,7 +187,7 @@ module Twitter
187
187
  # @see https://dev.twitter.com/docs/api/1.1/post/statuses/update_with_media
188
188
  # @note A status update with text/media identical to the authenticating user's current status will NOT be ignored
189
189
  # @rate_limited No
190
- # @authentication_required Requires user context
190
+ # @authentication Requires user context
191
191
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
192
192
  # @return [Twitter::Tweet] The created Tweet.
193
193
  # @param status [String] The text of your status update, up to 140 characters.
@@ -209,7 +209,7 @@ module Twitter
209
209
  #
210
210
  # @see https://dev.twitter.com/docs/api/1.1/get/statuses/oembed
211
211
  # @rate_limited Yes
212
- # @authentication_required Requires user context
212
+ # @authentication Requires user context
213
213
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
214
214
  # @return [Twitter::OEmbed] OEmbed for the requested Tweet.
215
215
  # @param id [Integer, String] A Tweet ID.
@@ -231,7 +231,7 @@ module Twitter
231
231
  #
232
232
  # @see https://dev.twitter.com/docs/api/1.1/get/statuses/oembed
233
233
  # @rate_limited Yes
234
- # @authentication_required Requires user context
234
+ # @authentication Requires user context
235
235
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
236
236
  # @return [Array<Twitter::OEmbed>] OEmbeds for the requested Tweets.
237
237
  # @overload oembed(*ids_or_urls)
@@ -14,7 +14,7 @@ module Twitter
14
14
  #
15
15
  # @note Undocumented
16
16
  # @rate_limited Yes
17
- # @authentication_required Requires user context
17
+ # @authentication Requires user context
18
18
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
19
19
  # @return [Array] An array of actions
20
20
  # @param options [Hash] A customizable set of options.
@@ -30,7 +30,7 @@ module Twitter
30
30
  #
31
31
  # @note Undocumented
32
32
  # @rate_limited Yes
33
- # @authentication_required Requires user context
33
+ # @authentication Requires user context
34
34
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid./
35
35
  # @return [Array] An array of actions
36
36
  # @param options [Hash] A customizable set of options.
@@ -44,7 +44,7 @@ module Twitter
44
44
 
45
45
  # @note Undocumented
46
46
  # @rate_limited Yes
47
- # @authentication_required Requires user context
47
+ # @authentication Requires user context
48
48
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
49
49
  #
50
50
  # @overload following_followers_of(options={})
@@ -74,7 +74,7 @@ module Twitter
74
74
  #
75
75
  # @note Undocumented
76
76
  # @rate_limited Yes
77
- # @authentication_required Requires user context
77
+ # @authentication Requires user context
78
78
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
79
79
  # @return [Twitter::Tweet] The requested Tweet.
80
80
  # @param id [Integer] A Tweet ID.
@@ -92,7 +92,7 @@ module Twitter
92
92
  #
93
93
  # @note Undocumented
94
94
  # @rate_limited Yes
95
- # @authentication_required Requires user context
95
+ # @authentication Requires user context
96
96
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
97
97
  # @return [Array<Twitter::Tweet>] The requested Tweets.
98
98
  # @overload statuses_activity(*ids)
@@ -18,7 +18,7 @@ module Twitter
18
18
  # @see https://dev.twitter.com/docs/api/1.1/post/account/settings
19
19
  # @see https://dev.twitter.com/docs/api/1.1/get/account/settings
20
20
  # @rate_limited Yes
21
- # @authentication_required Requires user context
21
+ # @authentication Requires user context
22
22
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
23
23
  # @return [Twitter::Settings]
24
24
  # @param options [Hash] A customizable set of options.
@@ -39,7 +39,7 @@ module Twitter
39
39
  #
40
40
  # @see https://dev.twitter.com/docs/api/1.1/get/account/verify_credentials
41
41
  # @rate_limited Yes
42
- # @authentication_required Requires user context
42
+ # @authentication Requires user context
43
43
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
44
44
  # @return [Twitter::User] The authenticated user.
45
45
  # @param options [Hash] A customizable set of options.
@@ -55,7 +55,7 @@ module Twitter
55
55
  #
56
56
  # @see https://dev.twitter.com/docs/api/1.1/post/account/update_delivery_device
57
57
  # @rate_limited No
58
- # @authentication_required Requires user context
58
+ # @authentication Requires user context
59
59
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
60
60
  # @return [Twitter::User] The authenticated user.
61
61
  # @param device [String] Must be one of: 'sms', 'none'.
@@ -71,7 +71,7 @@ module Twitter
71
71
  # @see https://dev.twitter.com/docs/api/1.1/post/account/update_profile
72
72
  # @note Only the options specified will be updated.
73
73
  # @rate_limited No
74
- # @authentication_required Requires user context
74
+ # @authentication Requires user context
75
75
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
76
76
  # @return [Twitter::User] The authenticated user.
77
77
  # @param options [Hash] A customizable set of options.
@@ -89,7 +89,7 @@ module Twitter
89
89
  #
90
90
  # @see https://dev.twitter.com/docs/api/1.1/post/account/update_profile_background_image
91
91
  # @rate_limited No
92
- # @authentication_required Requires user context
92
+ # @authentication Requires user context
93
93
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
94
94
  # @return [Twitter::User] The authenticated user.
95
95
  # @param image [File] The background image for the profile, base64-encoded. Must be a valid GIF, JPG, or PNG image of less than 800 kilobytes in size. Images with width larger than 2048 pixels will be forcibly scaled down. The image must be provided as raw multipart data, not a URL.
@@ -105,7 +105,7 @@ module Twitter
105
105
  #
106
106
  # @see https://dev.twitter.com/docs/api/1.1/post/account/update_profile_colors
107
107
  # @rate_limited No
108
- # @authentication_required Requires user context
108
+ # @authentication Requires user context
109
109
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
110
110
  # @return [Twitter::User] The authenticated user.
111
111
  # @param options [Hash] A customizable set of options.
@@ -126,7 +126,7 @@ module Twitter
126
126
  # @note Updates the authenticating user's profile image. Note that this method expects raw multipart data, not a URL to an image.
127
127
  # @note This method asynchronously processes the uploaded file before updating the user's profile image URL. You can either update your local cache the next time you request the user's information, or, at least 5 seconds after uploading the image, ask for the updated URL using GET users/show.
128
128
  # @rate_limited No
129
- # @authentication_required Requires user context
129
+ # @authentication Requires user context
130
130
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
131
131
  # @return [Twitter::User] The authenticated user.
132
132
  # @param image [File] The avatar image for the profile, base64-encoded. Must be a valid GIF, JPG, or PNG image of less than 700 kilobytes in size. Images with width larger than 500 pixels will be scaled down. Animated GIFs will be converted to a static GIF of the first frame, removing the animation.
@@ -141,7 +141,7 @@ module Twitter
141
141
  #
142
142
  # @see https://dev.twitter.com/docs/api/1.1/get/blocks/list
143
143
  # @rate_limited Yes
144
- # @authentication_required Requires user context
144
+ # @authentication Requires user context
145
145
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
146
146
  # @return [Array<Twitter::User>] User objects that the authenticating user is blocking.
147
147
  # @param options [Hash] A customizable set of options.
@@ -156,7 +156,7 @@ module Twitter
156
156
  #
157
157
  # @see https://dev.twitter.com/docs/api/1.1/get/blocks/ids
158
158
  # @rate_limited Yes
159
- # @authentication_required Requires user context
159
+ # @authentication Requires user context
160
160
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
161
161
  # @return [Array] Numeric user ids the authenticating user is blocking.
162
162
  # @example Return an array of numeric user ids the authenticating user is blocking
@@ -173,7 +173,7 @@ module Twitter
173
173
  #
174
174
  # @see https://dev.twitter.com/docs/api/1.1/get/blocks/ids
175
175
  # @rate_limited Yes
176
- # @authentication_required Requires user context
176
+ # @authentication Requires user context
177
177
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
178
178
  # @return [Boolean] true if the authenticating user is blocking the target user, otherwise false.
179
179
  # @param user [Integer, String, Twitter::User] A Twitter user ID, screen name, or object.
@@ -199,7 +199,7 @@ module Twitter
199
199
  # @see https://dev.twitter.com/docs/api/1.1/post/blocks/create
200
200
  # @note Destroys a friendship to the blocked user if it exists.
201
201
  # @rate_limited Yes
202
- # @authentication_required Requires user context
202
+ # @authentication Requires user context
203
203
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
204
204
  # @return [Array<Twitter::User>] The blocked users.
205
205
  # @overload block(*users)
@@ -218,7 +218,7 @@ module Twitter
218
218
  #
219
219
  # @see https://dev.twitter.com/docs/api/1.1/post/blocks/destroy
220
220
  # @rate_limited No
221
- # @authentication_required Requires user context
221
+ # @authentication Requires user context
222
222
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
223
223
  # @return [Array<Twitter::User>] The un-blocked users.
224
224
  # @overload unblock(*users)
@@ -237,7 +237,7 @@ module Twitter
237
237
  #
238
238
  # @see https://dev.twitter.com/docs/api/1.1/get/users/lookup
239
239
  # @rate_limited Yes
240
- # @authentication_required Requires user context
240
+ # @authentication Requires user context
241
241
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
242
242
  # @return [Array<Twitter::User>] The requested users.
243
243
  # @overload users(*users)
@@ -263,7 +263,7 @@ module Twitter
263
263
 
264
264
  # @see https://dev.twitter.com/docs/api/1.1/get/users/show
265
265
  # @rate_limited Yes
266
- # @authentication_required Requires user context
266
+ # @authentication Requires user context
267
267
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
268
268
  # @return [Twitter::User] The requested user.
269
269
  # @overload user(options={})
@@ -294,7 +294,7 @@ module Twitter
294
294
  # Returns true if the specified user exists
295
295
  #
296
296
  # @rate_limited Yes
297
- # @authentication_required Requires user context
297
+ # @authentication Requires user context
298
298
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
299
299
  # @return [Boolean] true if the user exists, otherwise false.
300
300
  # @param user [Integer, String, Twitter::User] A Twitter user ID, screen name, or object.
@@ -313,7 +313,7 @@ module Twitter
313
313
  #
314
314
  # @see https://dev.twitter.com/docs/api/1.1/get/users/search
315
315
  # @rate_limited Yes
316
- # @authentication_required Requires user context
316
+ # @authentication Requires user context
317
317
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
318
318
  # @return [Array<Twitter::User>]
319
319
  # @param query [String] The search query to run against people search.
@@ -330,7 +330,7 @@ module Twitter
330
330
  #
331
331
  # @see https://dev.twitter.com/docs/api/1.1/get/users/contributees
332
332
  # @rate_limited Yes
333
- # @authentication_required Requires user context
333
+ # @authentication Requires user context
334
334
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
335
335
  # @return [Array<Twitter::User>]
336
336
  # @overload contributees(options={})
@@ -353,7 +353,7 @@ module Twitter
353
353
  #
354
354
  # @see https://dev.twitter.com/docs/api/1.1/get/users/contributors
355
355
  # @rate_limited Yes
356
- # @authentication_required Requires user context
356
+ # @authentication Requires user context
357
357
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
358
358
  # @return [Array<Twitter::User>]
359
359
  # @overload contributors(options={})
@@ -376,7 +376,7 @@ module Twitter
376
376
  #
377
377
  # @see https://dev.twitter.com/docs/api/1.1/post/account/remove_profile_banner
378
378
  # @rate_limited No
379
- # @authentication_required Requires user context
379
+ # @authentication Requires user context
380
380
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
381
381
  # @return [nil]
382
382
  # @param options [Hash] A customizable set of options.
@@ -392,7 +392,7 @@ module Twitter
392
392
  # @note Uploads a profile banner on behalf of the authenticating user. For best results, upload an <5MB image that is exactly 1252px by 626px. Images will be resized for a number of display options. Users with an uploaded profile banner will have a profile_banner_url node in their Users objects. More information about sizing variations can be found in User Profile Images and Banners.
393
393
  # @note Profile banner images are processed asynchronously. The profile_banner_url and its variant sizes will not necessary be available directly after upload.
394
394
  # @rate_limited No
395
- # @authentication_required Requires user context
395
+ # @authentication Requires user context
396
396
  # @raise [Twitter::Error::BadRequest] Error raised when either an image was not provided or the image data could not be processed.
397
397
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
398
398
  # @raise [Twitter::Error::UnprocessableEntity] Error raised when the image could not be resized or is too large.
@@ -414,7 +414,7 @@ module Twitter
414
414
  # @see https://dev.twitter.com/docs/api/1.1/get/users/profile_banner
415
415
  # @note If the user has not uploaded a profile banner, a HTTP 404 will be served instead.
416
416
  # @rate_limited Yes
417
- # @authentication_required Requires user context
417
+ # @authentication Requires user context
418
418
  # @raise [Twitter::Error::Unauthorized] Error raised when supplied user credentials are not valid.
419
419
  # @return [Twitter::ProfileBanner]
420
420
  # @overload profile_banner(options={})
@@ -1,8 +1,8 @@
1
1
  module Twitter
2
2
  class Version
3
3
  MAJOR = 4 unless defined? Twitter::Version::MAJOR
4
- MINOR = 4 unless defined? Twitter::Version::MINOR
5
- PATCH = 4 unless defined? Twitter::Version::PATCH
4
+ MINOR = 5 unless defined? Twitter::Version::MINOR
5
+ PATCH = 0 unless defined? Twitter::Version::PATCH
6
6
  PRE = nil unless defined? Twitter::Version::PRE
7
7
 
8
8
  class << self
@@ -668,4 +668,23 @@ describe Twitter::API::FriendsAndFollowers do
668
668
  end
669
669
  end
670
670
 
671
+ describe "#no_retweet_ids" do
672
+ before do
673
+ stub_get("/1.1/friendships/no_retweets/ids.json").to_return(:body => fixture("ids.json"), :headers => {:content_type => "application/json; charset=utf-8"})
674
+ end
675
+ it "requests the correct resource" do
676
+ @client.no_retweet_ids
677
+ expect(a_get("/1.1/friendships/no_retweets/ids.json")).to have_been_made
678
+ end
679
+ it "requests the correct resource when the alias is called" do
680
+ @client.no_retweets_ids
681
+ expect(a_get("/1.1/friendships/no_retweets/ids.json")).to have_been_made
682
+ end
683
+ it "returns users ids of those that do not wish to be retweeted" do
684
+ no_retweet_ids = @client.no_retweet_ids
685
+ expect(no_retweet_ids).to be_an Array
686
+ expect(no_retweet_ids.first).to be_an Integer
687
+ expect(no_retweet_ids.first).to eq 47
688
+ end
689
+ end
671
690
  end
@@ -5,9 +5,6 @@ Gem::Specification.new do |spec|
5
5
  spec.add_dependency 'faraday', ['~> 0.8', '< 0.10']
6
6
  spec.add_dependency 'multi_json', ['~> 1.0']
7
7
  spec.add_dependency 'simple_oauth', ['~> 0.2']
8
- spec.add_development_dependency 'kramdown'
9
- spec.add_development_dependency 'pry'
10
- spec.add_development_dependency 'simplecov'
11
8
  spec.authors = ["John Nunemaker", "Wynn Netherland", "Erik Michaels-Ober", "Steve Richert"]
12
9
  spec.description = %q{A Ruby interface to the Twitter API.}
13
10
  spec.email = ['nunemaker@gmail.com', 'wynn.netherland@gmail.com', 'sferik@gmail.com', 'steve.richert@gmail.com']
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: twitter
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 4.4.4
5
+ version: 4.5.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - John Nunemaker
@@ -12,9 +12,10 @@ authors:
12
12
  autorequire:
13
13
  bindir: bin
14
14
  cert_chain: []
15
- date: 2013-01-10 00:00:00.000000000 Z
15
+ date: 2013-01-26 00:00:00.000000000 Z
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
18
+ prerelease: false
18
19
  version_requirements: !ruby/object:Gem::Requirement
19
20
  requirements:
20
21
  - - ~>
@@ -24,9 +25,8 @@ dependencies:
24
25
  - !ruby/object:Gem::Version
25
26
  version: '0.10'
26
27
  none: false
27
- name: faraday
28
28
  type: :runtime
29
- prerelease: false
29
+ name: faraday
30
30
  requirement: !ruby/object:Gem::Requirement
31
31
  requirements:
32
32
  - - ~>
@@ -37,15 +37,15 @@ dependencies:
37
37
  version: '0.10'
38
38
  none: false
39
39
  - !ruby/object:Gem::Dependency
40
+ prerelease: false
40
41
  version_requirements: !ruby/object:Gem::Requirement
41
42
  requirements:
42
43
  - - ~>
43
44
  - !ruby/object:Gem::Version
44
45
  version: '1.0'
45
46
  none: false
46
- name: multi_json
47
47
  type: :runtime
48
- prerelease: false
48
+ name: multi_json
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
51
  - - ~>
@@ -53,69 +53,21 @@ dependencies:
53
53
  version: '1.0'
54
54
  none: false
55
55
  - !ruby/object:Gem::Dependency
56
+ prerelease: false
56
57
  version_requirements: !ruby/object:Gem::Requirement
57
58
  requirements:
58
59
  - - ~>
59
60
  - !ruby/object:Gem::Version
60
61
  version: '0.2'
61
62
  none: false
62
- name: simple_oauth
63
63
  type: :runtime
64
- prerelease: false
64
+ name: simple_oauth
65
65
  requirement: !ruby/object:Gem::Requirement
66
66
  requirements:
67
67
  - - ~>
68
68
  - !ruby/object:Gem::Version
69
69
  version: '0.2'
70
70
  none: false
71
- - !ruby/object:Gem::Dependency
72
- version_requirements: !ruby/object:Gem::Requirement
73
- requirements:
74
- - - ! '>='
75
- - !ruby/object:Gem::Version
76
- version: '0'
77
- none: false
78
- name: kramdown
79
- type: :development
80
- prerelease: false
81
- requirement: !ruby/object:Gem::Requirement
82
- requirements:
83
- - - ! '>='
84
- - !ruby/object:Gem::Version
85
- version: '0'
86
- none: false
87
- - !ruby/object:Gem::Dependency
88
- version_requirements: !ruby/object:Gem::Requirement
89
- requirements:
90
- - - ! '>='
91
- - !ruby/object:Gem::Version
92
- version: '0'
93
- none: false
94
- name: pry
95
- type: :development
96
- prerelease: false
97
- requirement: !ruby/object:Gem::Requirement
98
- requirements:
99
- - - ! '>='
100
- - !ruby/object:Gem::Version
101
- version: '0'
102
- none: false
103
- - !ruby/object:Gem::Dependency
104
- version_requirements: !ruby/object:Gem::Requirement
105
- requirements:
106
- - - ! '>='
107
- - !ruby/object:Gem::Version
108
- version: '0'
109
- none: false
110
- name: simplecov
111
- type: :development
112
- prerelease: false
113
- requirement: !ruby/object:Gem::Requirement
114
- requirements:
115
- - - ! '>='
116
- - !ruby/object:Gem::Version
117
- version: '0'
118
- none: false
119
71
  description: A Ruby interface to the Twitter API.
120
72
  email:
121
73
  - nunemaker@gmail.com
@@ -376,7 +328,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
376
328
  none: false
377
329
  requirements: []
378
330
  rubyforge_project:
379
- rubygems_version: 1.8.23
331
+ rubygems_version: 1.8.25
380
332
  signing_key:
381
333
  specification_version: 3
382
334
  summary: A Ruby interface to the Twitter API.