twitter 5.6.0 → 5.7.0
Sign up to get free protection for your applications and to get access to all the features.
- data.tar.gz.sig +0 -0
- data/.yardopts +1 -0
- data/CHANGELOG.md +8 -0
- data/README.md +3 -3
- data/Rakefile +1 -1
- data/lib/twitter/base.rb +0 -8
- data/lib/twitter/client.rb +2 -1
- data/lib/twitter/cursor.rb +2 -15
- data/lib/twitter/error.rb +90 -18
- data/lib/twitter/geo_results.rb +0 -10
- data/lib/twitter/request.rb +4 -4
- data/lib/twitter/rest/api.rb +43 -0
- data/lib/twitter/rest/client.rb +10 -44
- data/lib/twitter/rest/direct_messages.rb +138 -0
- data/lib/twitter/rest/favorites.rb +108 -0
- data/lib/twitter/rest/friends_and_followers.rb +281 -0
- data/lib/twitter/rest/help.rb +56 -0
- data/lib/twitter/rest/lists.rb +497 -0
- data/lib/twitter/rest/oauth.rb +65 -0
- data/lib/twitter/rest/places_and_geo.rb +84 -0
- data/lib/twitter/rest/request/multipart_with_file.rb +5 -5
- data/lib/twitter/rest/response/parse_json.rb +2 -4
- data/lib/twitter/rest/response/raise_error.rb +24 -15
- data/lib/twitter/rest/saved_searches.rb +93 -0
- data/lib/twitter/rest/search.rb +37 -0
- data/lib/twitter/rest/spam_reporting.rb +27 -0
- data/lib/twitter/rest/suggested_users.rb +49 -0
- data/lib/twitter/rest/timelines.rb +200 -0
- data/lib/twitter/rest/trends.rb +57 -0
- data/lib/twitter/rest/tweets.rb +309 -0
- data/lib/twitter/rest/undocumented.rb +49 -0
- data/lib/twitter/rest/users.rb +383 -0
- data/lib/twitter/rest/utils.rb +205 -0
- data/lib/twitter/search_results.rb +2 -13
- data/lib/twitter/trend_results.rb +0 -10
- data/lib/twitter/version.rb +1 -1
- data/spec/helper.rb +1 -1
- data/spec/twitter/error_spec.rb +26 -42
- data/spec/twitter/rest/{api/direct_messages_spec.rb → direct_messages_spec.rb} +1 -1
- data/spec/twitter/rest/{api/favorites_spec.rb → favorites_spec.rb} +1 -1
- data/spec/twitter/rest/{api/friends_and_followers_spec.rb → friends_and_followers_spec.rb} +1 -1
- data/spec/twitter/rest/{api/geo_spec.rb → geo_spec.rb} +1 -1
- data/spec/twitter/rest/{api/help_spec.rb → help_spec.rb} +1 -1
- data/spec/twitter/rest/{api/lists_spec.rb → lists_spec.rb} +1 -1
- data/spec/twitter/rest/{api/oauth_spec.rb → oauth_spec.rb} +4 -8
- data/spec/twitter/rest/{api/saved_searches_spec.rb → saved_searches_spec.rb} +1 -1
- data/spec/twitter/rest/{api/search_spec.rb → search_spec.rb} +1 -1
- data/spec/twitter/rest/{api/spam_reporting_spec.rb → spam_reporting_spec.rb} +1 -1
- data/spec/twitter/rest/{api/suggested_users_spec.rb → suggested_users_spec.rb} +1 -1
- data/spec/twitter/rest/{api/timelines_spec.rb → timelines_spec.rb} +1 -1
- data/spec/twitter/rest/{api/trends_spec.rb → trends_spec.rb} +1 -1
- data/spec/twitter/rest/{api/tweets_spec.rb → tweets_spec.rb} +74 -5
- data/spec/twitter/rest/{api/undocumented_spec.rb → undocumented_spec.rb} +1 -1
- data/spec/twitter/rest/{api/users_spec.rb → users_spec.rb} +5 -5
- data/spec/twitter/tweet_spec.rb +1 -1
- data/twitter.gemspec +0 -1
- metadata +247 -237
- metadata.gz.sig +0 -0
- checksums.yaml +0 -7
- checksums.yaml.gz.sig +0 -0
- data/lib/twitter/error/already_favorited.rb +0 -10
- data/lib/twitter/error/already_posted.rb +0 -10
- data/lib/twitter/error/already_retweeted.rb +0 -10
- data/lib/twitter/error/bad_gateway.rb +0 -10
- data/lib/twitter/error/bad_request.rb +0 -10
- data/lib/twitter/error/configuration_error.rb +0 -8
- data/lib/twitter/error/forbidden.rb +0 -10
- data/lib/twitter/error/gateway_timeout.rb +0 -10
- data/lib/twitter/error/internal_server_error.rb +0 -10
- data/lib/twitter/error/not_acceptable.rb +0 -10
- data/lib/twitter/error/not_found.rb +0 -10
- data/lib/twitter/error/request_timeout.rb +0 -10
- data/lib/twitter/error/service_unavailable.rb +0 -10
- data/lib/twitter/error/too_many_requests.rb +0 -12
- data/lib/twitter/error/unauthorized.rb +0 -10
- data/lib/twitter/error/unprocessable_entity.rb +0 -10
- data/lib/twitter/rest/api/direct_messages.rb +0 -140
- data/lib/twitter/rest/api/favorites.rb +0 -115
- data/lib/twitter/rest/api/friends_and_followers.rb +0 -284
- data/lib/twitter/rest/api/help.rb +0 -58
- data/lib/twitter/rest/api/lists.rb +0 -500
- data/lib/twitter/rest/api/oauth.rb +0 -67
- data/lib/twitter/rest/api/places_and_geo.rb +0 -86
- data/lib/twitter/rest/api/saved_searches.rb +0 -95
- data/lib/twitter/rest/api/search.rb +0 -39
- data/lib/twitter/rest/api/spam_reporting.rb +0 -29
- data/lib/twitter/rest/api/suggested_users.rb +0 -51
- data/lib/twitter/rest/api/timelines.rb +0 -202
- data/lib/twitter/rest/api/trends.rb +0 -58
- data/lib/twitter/rest/api/tweets.rb +0 -297
- data/lib/twitter/rest/api/undocumented.rb +0 -51
- data/lib/twitter/rest/api/users.rb +0 -383
- data/lib/twitter/rest/api/utils.rb +0 -212
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'helper'
|
2
2
|
|
3
|
-
describe Twitter::REST::
|
3
|
+
describe Twitter::REST::Tweets do
|
4
4
|
|
5
5
|
before do
|
6
6
|
@client = Twitter::REST::Client.new(:consumer_key => 'CK', :consumer_secret => 'CS', :access_token => 'AT', :access_token_secret => 'AS')
|
@@ -221,9 +221,17 @@ describe Twitter::REST::API::Tweets do
|
|
221
221
|
context 'already posted' do
|
222
222
|
before do
|
223
223
|
stub_post('/1.1/statuses/update.json').to_return(:status => 403, :body => fixture('already_posted.json'), :headers => {:content_type => 'application/json; charset=utf-8'})
|
224
|
+
stub_get('/1.1/statuses/user_timeline.json').with(:query => {:count => 1}).to_return(:body => fixture('statuses.json'), :headers => {:content_type => 'application/json; charset=utf-8'})
|
224
225
|
end
|
225
|
-
it '
|
226
|
-
|
226
|
+
it 'requests the correct resources' do
|
227
|
+
@client.update("The problem with your code is that it's doing exactly what you told it to do.")
|
228
|
+
expect(a_post('/1.1/statuses/update.json').with(:body => {:status => "The problem with your code is that it's doing exactly what you told it to do."})).to have_been_made
|
229
|
+
expect(a_get('/1.1/statuses/user_timeline.json').with(:query => {:count => 1})).to have_been_made
|
230
|
+
end
|
231
|
+
it 'returns a Tweet' do
|
232
|
+
tweet = @client.update("The problem with your code is that it's doing exactly what you told it to do.")
|
233
|
+
expect(tweet).to be_a Twitter::Tweet
|
234
|
+
expect(tweet.text).to eq('Happy Birthday @imdane. Watch out for those @rally pranksters!')
|
227
235
|
end
|
228
236
|
end
|
229
237
|
context 'with an in-reply-to status' do
|
@@ -266,6 +274,67 @@ describe Twitter::REST::API::Tweets do
|
|
266
274
|
end
|
267
275
|
end
|
268
276
|
|
277
|
+
describe '#update!' do
|
278
|
+
before do
|
279
|
+
stub_post('/1.1/statuses/update.json').with(:body => {:status => "The problem with your code is that it's doing exactly what you told it to do."}).to_return(:body => fixture('status.json'), :headers => {:content_type => 'application/json; charset=utf-8'})
|
280
|
+
end
|
281
|
+
it 'requests the correct resource' do
|
282
|
+
@client.update!("The problem with your code is that it's doing exactly what you told it to do.")
|
283
|
+
expect(a_post('/1.1/statuses/update.json').with(:body => {:status => "The problem with your code is that it's doing exactly what you told it to do."})).to have_been_made
|
284
|
+
end
|
285
|
+
it 'returns a Tweet' do
|
286
|
+
tweet = @client.update!("The problem with your code is that it's doing exactly what you told it to do.")
|
287
|
+
expect(tweet).to be_a Twitter::Tweet
|
288
|
+
expect(tweet.text).to eq("The problem with your code is that it's doing exactly what you told it to do.")
|
289
|
+
end
|
290
|
+
context 'already posted' do
|
291
|
+
before do
|
292
|
+
stub_post('/1.1/statuses/update.json').to_return(:status => 403, :body => fixture('already_posted.json'), :headers => {:content_type => 'application/json; charset=utf-8'})
|
293
|
+
end
|
294
|
+
it 'raises an DuplicateStatus error' do
|
295
|
+
expect { @client.update!("The problem with your code is that it's doing exactly what you told it to do.") }.to raise_error(Twitter::Error::DuplicateStatus)
|
296
|
+
end
|
297
|
+
end
|
298
|
+
context 'with an in-reply-to status' do
|
299
|
+
before do
|
300
|
+
@tweet = Twitter::Tweet.new(:id => 1)
|
301
|
+
stub_post('/1.1/statuses/update.json').with(:body => {:status => "The problem with your code is that it's doing exactly what you told it to do.", :in_reply_to_status_id => '1'}).to_return(:body => fixture('status.json'), :headers => {:content_type => 'application/json; charset=utf-8'})
|
302
|
+
end
|
303
|
+
it 'requests the correct resource' do
|
304
|
+
@client.update!("The problem with your code is that it's doing exactly what you told it to do.", :in_reply_to_status => @tweet)
|
305
|
+
expect(a_post('/1.1/statuses/update.json').with(:body => {:status => "The problem with your code is that it's doing exactly what you told it to do.", :in_reply_to_status_id => '1'})).to have_been_made
|
306
|
+
end
|
307
|
+
end
|
308
|
+
context 'with an in-reply-to status ID' do
|
309
|
+
before do
|
310
|
+
stub_post('/1.1/statuses/update.json').with(:body => {:status => "The problem with your code is that it's doing exactly what you told it to do.", :in_reply_to_status_id => '1'}).to_return(:body => fixture('status.json'), :headers => {:content_type => 'application/json; charset=utf-8'})
|
311
|
+
end
|
312
|
+
it 'requests the correct resource' do
|
313
|
+
@client.update!("The problem with your code is that it's doing exactly what you told it to do.", :in_reply_to_status_id => 1)
|
314
|
+
expect(a_post('/1.1/statuses/update.json').with(:body => {:status => "The problem with your code is that it's doing exactly what you told it to do.", :in_reply_to_status_id => '1'})).to have_been_made
|
315
|
+
end
|
316
|
+
end
|
317
|
+
context 'with a place' do
|
318
|
+
before do
|
319
|
+
@place = Twitter::Place.new(:woeid => 'df51dec6f4ee2b2c')
|
320
|
+
stub_post('/1.1/statuses/update.json').with(:body => {:status => "The problem with your code is that it's doing exactly what you told it to do.", :place_id => 'df51dec6f4ee2b2c'}).to_return(:body => fixture('status.json'), :headers => {:content_type => 'application/json; charset=utf-8'})
|
321
|
+
end
|
322
|
+
it 'requests the correct resource' do
|
323
|
+
@client.update!("The problem with your code is that it's doing exactly what you told it to do.", :place => @place)
|
324
|
+
expect(a_post('/1.1/statuses/update.json').with(:body => {:status => "The problem with your code is that it's doing exactly what you told it to do.", :place_id => 'df51dec6f4ee2b2c'})).to have_been_made
|
325
|
+
end
|
326
|
+
end
|
327
|
+
context 'with a place ID' do
|
328
|
+
before do
|
329
|
+
stub_post('/1.1/statuses/update.json').with(:body => {:status => "The problem with your code is that it's doing exactly what you told it to do.", :place_id => 'df51dec6f4ee2b2c'}).to_return(:body => fixture('status.json'), :headers => {:content_type => 'application/json; charset=utf-8'})
|
330
|
+
end
|
331
|
+
it 'requests the correct resource' do
|
332
|
+
@client.update!("The problem with your code is that it's doing exactly what you told it to do.", :place_id => 'df51dec6f4ee2b2c')
|
333
|
+
expect(a_post('/1.1/statuses/update.json').with(:body => {:status => "The problem with your code is that it's doing exactly what you told it to do.", :place_id => 'df51dec6f4ee2b2c'})).to have_been_made
|
334
|
+
end
|
335
|
+
end
|
336
|
+
end
|
337
|
+
|
269
338
|
describe '#retweet' do
|
270
339
|
before do
|
271
340
|
stub_post('/1.1/statuses/retweet/25938088801.json').to_return(:body => fixture('retweet.json'), :headers => {:content_type => 'application/json; charset=utf-8'})
|
@@ -409,8 +478,8 @@ describe Twitter::REST::API::Tweets do
|
|
409
478
|
before do
|
410
479
|
stub_post('/1.1/statuses/update_with_media.json').to_return(:status => 403, :body => fixture('already_posted.json'), :headers => {:content_type => 'application/json; charset=utf-8'})
|
411
480
|
end
|
412
|
-
it 'raises an
|
413
|
-
expect { @client.update_with_media("The problem with your code is that it's doing exactly what you told it to do.", fixture('pbjt.gif')) }.to raise_error(Twitter::Error::
|
481
|
+
it 'raises an DuplicateStatus error' do
|
482
|
+
expect { @client.update_with_media("The problem with your code is that it's doing exactly what you told it to do.", fixture('pbjt.gif')) }.to raise_error(Twitter::Error::DuplicateStatus)
|
414
483
|
end
|
415
484
|
end
|
416
485
|
end
|
@@ -1,6 +1,6 @@
|
|
1
1
|
require 'helper'
|
2
2
|
|
3
|
-
describe Twitter::REST::
|
3
|
+
describe Twitter::REST::Users do
|
4
4
|
|
5
5
|
before do
|
6
6
|
@client = Twitter::REST::Client.new(:consumer_key => 'CK', :consumer_secret => 'CS', :access_token => 'AT', :access_token_secret => 'AS')
|
@@ -647,8 +647,8 @@ describe Twitter::REST::API::Users do
|
|
647
647
|
expect(a_post('/1.1/account/remove_profile_banner.json')).to have_been_made
|
648
648
|
end
|
649
649
|
it 'returns a user' do
|
650
|
-
|
651
|
-
expect(
|
650
|
+
response = @client.remove_profile_banner
|
651
|
+
expect(response).to be true
|
652
652
|
end
|
653
653
|
end
|
654
654
|
|
@@ -661,8 +661,8 @@ describe Twitter::REST::API::Users do
|
|
661
661
|
expect(a_post('/1.1/account/update_profile_banner.json')).to have_been_made
|
662
662
|
end
|
663
663
|
it 'returns a user' do
|
664
|
-
|
665
|
-
expect(
|
664
|
+
response = @client.update_profile_banner(fixture('me.jpeg'))
|
665
|
+
expect(response).to be true
|
666
666
|
end
|
667
667
|
end
|
668
668
|
|
data/spec/twitter/tweet_spec.rb
CHANGED
data/twitter.gemspec
CHANGED
@@ -5,7 +5,6 @@ require 'twitter/version'
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.add_dependency 'addressable', '~> 2.3'
|
7
7
|
spec.add_dependency 'buftok', '~> 0.2.0'
|
8
|
-
spec.add_dependency 'descendants_tracker', '~> 0.0.3'
|
9
8
|
spec.add_dependency 'equalizer', '~> 0.0.9'
|
10
9
|
spec.add_dependency 'faraday', '~> 0.9.0'
|
11
10
|
spec.add_dependency 'http', '~> 0.5.0'
|
metadata
CHANGED
@@ -1,9 +1,15 @@
|
|
1
|
-
--- !ruby/object:Gem::Specification
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
2
|
name: twitter
|
3
|
-
version: !ruby/object:Gem::Version
|
4
|
-
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 43
|
5
|
+
prerelease:
|
6
|
+
segments:
|
7
|
+
- 5
|
8
|
+
- 7
|
9
|
+
- 0
|
10
|
+
version: 5.7.0
|
5
11
|
platform: ruby
|
6
|
-
authors:
|
12
|
+
authors:
|
7
13
|
- Erik Michaels-Ober
|
8
14
|
- John Nunemaker
|
9
15
|
- Wynn Netherland
|
@@ -11,7 +17,7 @@ authors:
|
|
11
17
|
- Steve Agalloco
|
12
18
|
autorequire:
|
13
19
|
bindir: bin
|
14
|
-
cert_chain:
|
20
|
+
cert_chain:
|
15
21
|
- |
|
16
22
|
-----BEGIN CERTIFICATE-----
|
17
23
|
MIIDLjCCAhagAwIBAgIBADANBgkqhkiG9w0BAQUFADA9MQ8wDQYDVQQDDAZzZmVy
|
@@ -33,190 +39,198 @@ cert_chain:
|
|
33
39
|
Sf3lVKpBCWgRpGTvy45XVpB+59y33PJmEuQ1PTEOYvQyao9UKMAAaAN/7qWQtjl0
|
34
40
|
hlw=
|
35
41
|
-----END CERTIFICATE-----
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
requirement: !ruby/object:Gem::Requirement
|
41
|
-
requirements:
|
42
|
-
- - "~>"
|
43
|
-
- !ruby/object:Gem::Version
|
44
|
-
version: '2.3'
|
42
|
+
|
43
|
+
date: 2014-02-10 00:00:00 Z
|
44
|
+
dependencies:
|
45
|
+
- !ruby/object:Gem::Dependency
|
45
46
|
type: :runtime
|
47
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
48
|
+
none: false
|
49
|
+
requirements:
|
50
|
+
- - ~>
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
hash: 5
|
53
|
+
segments:
|
54
|
+
- 2
|
55
|
+
- 3
|
56
|
+
version: "2.3"
|
57
|
+
version_requirements: *id001
|
58
|
+
name: addressable
|
46
59
|
prerelease: false
|
47
|
-
|
48
|
-
requirements:
|
49
|
-
- - "~>"
|
50
|
-
- !ruby/object:Gem::Version
|
51
|
-
version: '2.3'
|
52
|
-
- !ruby/object:Gem::Dependency
|
53
|
-
name: buftok
|
54
|
-
requirement: !ruby/object:Gem::Requirement
|
55
|
-
requirements:
|
56
|
-
- - "~>"
|
57
|
-
- !ruby/object:Gem::Version
|
58
|
-
version: 0.2.0
|
60
|
+
- !ruby/object:Gem::Dependency
|
59
61
|
type: :runtime
|
60
|
-
|
61
|
-
|
62
|
-
requirements:
|
63
|
-
- -
|
64
|
-
- !ruby/object:Gem::Version
|
62
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
63
|
+
none: false
|
64
|
+
requirements:
|
65
|
+
- - ~>
|
66
|
+
- !ruby/object:Gem::Version
|
67
|
+
hash: 23
|
68
|
+
segments:
|
69
|
+
- 0
|
70
|
+
- 2
|
71
|
+
- 0
|
65
72
|
version: 0.2.0
|
66
|
-
|
67
|
-
name:
|
68
|
-
requirement: !ruby/object:Gem::Requirement
|
69
|
-
requirements:
|
70
|
-
- - "~>"
|
71
|
-
- !ruby/object:Gem::Version
|
72
|
-
version: 0.0.3
|
73
|
-
type: :runtime
|
73
|
+
version_requirements: *id002
|
74
|
+
name: buftok
|
74
75
|
prerelease: false
|
75
|
-
|
76
|
-
requirements:
|
77
|
-
- - "~>"
|
78
|
-
- !ruby/object:Gem::Version
|
79
|
-
version: 0.0.3
|
80
|
-
- !ruby/object:Gem::Dependency
|
81
|
-
name: equalizer
|
82
|
-
requirement: !ruby/object:Gem::Requirement
|
83
|
-
requirements:
|
84
|
-
- - "~>"
|
85
|
-
- !ruby/object:Gem::Version
|
86
|
-
version: 0.0.9
|
76
|
+
- !ruby/object:Gem::Dependency
|
87
77
|
type: :runtime
|
88
|
-
|
89
|
-
|
90
|
-
requirements:
|
91
|
-
- -
|
92
|
-
- !ruby/object:Gem::Version
|
78
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
79
|
+
none: false
|
80
|
+
requirements:
|
81
|
+
- - ~>
|
82
|
+
- !ruby/object:Gem::Version
|
83
|
+
hash: 13
|
84
|
+
segments:
|
85
|
+
- 0
|
86
|
+
- 0
|
87
|
+
- 9
|
93
88
|
version: 0.0.9
|
94
|
-
|
95
|
-
name:
|
96
|
-
requirement: !ruby/object:Gem::Requirement
|
97
|
-
requirements:
|
98
|
-
- - "~>"
|
99
|
-
- !ruby/object:Gem::Version
|
100
|
-
version: 0.9.0
|
101
|
-
type: :runtime
|
89
|
+
version_requirements: *id003
|
90
|
+
name: equalizer
|
102
91
|
prerelease: false
|
103
|
-
|
104
|
-
requirements:
|
105
|
-
- - "~>"
|
106
|
-
- !ruby/object:Gem::Version
|
107
|
-
version: 0.9.0
|
108
|
-
- !ruby/object:Gem::Dependency
|
109
|
-
name: http
|
110
|
-
requirement: !ruby/object:Gem::Requirement
|
111
|
-
requirements:
|
112
|
-
- - "~>"
|
113
|
-
- !ruby/object:Gem::Version
|
114
|
-
version: 0.5.0
|
92
|
+
- !ruby/object:Gem::Dependency
|
115
93
|
type: :runtime
|
94
|
+
requirement: &id004 !ruby/object:Gem::Requirement
|
95
|
+
none: false
|
96
|
+
requirements:
|
97
|
+
- - ~>
|
98
|
+
- !ruby/object:Gem::Version
|
99
|
+
hash: 59
|
100
|
+
segments:
|
101
|
+
- 0
|
102
|
+
- 9
|
103
|
+
- 0
|
104
|
+
version: 0.9.0
|
105
|
+
version_requirements: *id004
|
106
|
+
name: faraday
|
116
107
|
prerelease: false
|
117
|
-
|
118
|
-
requirements:
|
119
|
-
- - "~>"
|
120
|
-
- !ruby/object:Gem::Version
|
121
|
-
version: 0.5.0
|
122
|
-
- !ruby/object:Gem::Dependency
|
123
|
-
name: http_parser.rb
|
124
|
-
requirement: !ruby/object:Gem::Requirement
|
125
|
-
requirements:
|
126
|
-
- - "~>"
|
127
|
-
- !ruby/object:Gem::Version
|
128
|
-
version: 0.6.0
|
108
|
+
- !ruby/object:Gem::Dependency
|
129
109
|
type: :runtime
|
110
|
+
requirement: &id005 !ruby/object:Gem::Requirement
|
111
|
+
none: false
|
112
|
+
requirements:
|
113
|
+
- - ~>
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
hash: 11
|
116
|
+
segments:
|
117
|
+
- 0
|
118
|
+
- 5
|
119
|
+
- 0
|
120
|
+
version: 0.5.0
|
121
|
+
version_requirements: *id005
|
122
|
+
name: http
|
130
123
|
prerelease: false
|
131
|
-
|
132
|
-
requirements:
|
133
|
-
- - "~>"
|
134
|
-
- !ruby/object:Gem::Version
|
135
|
-
version: 0.6.0
|
136
|
-
- !ruby/object:Gem::Dependency
|
137
|
-
name: json
|
138
|
-
requirement: !ruby/object:Gem::Requirement
|
139
|
-
requirements:
|
140
|
-
- - "~>"
|
141
|
-
- !ruby/object:Gem::Version
|
142
|
-
version: '1.8'
|
124
|
+
- !ruby/object:Gem::Dependency
|
143
125
|
type: :runtime
|
126
|
+
requirement: &id006 !ruby/object:Gem::Requirement
|
127
|
+
none: false
|
128
|
+
requirements:
|
129
|
+
- - ~>
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
hash: 7
|
132
|
+
segments:
|
133
|
+
- 0
|
134
|
+
- 6
|
135
|
+
- 0
|
136
|
+
version: 0.6.0
|
137
|
+
version_requirements: *id006
|
138
|
+
name: http_parser.rb
|
144
139
|
prerelease: false
|
145
|
-
|
146
|
-
requirements:
|
147
|
-
- - "~>"
|
148
|
-
- !ruby/object:Gem::Version
|
149
|
-
version: '1.8'
|
150
|
-
- !ruby/object:Gem::Dependency
|
151
|
-
name: memoizable
|
152
|
-
requirement: !ruby/object:Gem::Requirement
|
153
|
-
requirements:
|
154
|
-
- - "~>"
|
155
|
-
- !ruby/object:Gem::Version
|
156
|
-
version: 0.4.0
|
140
|
+
- !ruby/object:Gem::Dependency
|
157
141
|
type: :runtime
|
142
|
+
requirement: &id007 !ruby/object:Gem::Requirement
|
143
|
+
none: false
|
144
|
+
requirements:
|
145
|
+
- - ~>
|
146
|
+
- !ruby/object:Gem::Version
|
147
|
+
hash: 31
|
148
|
+
segments:
|
149
|
+
- 1
|
150
|
+
- 8
|
151
|
+
version: "1.8"
|
152
|
+
version_requirements: *id007
|
153
|
+
name: json
|
158
154
|
prerelease: false
|
159
|
-
|
160
|
-
requirements:
|
161
|
-
- - "~>"
|
162
|
-
- !ruby/object:Gem::Version
|
163
|
-
version: 0.4.0
|
164
|
-
- !ruby/object:Gem::Dependency
|
165
|
-
name: naught
|
166
|
-
requirement: !ruby/object:Gem::Requirement
|
167
|
-
requirements:
|
168
|
-
- - "~>"
|
169
|
-
- !ruby/object:Gem::Version
|
170
|
-
version: '1.0'
|
155
|
+
- !ruby/object:Gem::Dependency
|
171
156
|
type: :runtime
|
157
|
+
requirement: &id008 !ruby/object:Gem::Requirement
|
158
|
+
none: false
|
159
|
+
requirements:
|
160
|
+
- - ~>
|
161
|
+
- !ruby/object:Gem::Version
|
162
|
+
hash: 15
|
163
|
+
segments:
|
164
|
+
- 0
|
165
|
+
- 4
|
166
|
+
- 0
|
167
|
+
version: 0.4.0
|
168
|
+
version_requirements: *id008
|
169
|
+
name: memoizable
|
172
170
|
prerelease: false
|
173
|
-
|
174
|
-
requirements:
|
175
|
-
- - "~>"
|
176
|
-
- !ruby/object:Gem::Version
|
177
|
-
version: '1.0'
|
178
|
-
- !ruby/object:Gem::Dependency
|
179
|
-
name: simple_oauth
|
180
|
-
requirement: !ruby/object:Gem::Requirement
|
181
|
-
requirements:
|
182
|
-
- - "~>"
|
183
|
-
- !ruby/object:Gem::Version
|
184
|
-
version: 0.2.0
|
171
|
+
- !ruby/object:Gem::Dependency
|
185
172
|
type: :runtime
|
173
|
+
requirement: &id009 !ruby/object:Gem::Requirement
|
174
|
+
none: false
|
175
|
+
requirements:
|
176
|
+
- - ~>
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
hash: 15
|
179
|
+
segments:
|
180
|
+
- 1
|
181
|
+
- 0
|
182
|
+
version: "1.0"
|
183
|
+
version_requirements: *id009
|
184
|
+
name: naught
|
186
185
|
prerelease: false
|
187
|
-
|
188
|
-
|
189
|
-
|
190
|
-
|
186
|
+
- !ruby/object:Gem::Dependency
|
187
|
+
type: :runtime
|
188
|
+
requirement: &id010 !ruby/object:Gem::Requirement
|
189
|
+
none: false
|
190
|
+
requirements:
|
191
|
+
- - ~>
|
192
|
+
- !ruby/object:Gem::Version
|
193
|
+
hash: 23
|
194
|
+
segments:
|
195
|
+
- 0
|
196
|
+
- 2
|
197
|
+
- 0
|
191
198
|
version: 0.2.0
|
192
|
-
|
193
|
-
name:
|
194
|
-
|
195
|
-
|
196
|
-
- - "~>"
|
197
|
-
- !ruby/object:Gem::Version
|
198
|
-
version: '1.0'
|
199
|
+
version_requirements: *id010
|
200
|
+
name: simple_oauth
|
201
|
+
prerelease: false
|
202
|
+
- !ruby/object:Gem::Dependency
|
199
203
|
type: :development
|
204
|
+
requirement: &id011 !ruby/object:Gem::Requirement
|
205
|
+
none: false
|
206
|
+
requirements:
|
207
|
+
- - ~>
|
208
|
+
- !ruby/object:Gem::Version
|
209
|
+
hash: 15
|
210
|
+
segments:
|
211
|
+
- 1
|
212
|
+
- 0
|
213
|
+
version: "1.0"
|
214
|
+
version_requirements: *id011
|
215
|
+
name: bundler
|
200
216
|
prerelease: false
|
201
|
-
version_requirements: !ruby/object:Gem::Requirement
|
202
|
-
requirements:
|
203
|
-
- - "~>"
|
204
|
-
- !ruby/object:Gem::Version
|
205
|
-
version: '1.0'
|
206
217
|
description: A Ruby interface to the Twitter API.
|
207
|
-
email:
|
218
|
+
email:
|
208
219
|
- sferik@gmail.com
|
209
220
|
executables: []
|
221
|
+
|
210
222
|
extensions: []
|
223
|
+
|
211
224
|
extra_rdoc_files: []
|
212
|
-
|
213
|
-
|
225
|
+
|
226
|
+
files:
|
227
|
+
- .yardopts
|
214
228
|
- CHANGELOG.md
|
215
229
|
- CONTRIBUTING.md
|
216
230
|
- LICENSE.md
|
217
231
|
- README.md
|
218
232
|
- Rakefile
|
219
|
-
-
|
233
|
+
- twitter.gemspec
|
220
234
|
- lib/twitter/arguments.rb
|
221
235
|
- lib/twitter/base.rb
|
222
236
|
- lib/twitter/basic_user.rb
|
@@ -226,33 +240,17 @@ files:
|
|
226
240
|
- lib/twitter/cursor.rb
|
227
241
|
- lib/twitter/direct_message.rb
|
228
242
|
- lib/twitter/entities.rb
|
229
|
-
- lib/twitter/entity.rb
|
230
243
|
- lib/twitter/entity/hashtag.rb
|
231
244
|
- lib/twitter/entity/symbol.rb
|
232
245
|
- lib/twitter/entity/uri.rb
|
233
246
|
- lib/twitter/entity/user_mention.rb
|
247
|
+
- lib/twitter/entity.rb
|
234
248
|
- lib/twitter/enumerable.rb
|
235
249
|
- lib/twitter/error.rb
|
236
|
-
- lib/twitter/error/already_favorited.rb
|
237
|
-
- lib/twitter/error/already_posted.rb
|
238
|
-
- lib/twitter/error/already_retweeted.rb
|
239
|
-
- lib/twitter/error/bad_gateway.rb
|
240
|
-
- lib/twitter/error/bad_request.rb
|
241
|
-
- lib/twitter/error/configuration_error.rb
|
242
|
-
- lib/twitter/error/forbidden.rb
|
243
|
-
- lib/twitter/error/gateway_timeout.rb
|
244
|
-
- lib/twitter/error/internal_server_error.rb
|
245
|
-
- lib/twitter/error/not_acceptable.rb
|
246
|
-
- lib/twitter/error/not_found.rb
|
247
|
-
- lib/twitter/error/request_timeout.rb
|
248
|
-
- lib/twitter/error/service_unavailable.rb
|
249
|
-
- lib/twitter/error/too_many_requests.rb
|
250
|
-
- lib/twitter/error/unauthorized.rb
|
251
|
-
- lib/twitter/error/unprocessable_entity.rb
|
252
250
|
- lib/twitter/factory.rb
|
253
|
-
- lib/twitter/geo.rb
|
254
251
|
- lib/twitter/geo/point.rb
|
255
252
|
- lib/twitter/geo/polygon.rb
|
253
|
+
- lib/twitter/geo.rb
|
256
254
|
- lib/twitter/geo_factory.rb
|
257
255
|
- lib/twitter/geo_results.rb
|
258
256
|
- lib/twitter/identity.rb
|
@@ -269,28 +267,29 @@ files:
|
|
269
267
|
- lib/twitter/rate_limit.rb
|
270
268
|
- lib/twitter/relationship.rb
|
271
269
|
- lib/twitter/request.rb
|
272
|
-
- lib/twitter/rest/api
|
273
|
-
- lib/twitter/rest/api/favorites.rb
|
274
|
-
- lib/twitter/rest/api/friends_and_followers.rb
|
275
|
-
- lib/twitter/rest/api/help.rb
|
276
|
-
- lib/twitter/rest/api/lists.rb
|
277
|
-
- lib/twitter/rest/api/oauth.rb
|
278
|
-
- lib/twitter/rest/api/places_and_geo.rb
|
279
|
-
- lib/twitter/rest/api/saved_searches.rb
|
280
|
-
- lib/twitter/rest/api/search.rb
|
281
|
-
- lib/twitter/rest/api/spam_reporting.rb
|
282
|
-
- lib/twitter/rest/api/suggested_users.rb
|
283
|
-
- lib/twitter/rest/api/timelines.rb
|
284
|
-
- lib/twitter/rest/api/trends.rb
|
285
|
-
- lib/twitter/rest/api/tweets.rb
|
286
|
-
- lib/twitter/rest/api/undocumented.rb
|
287
|
-
- lib/twitter/rest/api/users.rb
|
288
|
-
- lib/twitter/rest/api/utils.rb
|
270
|
+
- lib/twitter/rest/api.rb
|
289
271
|
- lib/twitter/rest/client.rb
|
272
|
+
- lib/twitter/rest/direct_messages.rb
|
273
|
+
- lib/twitter/rest/favorites.rb
|
274
|
+
- lib/twitter/rest/friends_and_followers.rb
|
275
|
+
- lib/twitter/rest/help.rb
|
276
|
+
- lib/twitter/rest/lists.rb
|
277
|
+
- lib/twitter/rest/oauth.rb
|
278
|
+
- lib/twitter/rest/places_and_geo.rb
|
290
279
|
- lib/twitter/rest/request/multipart_with_file.rb
|
291
280
|
- lib/twitter/rest/response/parse_error_json.rb
|
292
281
|
- lib/twitter/rest/response/parse_json.rb
|
293
282
|
- lib/twitter/rest/response/raise_error.rb
|
283
|
+
- lib/twitter/rest/saved_searches.rb
|
284
|
+
- lib/twitter/rest/search.rb
|
285
|
+
- lib/twitter/rest/spam_reporting.rb
|
286
|
+
- lib/twitter/rest/suggested_users.rb
|
287
|
+
- lib/twitter/rest/timelines.rb
|
288
|
+
- lib/twitter/rest/trends.rb
|
289
|
+
- lib/twitter/rest/tweets.rb
|
290
|
+
- lib/twitter/rest/undocumented.rb
|
291
|
+
- lib/twitter/rest/users.rb
|
292
|
+
- lib/twitter/rest/utils.rb
|
294
293
|
- lib/twitter/saved_search.rb
|
295
294
|
- lib/twitter/search_results.rb
|
296
295
|
- lib/twitter/settings.rb
|
@@ -313,6 +312,7 @@ files:
|
|
313
312
|
- lib/twitter/user.rb
|
314
313
|
- lib/twitter/utils.rb
|
315
314
|
- lib/twitter/version.rb
|
315
|
+
- lib/twitter.rb
|
316
316
|
- spec/fixtures/already_favorited.json
|
317
317
|
- spec/fixtures/already_posted.json
|
318
318
|
- spec/fixtures/already_retweeted.json
|
@@ -400,23 +400,23 @@ files:
|
|
400
400
|
- spec/twitter/profile_banner_spec.rb
|
401
401
|
- spec/twitter/rate_limit_spec.rb
|
402
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
403
|
- spec/twitter/rest/client_spec.rb
|
404
|
+
- spec/twitter/rest/direct_messages_spec.rb
|
405
|
+
- spec/twitter/rest/favorites_spec.rb
|
406
|
+
- spec/twitter/rest/friends_and_followers_spec.rb
|
407
|
+
- spec/twitter/rest/geo_spec.rb
|
408
|
+
- spec/twitter/rest/help_spec.rb
|
409
|
+
- spec/twitter/rest/lists_spec.rb
|
410
|
+
- spec/twitter/rest/oauth_spec.rb
|
411
|
+
- spec/twitter/rest/saved_searches_spec.rb
|
412
|
+
- spec/twitter/rest/search_spec.rb
|
413
|
+
- spec/twitter/rest/spam_reporting_spec.rb
|
414
|
+
- spec/twitter/rest/suggested_users_spec.rb
|
415
|
+
- spec/twitter/rest/timelines_spec.rb
|
416
|
+
- spec/twitter/rest/trends_spec.rb
|
417
|
+
- spec/twitter/rest/tweets_spec.rb
|
418
|
+
- spec/twitter/rest/undocumented_spec.rb
|
419
|
+
- spec/twitter/rest/users_spec.rb
|
420
420
|
- spec/twitter/saved_search_spec.rb
|
421
421
|
- spec/twitter/search_results_spec.rb
|
422
422
|
- spec/twitter/settings_spec.rb
|
@@ -434,32 +434,42 @@ files:
|
|
434
434
|
- spec/twitter/trend_spec.rb
|
435
435
|
- spec/twitter/tweet_spec.rb
|
436
436
|
- spec/twitter/user_spec.rb
|
437
|
-
- twitter.gemspec
|
438
437
|
homepage: http://sferik.github.com/twitter/
|
439
|
-
licenses:
|
438
|
+
licenses:
|
440
439
|
- MIT
|
441
|
-
metadata: {}
|
442
440
|
post_install_message:
|
443
441
|
rdoc_options: []
|
444
|
-
|
442
|
+
|
443
|
+
require_paths:
|
445
444
|
- lib
|
446
|
-
required_ruby_version: !ruby/object:Gem::Requirement
|
447
|
-
|
445
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
446
|
+
none: false
|
447
|
+
requirements:
|
448
448
|
- - ">="
|
449
|
-
- !ruby/object:Gem::Version
|
450
|
-
|
451
|
-
|
452
|
-
|
449
|
+
- !ruby/object:Gem::Version
|
450
|
+
hash: 3
|
451
|
+
segments:
|
452
|
+
- 0
|
453
|
+
version: "0"
|
454
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
455
|
+
none: false
|
456
|
+
requirements:
|
453
457
|
- - ">="
|
454
|
-
- !ruby/object:Gem::Version
|
458
|
+
- !ruby/object:Gem::Version
|
459
|
+
hash: 17
|
460
|
+
segments:
|
461
|
+
- 1
|
462
|
+
- 3
|
463
|
+
- 5
|
455
464
|
version: 1.3.5
|
456
465
|
requirements: []
|
466
|
+
|
457
467
|
rubyforge_project:
|
458
|
-
rubygems_version:
|
468
|
+
rubygems_version: 1.8.29
|
459
469
|
signing_key:
|
460
|
-
specification_version:
|
470
|
+
specification_version: 3
|
461
471
|
summary: A Ruby interface to the Twitter API.
|
462
|
-
test_files:
|
472
|
+
test_files:
|
463
473
|
- spec/fixtures/already_favorited.json
|
464
474
|
- spec/fixtures/already_posted.json
|
465
475
|
- spec/fixtures/already_retweeted.json
|
@@ -547,23 +557,23 @@ test_files:
|
|
547
557
|
- spec/twitter/profile_banner_spec.rb
|
548
558
|
- spec/twitter/rate_limit_spec.rb
|
549
559
|
- spec/twitter/relationship_spec.rb
|
550
|
-
- spec/twitter/rest/api/direct_messages_spec.rb
|
551
|
-
- spec/twitter/rest/api/favorites_spec.rb
|
552
|
-
- spec/twitter/rest/api/friends_and_followers_spec.rb
|
553
|
-
- spec/twitter/rest/api/geo_spec.rb
|
554
|
-
- spec/twitter/rest/api/help_spec.rb
|
555
|
-
- spec/twitter/rest/api/lists_spec.rb
|
556
|
-
- spec/twitter/rest/api/oauth_spec.rb
|
557
|
-
- spec/twitter/rest/api/saved_searches_spec.rb
|
558
|
-
- spec/twitter/rest/api/search_spec.rb
|
559
|
-
- spec/twitter/rest/api/spam_reporting_spec.rb
|
560
|
-
- spec/twitter/rest/api/suggested_users_spec.rb
|
561
|
-
- spec/twitter/rest/api/timelines_spec.rb
|
562
|
-
- spec/twitter/rest/api/trends_spec.rb
|
563
|
-
- spec/twitter/rest/api/tweets_spec.rb
|
564
|
-
- spec/twitter/rest/api/undocumented_spec.rb
|
565
|
-
- spec/twitter/rest/api/users_spec.rb
|
566
560
|
- spec/twitter/rest/client_spec.rb
|
561
|
+
- spec/twitter/rest/direct_messages_spec.rb
|
562
|
+
- spec/twitter/rest/favorites_spec.rb
|
563
|
+
- spec/twitter/rest/friends_and_followers_spec.rb
|
564
|
+
- spec/twitter/rest/geo_spec.rb
|
565
|
+
- spec/twitter/rest/help_spec.rb
|
566
|
+
- spec/twitter/rest/lists_spec.rb
|
567
|
+
- spec/twitter/rest/oauth_spec.rb
|
568
|
+
- spec/twitter/rest/saved_searches_spec.rb
|
569
|
+
- spec/twitter/rest/search_spec.rb
|
570
|
+
- spec/twitter/rest/spam_reporting_spec.rb
|
571
|
+
- spec/twitter/rest/suggested_users_spec.rb
|
572
|
+
- spec/twitter/rest/timelines_spec.rb
|
573
|
+
- spec/twitter/rest/trends_spec.rb
|
574
|
+
- spec/twitter/rest/tweets_spec.rb
|
575
|
+
- spec/twitter/rest/undocumented_spec.rb
|
576
|
+
- spec/twitter/rest/users_spec.rb
|
567
577
|
- spec/twitter/saved_search_spec.rb
|
568
578
|
- spec/twitter/search_results_spec.rb
|
569
579
|
- spec/twitter/settings_spec.rb
|