twitter 5.1.1 → 5.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (139) hide show
  1. data.tar.gz.sig +0 -0
  2. data/.yardopts +2 -0
  3. data/CHANGELOG.md +10 -1
  4. data/CONTRIBUTING.md +2 -2
  5. data/README.md +30 -20
  6. data/Rakefile +26 -5
  7. data/lib/twitter/arguments.rb +0 -1
  8. data/lib/twitter/base.rb +13 -16
  9. data/lib/twitter/basic_user.rb +3 -3
  10. data/lib/twitter/client.rb +7 -8
  11. data/lib/twitter/configuration.rb +5 -5
  12. data/lib/twitter/core_ext/enumerable.rb +0 -2
  13. data/lib/twitter/core_ext/kernel.rb +0 -2
  14. data/lib/twitter/creatable.rb +0 -1
  15. data/lib/twitter/cursor.rb +7 -10
  16. data/lib/twitter/direct_message.rb +1 -1
  17. data/lib/twitter/entity/uri.rb +2 -2
  18. data/lib/twitter/enumerable.rb +1 -2
  19. data/lib/twitter/error.rb +4 -6
  20. data/lib/twitter/error/already_favorited.rb +1 -1
  21. data/lib/twitter/error/already_posted.rb +1 -1
  22. data/lib/twitter/error/already_retweeted.rb +1 -1
  23. data/lib/twitter/error/too_many_requests.rb +2 -2
  24. data/lib/twitter/factory.rb +2 -6
  25. data/lib/twitter/geo.rb +1 -1
  26. data/lib/twitter/geo/point.rb +3 -5
  27. data/lib/twitter/geo_factory.rb +1 -5
  28. data/lib/twitter/geo_results.rb +5 -8
  29. data/lib/twitter/identity.rb +1 -2
  30. data/lib/twitter/list.rb +4 -5
  31. data/lib/twitter/media/photo.rb +1 -2
  32. data/lib/twitter/media_factory.rb +1 -5
  33. data/lib/twitter/null_object.rb +4 -6
  34. data/lib/twitter/oembed.rb +1 -1
  35. data/lib/twitter/place.rb +4 -5
  36. data/lib/twitter/profile_banner.rb +1 -3
  37. data/lib/twitter/rate_limit.rb +1 -3
  38. data/lib/twitter/relationship.rb +1 -2
  39. data/lib/twitter/rest/api/direct_messages.rb +13 -14
  40. data/lib/twitter/rest/api/favorites.rb +10 -11
  41. data/lib/twitter/rest/api/friends_and_followers.rb +36 -36
  42. data/lib/twitter/rest/api/help.rb +8 -9
  43. data/lib/twitter/rest/api/lists.rb +62 -63
  44. data/lib/twitter/rest/api/oauth.rb +3 -4
  45. data/lib/twitter/rest/api/places_and_geo.rb +9 -10
  46. data/lib/twitter/rest/api/saved_searches.rb +5 -6
  47. data/lib/twitter/rest/api/search.rb +2 -3
  48. data/lib/twitter/rest/api/spam_reporting.rb +1 -2
  49. data/lib/twitter/rest/api/suggested_users.rb +4 -5
  50. data/lib/twitter/rest/api/timelines.rb +17 -18
  51. data/lib/twitter/rest/api/trends.rb +10 -11
  52. data/lib/twitter/rest/api/tweets.rb +15 -16
  53. data/lib/twitter/rest/api/undocumented.rb +6 -7
  54. data/lib/twitter/rest/api/users.rb +51 -52
  55. data/lib/twitter/rest/api/utils.rb +23 -30
  56. data/lib/twitter/rest/client.rb +8 -9
  57. data/lib/twitter/rest/request/multipart_with_file.rb +0 -1
  58. data/lib/twitter/rest/response/parse_error_json.rb +0 -2
  59. data/lib/twitter/rest/response/parse_json.rb +0 -2
  60. data/lib/twitter/rest/response/raise_error.rb +1 -3
  61. data/lib/twitter/search_results.rb +12 -15
  62. data/lib/twitter/settings.rb +2 -2
  63. data/lib/twitter/size.rb +2 -2
  64. data/lib/twitter/source_user.rb +1 -1
  65. data/lib/twitter/streaming/client.rb +71 -18
  66. data/lib/twitter/streaming/connection.rb +1 -3
  67. data/lib/twitter/streaming/deleted_tweet.rb +8 -0
  68. data/lib/twitter/streaming/event.rb +8 -8
  69. data/lib/twitter/streaming/friend_list.rb +2 -9
  70. data/lib/twitter/streaming/message_parser.rb +13 -7
  71. data/lib/twitter/streaming/response.rb +0 -2
  72. data/lib/twitter/streaming/stall_warning.rb +7 -0
  73. data/lib/twitter/suggestion.rb +0 -1
  74. data/lib/twitter/token.rb +2 -3
  75. data/lib/twitter/trend_results.rb +5 -8
  76. data/lib/twitter/tweet.rb +16 -24
  77. data/lib/twitter/user.rb +30 -32
  78. data/lib/twitter/version.rb +2 -5
  79. data/spec/fixtures/track_streaming_user.json +2 -1
  80. data/spec/helper.rb +6 -2
  81. data/spec/twitter/base_spec.rb +9 -9
  82. data/spec/twitter/basic_user_spec.rb +6 -6
  83. data/spec/twitter/configuration_spec.rb +4 -4
  84. data/spec/twitter/cursor_spec.rb +27 -27
  85. data/spec/twitter/direct_message_spec.rb +36 -36
  86. data/spec/twitter/entity/uri_spec.rb +27 -27
  87. data/spec/twitter/error_spec.rb +21 -21
  88. data/spec/twitter/geo/point_spec.rb +9 -9
  89. data/spec/twitter/geo/polygon_spec.rb +5 -5
  90. data/spec/twitter/geo_factory_spec.rb +7 -7
  91. data/spec/twitter/geo_results_spec.rb +11 -11
  92. data/spec/twitter/geo_spec.rb +5 -5
  93. data/spec/twitter/identifiable_spec.rb +9 -9
  94. data/spec/twitter/list_spec.rb +38 -38
  95. data/spec/twitter/media/photo_spec.rb +54 -54
  96. data/spec/twitter/media_factory_spec.rb +5 -5
  97. data/spec/twitter/null_object_spec.rb +6 -6
  98. data/spec/twitter/oembed_spec.rb +65 -65
  99. data/spec/twitter/place_spec.rb +89 -60
  100. data/spec/twitter/profile_banner_spec.rb +3 -3
  101. data/spec/twitter/rate_limit_spec.rb +18 -18
  102. data/spec/twitter/relationship_spec.rb +16 -16
  103. data/spec/twitter/rest/api/direct_messages_spec.rb +61 -61
  104. data/spec/twitter/rest/api/favorites_spec.rb +93 -93
  105. data/spec/twitter/rest/api/friends_and_followers_spec.rb +349 -349
  106. data/spec/twitter/rest/api/geo_spec.rb +33 -33
  107. data/spec/twitter/rest/api/help_spec.rb +24 -24
  108. data/spec/twitter/rest/api/lists_spec.rb +487 -487
  109. data/spec/twitter/rest/api/oauth_spec.rb +30 -30
  110. data/spec/twitter/rest/api/saved_searches_spec.rb +40 -40
  111. data/spec/twitter/rest/api/search_spec.rb +16 -16
  112. data/spec/twitter/rest/api/spam_reporting_spec.rb +9 -9
  113. data/spec/twitter/rest/api/suggested_users_spec.rb +23 -23
  114. data/spec/twitter/rest/api/timelines_spec.rb +58 -58
  115. data/spec/twitter/rest/api/trends_spec.rb +26 -26
  116. data/spec/twitter/rest/api/tweets_spec.rb +284 -284
  117. data/spec/twitter/rest/api/undocumented_spec.rb +51 -51
  118. data/spec/twitter/rest/api/users_spec.rb +360 -360
  119. data/spec/twitter/rest/client_spec.rb +99 -103
  120. data/spec/twitter/saved_search_spec.rb +16 -16
  121. data/spec/twitter/search_results_spec.rb +44 -44
  122. data/spec/twitter/settings_spec.rb +8 -8
  123. data/spec/twitter/size_spec.rb +5 -5
  124. data/spec/twitter/source_user_spec.rb +6 -6
  125. data/spec/twitter/streaming/client_spec.rb +53 -49
  126. data/spec/twitter/streaming/deleted_tweet_spec.rb +23 -0
  127. data/spec/twitter/streaming/event_spec.rb +20 -22
  128. data/spec/twitter/streaming/friend_list_spec.rb +11 -0
  129. data/spec/twitter/streaming/message_parser_spec.rb +54 -0
  130. data/spec/twitter/suggestion_spec.rb +11 -11
  131. data/spec/twitter/target_user_spec.rb +6 -6
  132. data/spec/twitter/token_spec.rb +4 -4
  133. data/spec/twitter/trend_results_spec.rb +30 -30
  134. data/spec/twitter/trend_spec.rb +20 -20
  135. data/spec/twitter/tweet_spec.rb +170 -173
  136. data/spec/twitter/user_spec.rb +179 -179
  137. data/twitter.gemspec +2 -2
  138. metadata +21 -4
  139. metadata.gz.sig +2 -1
@@ -6,10 +6,10 @@ Gem::Specification.new do |spec|
6
6
  spec.add_dependency 'addressable', '~> 2.3'
7
7
  spec.add_dependency 'buftok', '~> 0.2.0'
8
8
  spec.add_dependency 'descendants_tracker', '~> 0.0.1'
9
- spec.add_dependency 'equalizer', '~> 0.0.7'
9
+ spec.add_dependency 'equalizer', ['~> 0.0.7', '!= 0.0.8']
10
10
  spec.add_dependency 'faraday', ['>= 0.8', '< 0.10']
11
11
  spec.add_dependency 'http', '~> 0.5.0'
12
- spec.add_dependency 'http_parser.rb', '~> 0.5.0'
12
+ spec.add_dependency 'http_parser.rb', '~> 0.6.0'
13
13
  spec.add_dependency 'json', '~> 1.8'
14
14
  spec.add_dependency 'memoizable', '~> 0.2.0'
15
15
  spec.add_dependency 'simple_oauth', '~> 0.2.0'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.1.1
4
+ version: 5.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -40,7 +40,7 @@ cert_chain:
40
40
  U0xxV3ZRUnNCbHlwSGZoczZKSnVMbHlaUEdoVTNSL3YKU2YzbFZLcEJDV2dS
41
41
  cEdUdnk0NVhWcEIrNTl5MzNQSm1FdVExUFRFT1l2UXlhbzlVS01BQWFBTi83
42
42
  cVdRdGpsMApobHc9Ci0tLS0tRU5EIENFUlRJRklDQVRFLS0tLS0K
43
- date: 2013-11-28 00:00:00.000000000 Z
43
+ date: 2013-12-12 00:00:00.000000000 Z
44
44
  dependencies:
45
45
  - !ruby/object:Gem::Dependency
46
46
  name: addressable
@@ -98,6 +98,9 @@ dependencies:
98
98
  - - ~>
99
99
  - !ruby/object:Gem::Version
100
100
  version: 0.0.7
101
+ - - ! '!='
102
+ - !ruby/object:Gem::Version
103
+ version: 0.0.8
101
104
  type: :runtime
102
105
  prerelease: false
103
106
  version_requirements: !ruby/object:Gem::Requirement
@@ -106,6 +109,9 @@ dependencies:
106
109
  - - ~>
107
110
  - !ruby/object:Gem::Version
108
111
  version: 0.0.7
112
+ - - ! '!='
113
+ - !ruby/object:Gem::Version
114
+ version: 0.0.8
109
115
  - !ruby/object:Gem::Dependency
110
116
  name: faraday
111
117
  requirement: !ruby/object:Gem::Requirement
@@ -151,7 +157,7 @@ dependencies:
151
157
  requirements:
152
158
  - - ~>
153
159
  - !ruby/object:Gem::Version
154
- version: 0.5.0
160
+ version: 0.6.0
155
161
  type: :runtime
156
162
  prerelease: false
157
163
  version_requirements: !ruby/object:Gem::Requirement
@@ -159,7 +165,7 @@ dependencies:
159
165
  requirements:
160
166
  - - ~>
161
167
  - !ruby/object:Gem::Version
162
- version: 0.5.0
168
+ version: 0.6.0
163
169
  - !ruby/object:Gem::Dependency
164
170
  name: json
165
171
  requirement: !ruby/object:Gem::Requirement
@@ -317,10 +323,12 @@ files:
317
323
  - lib/twitter/source_user.rb
318
324
  - lib/twitter/streaming/client.rb
319
325
  - lib/twitter/streaming/connection.rb
326
+ - lib/twitter/streaming/deleted_tweet.rb
320
327
  - lib/twitter/streaming/event.rb
321
328
  - lib/twitter/streaming/friend_list.rb
322
329
  - lib/twitter/streaming/message_parser.rb
323
330
  - lib/twitter/streaming/response.rb
331
+ - lib/twitter/streaming/stall_warning.rb
324
332
  - lib/twitter/suggestion.rb
325
333
  - lib/twitter/target_user.rb
326
334
  - lib/twitter/token.rb
@@ -439,7 +447,10 @@ files:
439
447
  - spec/twitter/size_spec.rb
440
448
  - spec/twitter/source_user_spec.rb
441
449
  - spec/twitter/streaming/client_spec.rb
450
+ - spec/twitter/streaming/deleted_tweet_spec.rb
442
451
  - spec/twitter/streaming/event_spec.rb
452
+ - spec/twitter/streaming/friend_list_spec.rb
453
+ - spec/twitter/streaming/message_parser_spec.rb
443
454
  - spec/twitter/suggestion_spec.rb
444
455
  - spec/twitter/target_user_spec.rb
445
456
  - spec/twitter/token_spec.rb
@@ -461,6 +472,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
461
472
  - - ! '>='
462
473
  - !ruby/object:Gem::Version
463
474
  version: '0'
475
+ segments:
476
+ - 0
477
+ hash: 4309765039185735454
464
478
  required_rubygems_version: !ruby/object:Gem::Requirement
465
479
  none: false
466
480
  requirements:
@@ -583,7 +597,10 @@ test_files:
583
597
  - spec/twitter/size_spec.rb
584
598
  - spec/twitter/source_user_spec.rb
585
599
  - spec/twitter/streaming/client_spec.rb
600
+ - spec/twitter/streaming/deleted_tweet_spec.rb
586
601
  - spec/twitter/streaming/event_spec.rb
602
+ - spec/twitter/streaming/friend_list_spec.rb
603
+ - spec/twitter/streaming/message_parser_spec.rb
587
604
  - spec/twitter/suggestion_spec.rb
588
605
  - spec/twitter/target_user_spec.rb
589
606
  - spec/twitter/token_spec.rb
metadata.gz.sig CHANGED
@@ -1 +1,2 @@
1
- xQL%�w���FG�ZŸ���.J
1
+ O3`^�'mYQ��,T6��
2
+ ��E_���T���׭��o�