twitter 5.6.0 → 5.7.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (93) hide show
  1. data.tar.gz.sig +0 -0
  2. data/.yardopts +1 -0
  3. data/CHANGELOG.md +8 -0
  4. data/README.md +3 -3
  5. data/Rakefile +1 -1
  6. data/lib/twitter/base.rb +0 -8
  7. data/lib/twitter/client.rb +2 -1
  8. data/lib/twitter/cursor.rb +2 -15
  9. data/lib/twitter/error.rb +90 -18
  10. data/lib/twitter/geo_results.rb +0 -10
  11. data/lib/twitter/request.rb +4 -4
  12. data/lib/twitter/rest/api.rb +43 -0
  13. data/lib/twitter/rest/client.rb +10 -44
  14. data/lib/twitter/rest/direct_messages.rb +138 -0
  15. data/lib/twitter/rest/favorites.rb +108 -0
  16. data/lib/twitter/rest/friends_and_followers.rb +281 -0
  17. data/lib/twitter/rest/help.rb +56 -0
  18. data/lib/twitter/rest/lists.rb +497 -0
  19. data/lib/twitter/rest/oauth.rb +65 -0
  20. data/lib/twitter/rest/places_and_geo.rb +84 -0
  21. data/lib/twitter/rest/request/multipart_with_file.rb +5 -5
  22. data/lib/twitter/rest/response/parse_json.rb +2 -4
  23. data/lib/twitter/rest/response/raise_error.rb +24 -15
  24. data/lib/twitter/rest/saved_searches.rb +93 -0
  25. data/lib/twitter/rest/search.rb +37 -0
  26. data/lib/twitter/rest/spam_reporting.rb +27 -0
  27. data/lib/twitter/rest/suggested_users.rb +49 -0
  28. data/lib/twitter/rest/timelines.rb +200 -0
  29. data/lib/twitter/rest/trends.rb +57 -0
  30. data/lib/twitter/rest/tweets.rb +309 -0
  31. data/lib/twitter/rest/undocumented.rb +49 -0
  32. data/lib/twitter/rest/users.rb +383 -0
  33. data/lib/twitter/rest/utils.rb +205 -0
  34. data/lib/twitter/search_results.rb +2 -13
  35. data/lib/twitter/trend_results.rb +0 -10
  36. data/lib/twitter/version.rb +1 -1
  37. data/spec/helper.rb +1 -1
  38. data/spec/twitter/error_spec.rb +26 -42
  39. data/spec/twitter/rest/{api/direct_messages_spec.rb → direct_messages_spec.rb} +1 -1
  40. data/spec/twitter/rest/{api/favorites_spec.rb → favorites_spec.rb} +1 -1
  41. data/spec/twitter/rest/{api/friends_and_followers_spec.rb → friends_and_followers_spec.rb} +1 -1
  42. data/spec/twitter/rest/{api/geo_spec.rb → geo_spec.rb} +1 -1
  43. data/spec/twitter/rest/{api/help_spec.rb → help_spec.rb} +1 -1
  44. data/spec/twitter/rest/{api/lists_spec.rb → lists_spec.rb} +1 -1
  45. data/spec/twitter/rest/{api/oauth_spec.rb → oauth_spec.rb} +4 -8
  46. data/spec/twitter/rest/{api/saved_searches_spec.rb → saved_searches_spec.rb} +1 -1
  47. data/spec/twitter/rest/{api/search_spec.rb → search_spec.rb} +1 -1
  48. data/spec/twitter/rest/{api/spam_reporting_spec.rb → spam_reporting_spec.rb} +1 -1
  49. data/spec/twitter/rest/{api/suggested_users_spec.rb → suggested_users_spec.rb} +1 -1
  50. data/spec/twitter/rest/{api/timelines_spec.rb → timelines_spec.rb} +1 -1
  51. data/spec/twitter/rest/{api/trends_spec.rb → trends_spec.rb} +1 -1
  52. data/spec/twitter/rest/{api/tweets_spec.rb → tweets_spec.rb} +74 -5
  53. data/spec/twitter/rest/{api/undocumented_spec.rb → undocumented_spec.rb} +1 -1
  54. data/spec/twitter/rest/{api/users_spec.rb → users_spec.rb} +5 -5
  55. data/spec/twitter/tweet_spec.rb +1 -1
  56. data/twitter.gemspec +0 -1
  57. metadata +247 -237
  58. metadata.gz.sig +0 -0
  59. checksums.yaml +0 -7
  60. checksums.yaml.gz.sig +0 -0
  61. data/lib/twitter/error/already_favorited.rb +0 -10
  62. data/lib/twitter/error/already_posted.rb +0 -10
  63. data/lib/twitter/error/already_retweeted.rb +0 -10
  64. data/lib/twitter/error/bad_gateway.rb +0 -10
  65. data/lib/twitter/error/bad_request.rb +0 -10
  66. data/lib/twitter/error/configuration_error.rb +0 -8
  67. data/lib/twitter/error/forbidden.rb +0 -10
  68. data/lib/twitter/error/gateway_timeout.rb +0 -10
  69. data/lib/twitter/error/internal_server_error.rb +0 -10
  70. data/lib/twitter/error/not_acceptable.rb +0 -10
  71. data/lib/twitter/error/not_found.rb +0 -10
  72. data/lib/twitter/error/request_timeout.rb +0 -10
  73. data/lib/twitter/error/service_unavailable.rb +0 -10
  74. data/lib/twitter/error/too_many_requests.rb +0 -12
  75. data/lib/twitter/error/unauthorized.rb +0 -10
  76. data/lib/twitter/error/unprocessable_entity.rb +0 -10
  77. data/lib/twitter/rest/api/direct_messages.rb +0 -140
  78. data/lib/twitter/rest/api/favorites.rb +0 -115
  79. data/lib/twitter/rest/api/friends_and_followers.rb +0 -284
  80. data/lib/twitter/rest/api/help.rb +0 -58
  81. data/lib/twitter/rest/api/lists.rb +0 -500
  82. data/lib/twitter/rest/api/oauth.rb +0 -67
  83. data/lib/twitter/rest/api/places_and_geo.rb +0 -86
  84. data/lib/twitter/rest/api/saved_searches.rb +0 -95
  85. data/lib/twitter/rest/api/search.rb +0 -39
  86. data/lib/twitter/rest/api/spam_reporting.rb +0 -29
  87. data/lib/twitter/rest/api/suggested_users.rb +0 -51
  88. data/lib/twitter/rest/api/timelines.rb +0 -202
  89. data/lib/twitter/rest/api/trends.rb +0 -58
  90. data/lib/twitter/rest/api/tweets.rb +0 -297
  91. data/lib/twitter/rest/api/undocumented.rb +0 -51
  92. data/lib/twitter/rest/api/users.rb +0 -383
  93. data/lib/twitter/rest/api/utils.rb +0 -212
@@ -1,6 +1,6 @@
1
1
  require 'helper'
2
2
 
3
- describe Twitter::REST::API::Search do
3
+ describe Twitter::REST::Search 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')
@@ -1,6 +1,6 @@
1
1
  require 'helper'
2
2
 
3
- describe Twitter::REST::API::SpamReporting do
3
+ describe Twitter::REST::SpamReporting 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')
@@ -1,6 +1,6 @@
1
1
  require 'helper'
2
2
 
3
- describe Twitter::REST::API::SuggestedUsers do
3
+ describe Twitter::REST::SuggestedUsers 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')
@@ -1,6 +1,6 @@
1
1
  require 'helper'
2
2
 
3
- describe Twitter::REST::API::Timelines do
3
+ describe Twitter::REST::Timelines 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')
@@ -1,6 +1,6 @@
1
1
  require 'helper'
2
2
 
3
- describe Twitter::REST::API::Trends do
3
+ describe Twitter::REST::Trends 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')
@@ -1,6 +1,6 @@
1
1
  require 'helper'
2
2
 
3
- describe Twitter::REST::API::Tweets do
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 'raises an AlreadyPosted error' do
226
- 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::AlreadyPosted)
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 AlreadyPosted error' do
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::AlreadyPosted)
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::API::Undocumented do
3
+ describe Twitter::REST::Undocumented 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')
@@ -1,6 +1,6 @@
1
1
  require 'helper'
2
2
 
3
- describe Twitter::REST::API::Users do
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
- user = @client.remove_profile_banner
651
- expect(user).to be_nil
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
- user = @client.update_profile_banner(fixture('me.jpeg'))
665
- expect(user).to be_nil
664
+ response = @client.update_profile_banner(fixture('me.jpeg'))
665
+ expect(response).to be true
666
666
  end
667
667
  end
668
668
 
@@ -84,7 +84,7 @@ describe Twitter::Tweet do
84
84
  end
85
85
  it 'returns nil when not set' do
86
86
  tweet = Twitter::Tweet.new(:id => 28_669_546_014)
87
- expect(tweet.filter_level).to be nil
87
+ expect(tweet.filter_level).to be_nil
88
88
  end
89
89
  end
90
90
 
@@ -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
- version: 5.6.0
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
- date: 2014-01-26 00:00:00.000000000 Z
37
- dependencies:
38
- - !ruby/object:Gem::Dependency
39
- name: addressable
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
- version_requirements: !ruby/object:Gem::Requirement
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
- prerelease: false
61
- version_requirements: !ruby/object:Gem::Requirement
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
- - !ruby/object:Gem::Dependency
67
- name: descendants_tracker
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
- version_requirements: !ruby/object:Gem::Requirement
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
- prerelease: false
89
- version_requirements: !ruby/object:Gem::Requirement
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
- - !ruby/object:Gem::Dependency
95
- name: faraday
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
- version_requirements: !ruby/object:Gem::Requirement
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
- version_requirements: !ruby/object:Gem::Requirement
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
- version_requirements: !ruby/object:Gem::Requirement
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
- version_requirements: !ruby/object:Gem::Requirement
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
- version_requirements: !ruby/object:Gem::Requirement
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
- version_requirements: !ruby/object:Gem::Requirement
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
- version_requirements: !ruby/object:Gem::Requirement
188
- requirements:
189
- - - "~>"
190
- - !ruby/object:Gem::Version
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
- - !ruby/object:Gem::Dependency
193
- name: bundler
194
- requirement: !ruby/object:Gem::Requirement
195
- requirements:
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
- files:
213
- - ".yardopts"
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
- - lib/twitter.rb
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/direct_messages.rb
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
- require_paths:
442
+
443
+ require_paths:
445
444
  - lib
446
- required_ruby_version: !ruby/object:Gem::Requirement
447
- requirements:
445
+ required_ruby_version: !ruby/object:Gem::Requirement
446
+ none: false
447
+ requirements:
448
448
  - - ">="
449
- - !ruby/object:Gem::Version
450
- version: '0'
451
- required_rubygems_version: !ruby/object:Gem::Requirement
452
- requirements:
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: 2.2.1
468
+ rubygems_version: 1.8.29
459
469
  signing_key:
460
- specification_version: 4
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