twitter 5.1.1 → 5.2.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 +2 -0
- data/CHANGELOG.md +10 -1
- data/CONTRIBUTING.md +2 -2
- data/README.md +30 -20
- data/Rakefile +26 -5
- data/lib/twitter/arguments.rb +0 -1
- data/lib/twitter/base.rb +13 -16
- data/lib/twitter/basic_user.rb +3 -3
- data/lib/twitter/client.rb +7 -8
- data/lib/twitter/configuration.rb +5 -5
- data/lib/twitter/core_ext/enumerable.rb +0 -2
- data/lib/twitter/core_ext/kernel.rb +0 -2
- data/lib/twitter/creatable.rb +0 -1
- data/lib/twitter/cursor.rb +7 -10
- data/lib/twitter/direct_message.rb +1 -1
- data/lib/twitter/entity/uri.rb +2 -2
- data/lib/twitter/enumerable.rb +1 -2
- data/lib/twitter/error.rb +4 -6
- data/lib/twitter/error/already_favorited.rb +1 -1
- data/lib/twitter/error/already_posted.rb +1 -1
- data/lib/twitter/error/already_retweeted.rb +1 -1
- data/lib/twitter/error/too_many_requests.rb +2 -2
- data/lib/twitter/factory.rb +2 -6
- data/lib/twitter/geo.rb +1 -1
- data/lib/twitter/geo/point.rb +3 -5
- data/lib/twitter/geo_factory.rb +1 -5
- data/lib/twitter/geo_results.rb +5 -8
- data/lib/twitter/identity.rb +1 -2
- data/lib/twitter/list.rb +4 -5
- data/lib/twitter/media/photo.rb +1 -2
- data/lib/twitter/media_factory.rb +1 -5
- data/lib/twitter/null_object.rb +4 -6
- data/lib/twitter/oembed.rb +1 -1
- data/lib/twitter/place.rb +4 -5
- data/lib/twitter/profile_banner.rb +1 -3
- data/lib/twitter/rate_limit.rb +1 -3
- data/lib/twitter/relationship.rb +1 -2
- data/lib/twitter/rest/api/direct_messages.rb +13 -14
- data/lib/twitter/rest/api/favorites.rb +10 -11
- data/lib/twitter/rest/api/friends_and_followers.rb +36 -36
- data/lib/twitter/rest/api/help.rb +8 -9
- data/lib/twitter/rest/api/lists.rb +62 -63
- data/lib/twitter/rest/api/oauth.rb +3 -4
- data/lib/twitter/rest/api/places_and_geo.rb +9 -10
- data/lib/twitter/rest/api/saved_searches.rb +5 -6
- data/lib/twitter/rest/api/search.rb +2 -3
- data/lib/twitter/rest/api/spam_reporting.rb +1 -2
- data/lib/twitter/rest/api/suggested_users.rb +4 -5
- data/lib/twitter/rest/api/timelines.rb +17 -18
- data/lib/twitter/rest/api/trends.rb +10 -11
- data/lib/twitter/rest/api/tweets.rb +15 -16
- data/lib/twitter/rest/api/undocumented.rb +6 -7
- data/lib/twitter/rest/api/users.rb +51 -52
- data/lib/twitter/rest/api/utils.rb +23 -30
- data/lib/twitter/rest/client.rb +8 -9
- data/lib/twitter/rest/request/multipart_with_file.rb +0 -1
- data/lib/twitter/rest/response/parse_error_json.rb +0 -2
- data/lib/twitter/rest/response/parse_json.rb +0 -2
- data/lib/twitter/rest/response/raise_error.rb +1 -3
- data/lib/twitter/search_results.rb +12 -15
- data/lib/twitter/settings.rb +2 -2
- data/lib/twitter/size.rb +2 -2
- data/lib/twitter/source_user.rb +1 -1
- data/lib/twitter/streaming/client.rb +71 -18
- data/lib/twitter/streaming/connection.rb +1 -3
- data/lib/twitter/streaming/deleted_tweet.rb +8 -0
- data/lib/twitter/streaming/event.rb +8 -8
- data/lib/twitter/streaming/friend_list.rb +2 -9
- data/lib/twitter/streaming/message_parser.rb +13 -7
- data/lib/twitter/streaming/response.rb +0 -2
- data/lib/twitter/streaming/stall_warning.rb +7 -0
- data/lib/twitter/suggestion.rb +0 -1
- data/lib/twitter/token.rb +2 -3
- data/lib/twitter/trend_results.rb +5 -8
- data/lib/twitter/tweet.rb +16 -24
- data/lib/twitter/user.rb +30 -32
- data/lib/twitter/version.rb +2 -5
- data/spec/fixtures/track_streaming_user.json +2 -1
- data/spec/helper.rb +6 -2
- data/spec/twitter/base_spec.rb +9 -9
- data/spec/twitter/basic_user_spec.rb +6 -6
- data/spec/twitter/configuration_spec.rb +4 -4
- data/spec/twitter/cursor_spec.rb +27 -27
- data/spec/twitter/direct_message_spec.rb +36 -36
- data/spec/twitter/entity/uri_spec.rb +27 -27
- data/spec/twitter/error_spec.rb +21 -21
- data/spec/twitter/geo/point_spec.rb +9 -9
- data/spec/twitter/geo/polygon_spec.rb +5 -5
- data/spec/twitter/geo_factory_spec.rb +7 -7
- data/spec/twitter/geo_results_spec.rb +11 -11
- data/spec/twitter/geo_spec.rb +5 -5
- data/spec/twitter/identifiable_spec.rb +9 -9
- data/spec/twitter/list_spec.rb +38 -38
- data/spec/twitter/media/photo_spec.rb +54 -54
- data/spec/twitter/media_factory_spec.rb +5 -5
- data/spec/twitter/null_object_spec.rb +6 -6
- data/spec/twitter/oembed_spec.rb +65 -65
- data/spec/twitter/place_spec.rb +89 -60
- data/spec/twitter/profile_banner_spec.rb +3 -3
- data/spec/twitter/rate_limit_spec.rb +18 -18
- data/spec/twitter/relationship_spec.rb +16 -16
- data/spec/twitter/rest/api/direct_messages_spec.rb +61 -61
- data/spec/twitter/rest/api/favorites_spec.rb +93 -93
- data/spec/twitter/rest/api/friends_and_followers_spec.rb +349 -349
- data/spec/twitter/rest/api/geo_spec.rb +33 -33
- data/spec/twitter/rest/api/help_spec.rb +24 -24
- data/spec/twitter/rest/api/lists_spec.rb +487 -487
- data/spec/twitter/rest/api/oauth_spec.rb +30 -30
- data/spec/twitter/rest/api/saved_searches_spec.rb +40 -40
- data/spec/twitter/rest/api/search_spec.rb +16 -16
- data/spec/twitter/rest/api/spam_reporting_spec.rb +9 -9
- data/spec/twitter/rest/api/suggested_users_spec.rb +23 -23
- data/spec/twitter/rest/api/timelines_spec.rb +58 -58
- data/spec/twitter/rest/api/trends_spec.rb +26 -26
- data/spec/twitter/rest/api/tweets_spec.rb +284 -284
- data/spec/twitter/rest/api/undocumented_spec.rb +51 -51
- data/spec/twitter/rest/api/users_spec.rb +360 -360
- data/spec/twitter/rest/client_spec.rb +99 -103
- data/spec/twitter/saved_search_spec.rb +16 -16
- data/spec/twitter/search_results_spec.rb +44 -44
- data/spec/twitter/settings_spec.rb +8 -8
- data/spec/twitter/size_spec.rb +5 -5
- data/spec/twitter/source_user_spec.rb +6 -6
- data/spec/twitter/streaming/client_spec.rb +53 -49
- data/spec/twitter/streaming/deleted_tweet_spec.rb +23 -0
- data/spec/twitter/streaming/event_spec.rb +20 -22
- data/spec/twitter/streaming/friend_list_spec.rb +11 -0
- data/spec/twitter/streaming/message_parser_spec.rb +54 -0
- data/spec/twitter/suggestion_spec.rb +11 -11
- data/spec/twitter/target_user_spec.rb +6 -6
- data/spec/twitter/token_spec.rb +4 -4
- data/spec/twitter/trend_results_spec.rb +30 -30
- data/spec/twitter/trend_spec.rb +20 -20
- data/spec/twitter/tweet_spec.rb +170 -173
- data/spec/twitter/user_spec.rb +179 -179
- data/twitter.gemspec +2 -2
- metadata +21 -4
- metadata.gz.sig +2 -1
data/twitter.gemspec
CHANGED
@@ -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.
|
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.
|
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-
|
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.
|
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.
|
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
|
-
|
1
|
+
O3`^�'m�YQ��,T6��
|
2
|
+
��E_���T�����o�
|