ifttt-twitter 2.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (217) hide show
  1. data/.gemtest +0 -0
  2. data/.gitignore +12 -0
  3. data/.rspec +2 -0
  4. data/.travis.yml +9 -0
  5. data/.yardopts +8 -0
  6. data/Gemfile +7 -0
  7. data/HISTORY.md +520 -0
  8. data/LICENSE.md +20 -0
  9. data/README.md +251 -0
  10. data/Rakefile +13 -0
  11. data/lib/twitter.rb +24 -0
  12. data/lib/twitter/action.rb +9 -0
  13. data/lib/twitter/action_factory.rb +28 -0
  14. data/lib/twitter/authenticatable.rb +24 -0
  15. data/lib/twitter/base.rb +40 -0
  16. data/lib/twitter/client.rb +126 -0
  17. data/lib/twitter/client/accounts.rb +180 -0
  18. data/lib/twitter/client/activity.rb +48 -0
  19. data/lib/twitter/client/block.rb +104 -0
  20. data/lib/twitter/client/direct_messages.rb +110 -0
  21. data/lib/twitter/client/favorites.rb +82 -0
  22. data/lib/twitter/client/friends_and_followers.rb +293 -0
  23. data/lib/twitter/client/help.rb +38 -0
  24. data/lib/twitter/client/legal.rb +32 -0
  25. data/lib/twitter/client/lists.rb +643 -0
  26. data/lib/twitter/client/local_trends.rb +46 -0
  27. data/lib/twitter/client/notification.rb +49 -0
  28. data/lib/twitter/client/places_and_geo.rb +113 -0
  29. data/lib/twitter/client/saved_searches.rb +73 -0
  30. data/lib/twitter/client/search.rb +94 -0
  31. data/lib/twitter/client/spam_reporting.rb +30 -0
  32. data/lib/twitter/client/suggested_users.rb +60 -0
  33. data/lib/twitter/client/timelines.rb +265 -0
  34. data/lib/twitter/client/trends.rb +55 -0
  35. data/lib/twitter/client/tweets.rb +191 -0
  36. data/lib/twitter/client/urls.rb +26 -0
  37. data/lib/twitter/client/users.rb +203 -0
  38. data/lib/twitter/config.rb +106 -0
  39. data/lib/twitter/configuration.rb +20 -0
  40. data/lib/twitter/connection.rb +43 -0
  41. data/lib/twitter/core_ext/hash.rb +81 -0
  42. data/lib/twitter/creatable.rb +14 -0
  43. data/lib/twitter/cursor.rb +44 -0
  44. data/lib/twitter/direct_message.rb +27 -0
  45. data/lib/twitter/error.rb +37 -0
  46. data/lib/twitter/error/bad_gateway.rb +7 -0
  47. data/lib/twitter/error/bad_request.rb +7 -0
  48. data/lib/twitter/error/client_error.rb +7 -0
  49. data/lib/twitter/error/enhance_your_calm.rb +13 -0
  50. data/lib/twitter/error/forbidden.rb +7 -0
  51. data/lib/twitter/error/internal_server_error.rb +7 -0
  52. data/lib/twitter/error/not_acceptable.rb +7 -0
  53. data/lib/twitter/error/not_found.rb +7 -0
  54. data/lib/twitter/error/server_error.rb +7 -0
  55. data/lib/twitter/error/service_unavailable.rb +7 -0
  56. data/lib/twitter/error/unauthorized.rb +7 -0
  57. data/lib/twitter/favorite.rb +28 -0
  58. data/lib/twitter/follow.rb +27 -0
  59. data/lib/twitter/geo_factory.rb +22 -0
  60. data/lib/twitter/language.rb +7 -0
  61. data/lib/twitter/list.rb +22 -0
  62. data/lib/twitter/list_member_added.rb +36 -0
  63. data/lib/twitter/media_factory.rb +21 -0
  64. data/lib/twitter/mention.rb +43 -0
  65. data/lib/twitter/metadata.rb +7 -0
  66. data/lib/twitter/oembed.rb +8 -0
  67. data/lib/twitter/photo.rb +24 -0
  68. data/lib/twitter/place.rb +36 -0
  69. data/lib/twitter/point.rb +27 -0
  70. data/lib/twitter/polygon.rb +14 -0
  71. data/lib/twitter/rate_limit_status.rb +15 -0
  72. data/lib/twitter/relationship.rb +18 -0
  73. data/lib/twitter/reply.rb +36 -0
  74. data/lib/twitter/request.rb +38 -0
  75. data/lib/twitter/request/gateway.rb +20 -0
  76. data/lib/twitter/request/multipart_with_file.rb +37 -0
  77. data/lib/twitter/request/oauth.rb +26 -0
  78. data/lib/twitter/request/phoenix.rb +22 -0
  79. data/lib/twitter/response/parse_json.rb +28 -0
  80. data/lib/twitter/response/raise_client_error.rb +49 -0
  81. data/lib/twitter/response/raise_server_error.rb +23 -0
  82. data/lib/twitter/retweet.rb +36 -0
  83. data/lib/twitter/saved_search.rb +16 -0
  84. data/lib/twitter/settings.rb +17 -0
  85. data/lib/twitter/size.rb +16 -0
  86. data/lib/twitter/status.rb +80 -0
  87. data/lib/twitter/suggestion.rb +22 -0
  88. data/lib/twitter/trend.rb +14 -0
  89. data/lib/twitter/user.rb +65 -0
  90. data/lib/twitter/version.rb +30 -0
  91. data/spec/faraday/request_spec.rb +25 -0
  92. data/spec/faraday/response_spec.rb +68 -0
  93. data/spec/fixtures/about_me.json +1 -0
  94. data/spec/fixtures/all.json +1 -0
  95. data/spec/fixtures/bad_gateway.json +1 -0
  96. data/spec/fixtures/bad_request.json +1 -0
  97. data/spec/fixtures/by_friends.json +1 -0
  98. data/spec/fixtures/category.json +1 -0
  99. data/spec/fixtures/configuration.json +1 -0
  100. data/spec/fixtures/contributees.json +1 -0
  101. data/spec/fixtures/contributors.json +1 -0
  102. data/spec/fixtures/direct_message.json +1 -0
  103. data/spec/fixtures/direct_messages.json +1 -0
  104. data/spec/fixtures/end_session.json +1 -0
  105. data/spec/fixtures/enhance_your_calm.text +11 -0
  106. data/spec/fixtures/false.json +1 -0
  107. data/spec/fixtures/favorites.json +1 -0
  108. data/spec/fixtures/forbidden.json +1 -0
  109. data/spec/fixtures/friendships.json +1 -0
  110. data/spec/fixtures/id_list.json +1 -0
  111. data/spec/fixtures/ids.json +1 -0
  112. data/spec/fixtures/image_facets.json +1 -0
  113. data/spec/fixtures/internal_server_error.json +1 -0
  114. data/spec/fixtures/languages.json +1 -0
  115. data/spec/fixtures/list.json +1 -0
  116. data/spec/fixtures/lists.json +1 -0
  117. data/spec/fixtures/locations.json +1 -0
  118. data/spec/fixtures/matching_trends.json +1 -0
  119. data/spec/fixtures/me.jpeg +0 -0
  120. data/spec/fixtures/media_timeline.json +1 -0
  121. data/spec/fixtures/members.json +1 -0
  122. data/spec/fixtures/n605431196_2079896_558_normal.jpg +0 -0
  123. data/spec/fixtures/no_user_matches.json +1 -0
  124. data/spec/fixtures/not_acceptable.json +1 -0
  125. data/spec/fixtures/not_found.json +1 -0
  126. data/spec/fixtures/oembed.json +1 -0
  127. data/spec/fixtures/pengwynn.json +1 -0
  128. data/spec/fixtures/phoenix_search.phoenix +1 -0
  129. data/spec/fixtures/place.json +1 -0
  130. data/spec/fixtures/places.json +1 -0
  131. data/spec/fixtures/privacy.json +1 -0
  132. data/spec/fixtures/profile_image.text +24 -0
  133. data/spec/fixtures/rate_limit_status.json +1 -0
  134. data/spec/fixtures/recommendations.json +1 -0
  135. data/spec/fixtures/relationship.json +1 -0
  136. data/spec/fixtures/resolve.json +1 -0
  137. data/spec/fixtures/retweet.json +1 -0
  138. data/spec/fixtures/retweeters_of.json +1 -0
  139. data/spec/fixtures/retweets.json +1 -0
  140. data/spec/fixtures/saved_search.json +1 -0
  141. data/spec/fixtures/saved_searches.json +1 -0
  142. data/spec/fixtures/search.json +1 -0
  143. data/spec/fixtures/service_unavailable.json +1 -0
  144. data/spec/fixtures/settings.json +1 -0
  145. data/spec/fixtures/sferik.json +1 -0
  146. data/spec/fixtures/status.json +1 -0
  147. data/spec/fixtures/status_with_media.json +104 -0
  148. data/spec/fixtures/statuses.json +1 -0
  149. data/spec/fixtures/suggestions.json +1 -0
  150. data/spec/fixtures/tos.json +1 -0
  151. data/spec/fixtures/totals.json +1 -0
  152. data/spec/fixtures/trends.json +1 -0
  153. data/spec/fixtures/trends_current.json +1 -0
  154. data/spec/fixtures/trends_daily.json +1 -0
  155. data/spec/fixtures/trends_weekly.json +1 -0
  156. data/spec/fixtures/true.json +1 -0
  157. data/spec/fixtures/unauthorized.json +1 -0
  158. data/spec/fixtures/user_search.json +1 -0
  159. data/spec/fixtures/user_timeline.json +1 -0
  160. data/spec/fixtures/users.json +1 -0
  161. data/spec/fixtures/users_list.json +1 -0
  162. data/spec/fixtures/video_facets.json +1 -0
  163. data/spec/fixtures/we_concept_bg2.png +0 -0
  164. data/spec/helper.rb +49 -0
  165. data/spec/twitter/action_factory_spec.rb +37 -0
  166. data/spec/twitter/action_spec.rb +16 -0
  167. data/spec/twitter/base_spec.rb +29 -0
  168. data/spec/twitter/client/accounts_spec.rb +181 -0
  169. data/spec/twitter/client/activity_spec.rb +43 -0
  170. data/spec/twitter/client/block_spec.rb +106 -0
  171. data/spec/twitter/client/direct_messages_spec.rb +98 -0
  172. data/spec/twitter/client/favorites_spec.rb +80 -0
  173. data/spec/twitter/client/friends_and_followers_spec.rb +478 -0
  174. data/spec/twitter/client/help_spec.rb +44 -0
  175. data/spec/twitter/client/legal_spec.rb +41 -0
  176. data/spec/twitter/client/lists_spec.rb +1104 -0
  177. data/spec/twitter/client/local_trends_spec.rb +58 -0
  178. data/spec/twitter/client/notification_spec.rb +47 -0
  179. data/spec/twitter/client/places_and_geo_spec.rb +100 -0
  180. data/spec/twitter/client/saved_searches_spec.rb +80 -0
  181. data/spec/twitter/client/search_spec.rb +92 -0
  182. data/spec/twitter/client/spam_reporting_spec.rb +28 -0
  183. data/spec/twitter/client/suggested_users_spec.rb +65 -0
  184. data/spec/twitter/client/timelines_spec.rb +231 -0
  185. data/spec/twitter/client/trends_spec.rb +51 -0
  186. data/spec/twitter/client/tweets_spec.rb +189 -0
  187. data/spec/twitter/client/urls_spec.rb +31 -0
  188. data/spec/twitter/client/users_spec.rb +323 -0
  189. data/spec/twitter/client_spec.rb +94 -0
  190. data/spec/twitter/configuration_spec.rb +17 -0
  191. data/spec/twitter/cursor_spec.rb +43 -0
  192. data/spec/twitter/direct_message_spec.rb +56 -0
  193. data/spec/twitter/favorite_spec.rb +29 -0
  194. data/spec/twitter/follow_spec.rb +29 -0
  195. data/spec/twitter/geo_factory_spec.rb +21 -0
  196. data/spec/twitter/list_spec.rb +34 -0
  197. data/spec/twitter/media_factory_spec.rb +17 -0
  198. data/spec/twitter/mention_spec.rb +52 -0
  199. data/spec/twitter/oembed_spec.rb +145 -0
  200. data/spec/twitter/photo_spec.rb +35 -0
  201. data/spec/twitter/place_spec.rb +75 -0
  202. data/spec/twitter/point_spec.rb +32 -0
  203. data/spec/twitter/polygon_spec.rb +18 -0
  204. data/spec/twitter/rate_limit_status_spec.rb +16 -0
  205. data/spec/twitter/relationship_spec.rb +27 -0
  206. data/spec/twitter/reply_spec.rb +41 -0
  207. data/spec/twitter/retweet_spec.rb +41 -0
  208. data/spec/twitter/saved_search_spec.rb +34 -0
  209. data/spec/twitter/settings_spec.rb +16 -0
  210. data/spec/twitter/size_spec.rb +18 -0
  211. data/spec/twitter/status_spec.rb +148 -0
  212. data/spec/twitter/suggestion_spec.rb +20 -0
  213. data/spec/twitter/trend_spec.rb +20 -0
  214. data/spec/twitter/user_spec.rb +50 -0
  215. data/spec/twitter_spec.rb +91 -0
  216. data/twitter.gemspec +42 -0
  217. metadata +564 -0
@@ -0,0 +1,20 @@
1
+ require 'helper'
2
+
3
+ describe Twitter::Suggestion do
4
+
5
+ before do
6
+ @suggestion = Twitter::Suggestion.new('slug' => 'art-design')
7
+ end
8
+
9
+ describe "#==" do
10
+ it "should return true when slugs are equal" do
11
+ other = Twitter::Suggestion.new('slug' => 'art-design')
12
+ (@suggestion == other).should be_true
13
+ end
14
+ it "should return false when coordinates are not equal" do
15
+ other = Twitter::Suggestion.new('slug' => 'design-art')
16
+ (@suggestion == other).should be_false
17
+ end
18
+ end
19
+
20
+ end
@@ -0,0 +1,20 @@
1
+ require 'helper'
2
+
3
+ describe Twitter::Trend do
4
+
5
+ before do
6
+ @trend = Twitter::Trend.new('name' => '#sevenwordsaftersex')
7
+ end
8
+
9
+ describe "#==" do
10
+ it "should return true when names are equal" do
11
+ other = Twitter::Trend.new('name' => '#sevenwordsaftersex')
12
+ (@trend == other).should be_true
13
+ end
14
+ it "should return false when coordinates are not equal" do
15
+ other = Twitter::Trend.new('name' => '#sixwordsaftersex')
16
+ (@trend == other).should be_false
17
+ end
18
+ end
19
+
20
+ end
@@ -0,0 +1,50 @@
1
+ require 'helper'
2
+
3
+ describe Twitter::User do
4
+
5
+ describe "#==" do
6
+ it "should return true when ids and classes are equal" do
7
+ user = Twitter::User.new('id' => 1)
8
+ other = Twitter::User.new('id' => 1)
9
+ (user == other).should be_true
10
+ end
11
+ it "should return false when classes are not equal" do
12
+ user = Twitter::User.new('id' => 1)
13
+ other = Twitter::Status.new('id' => 1)
14
+ (user == other).should be_false
15
+ end
16
+ it "should return false when ids are not equal" do
17
+ user = Twitter::User.new('id' => 1)
18
+ other = Twitter::User.new('id' => 2)
19
+ (user == other).should be_false
20
+ end
21
+ end
22
+
23
+ describe "#created_at" do
24
+ it "should return a Time when created_at is set" do
25
+ user = Twitter::User.new('created_at' => "Mon Jul 16 12:59:01 +0000 2007")
26
+ user.created_at.should be_a Time
27
+ end
28
+ it "should return nil when created_at is not set" do
29
+ user = Twitter::User.new
30
+ user.created_at.should be_nil
31
+ end
32
+ end
33
+
34
+ describe "#status" do
35
+ it "should return a Status when status is set" do
36
+ status = Twitter::User.new('status' => {}).status
37
+ status.should be_a Twitter::Status
38
+ end
39
+ it "should return nil when status is not set" do
40
+ status = Twitter::User.new.status
41
+ status.should be_nil
42
+ end
43
+ it "should have a user when user is set" do
44
+ status = Twitter::User.new('screen_name' => 'sferik', 'status' => {}).status
45
+ status.user.should be_a Twitter::User
46
+ status.user.screen_name.should == 'sferik'
47
+ end
48
+ end
49
+
50
+ end
@@ -0,0 +1,91 @@
1
+ require 'helper'
2
+
3
+ describe Twitter do
4
+ after do
5
+ Twitter.reset
6
+ end
7
+
8
+ context "when delegating to a client" do
9
+
10
+ before do
11
+ stub_get("/1/statuses/user_timeline.json").
12
+ with(:query => {:screen_name => "sferik"}).
13
+ to_return(:body => fixture("statuses.json"), :headers => {:content_type => "application/json; charset=utf-8"})
14
+ end
15
+
16
+ it "should request the correct resource" do
17
+ Twitter.user_timeline('sferik')
18
+ a_get("/1/statuses/user_timeline.json").
19
+ with(:query => {:screen_name => "sferik"}).
20
+ should have_been_made
21
+ end
22
+
23
+ it "should return the same results as a client" do
24
+ Twitter.user_timeline('sferik').should == Twitter::Client.new.user_timeline('sferik')
25
+ end
26
+
27
+ end
28
+
29
+ describe '.respond_to?' do
30
+ it "should take an optional argument" do
31
+ Twitter.respond_to?(:new, true).should be_true
32
+ end
33
+ end
34
+
35
+ describe ".new" do
36
+ it "should return a Twitter::Client" do
37
+ Twitter.new.should be_a Twitter::Client
38
+ end
39
+ end
40
+
41
+ describe ".adapter" do
42
+ it "should return the default adapter" do
43
+ Twitter.adapter.should == Twitter::Config::DEFAULT_ADAPTER
44
+ end
45
+ end
46
+
47
+ describe ".adapter=" do
48
+ it "should set the adapter" do
49
+ Twitter.adapter = :typhoeus
50
+ Twitter.adapter.should == :typhoeus
51
+ end
52
+ end
53
+
54
+ describe ".endpoint" do
55
+ it "should return the default endpoint" do
56
+ Twitter.endpoint.should == Twitter::Config::DEFAULT_ENDPOINT
57
+ end
58
+ end
59
+
60
+ describe ".endpoint=" do
61
+ it "should set the endpoint" do
62
+ Twitter.endpoint = 'http://tumblr.com/'
63
+ Twitter.endpoint.should == 'http://tumblr.com/'
64
+ end
65
+ end
66
+
67
+ describe ".user_agent" do
68
+ it "should return the default user agent" do
69
+ Twitter.user_agent.should == Twitter::Config::DEFAULT_USER_AGENT
70
+ end
71
+ end
72
+
73
+ describe ".user_agent=" do
74
+ it "should set the user_agent" do
75
+ Twitter.user_agent = 'Custom User Agent'
76
+ Twitter.user_agent.should == 'Custom User Agent'
77
+ end
78
+ end
79
+
80
+ describe ".configure" do
81
+ Twitter::Config::VALID_OPTIONS_KEYS.each do |key|
82
+ it "should set the #{key}" do
83
+ Twitter.configure do |config|
84
+ config.send("#{key}=", key)
85
+ Twitter.send(key).should == key
86
+ end
87
+ end
88
+ end
89
+ end
90
+
91
+ end
data/twitter.gemspec ADDED
@@ -0,0 +1,42 @@
1
+ # encoding: utf-8
2
+ require File.expand_path('../lib/twitter/version', __FILE__)
3
+
4
+ Gem::Specification.new do |gem|
5
+ gem.add_dependency 'activesupport', ['>= 2.3.9', '< 4']
6
+ gem.add_dependency 'faraday', '~> 0.7'
7
+ gem.add_dependency 'multi_json', '~> 1.0'
8
+ gem.add_dependency 'simple_oauth', '~> 0.1'
9
+ gem.add_development_dependency 'json'
10
+ gem.add_development_dependency 'maruku'
11
+ gem.add_development_dependency 'rake'
12
+ gem.add_development_dependency 'rspec'
13
+ gem.add_development_dependency 'simplecov'
14
+ gem.add_development_dependency 'webmock'
15
+ gem.add_development_dependency 'yard'
16
+ gem.authors = ["John Nunemaker", "Wynn Netherland", "Erik Michaels-Ober", "Steve Richert"]
17
+ gem.description = %q{A Ruby wrapper for the Twitter API.}
18
+ gem.email = ['nunemaker@gmail.com', 'wynn.netherland@gmail.com', 'sferik@gmail.com', 'steve.richert@gmail.com']
19
+ gem.executables = `git ls-files -- bin/*`.split("\n").map{|f| File.basename(f)}
20
+ gem.files = `git ls-files`.split("\n")
21
+ gem.homepage = 'https://github.com/jnunemaker/twitter'
22
+ gem.name = 'ifttt-twitter'
23
+ gem.post_install_message =<<eos
24
+ ********************************************************************************
25
+
26
+ You should follow @gem on Twitter for announcements and updates about the gem.
27
+ https://twitter.com/gem
28
+
29
+ Please direct any questions about the library to the mailing list.
30
+ https://groups.google.com/group/ruby-twitter-gem
31
+
32
+ Does your project or organization use this gem? Add it to the apps wiki!
33
+ https://github.com/jnunemaker/twitter/wiki/apps
34
+
35
+ ********************************************************************************
36
+ eos
37
+ gem.require_paths = ['lib']
38
+ gem.required_rubygems_version = Gem::Requirement.new('>= 1.3.6')
39
+ gem.summary = %q{Twitter API wrapper}
40
+ gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
41
+ gem.version = Twitter::Version.to_s
42
+ end
metadata ADDED
@@ -0,0 +1,564 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: ifttt-twitter
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 2
7
+ - 1
8
+ - 1
9
+ version: 2.1.1
10
+ platform: ruby
11
+ authors:
12
+ - John Nunemaker
13
+ - Wynn Netherland
14
+ - Erik Michaels-Ober
15
+ - Steve Richert
16
+ autorequire:
17
+ bindir: bin
18
+ cert_chain: []
19
+
20
+ date: 2013-01-15 00:00:00 -08:00
21
+ default_executable:
22
+ dependencies:
23
+ - !ruby/object:Gem::Dependency
24
+ name: activesupport
25
+ prerelease: false
26
+ requirement: &id001 !ruby/object:Gem::Requirement
27
+ requirements:
28
+ - - ">="
29
+ - !ruby/object:Gem::Version
30
+ segments:
31
+ - 2
32
+ - 3
33
+ - 9
34
+ version: 2.3.9
35
+ - - <
36
+ - !ruby/object:Gem::Version
37
+ segments:
38
+ - 4
39
+ version: "4"
40
+ type: :runtime
41
+ version_requirements: *id001
42
+ - !ruby/object:Gem::Dependency
43
+ name: faraday
44
+ prerelease: false
45
+ requirement: &id002 !ruby/object:Gem::Requirement
46
+ requirements:
47
+ - - ~>
48
+ - !ruby/object:Gem::Version
49
+ segments:
50
+ - 0
51
+ - 7
52
+ version: "0.7"
53
+ type: :runtime
54
+ version_requirements: *id002
55
+ - !ruby/object:Gem::Dependency
56
+ name: multi_json
57
+ prerelease: false
58
+ requirement: &id003 !ruby/object:Gem::Requirement
59
+ requirements:
60
+ - - ~>
61
+ - !ruby/object:Gem::Version
62
+ segments:
63
+ - 1
64
+ - 0
65
+ version: "1.0"
66
+ type: :runtime
67
+ version_requirements: *id003
68
+ - !ruby/object:Gem::Dependency
69
+ name: simple_oauth
70
+ prerelease: false
71
+ requirement: &id004 !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ~>
74
+ - !ruby/object:Gem::Version
75
+ segments:
76
+ - 0
77
+ - 1
78
+ version: "0.1"
79
+ type: :runtime
80
+ version_requirements: *id004
81
+ - !ruby/object:Gem::Dependency
82
+ name: json
83
+ prerelease: false
84
+ requirement: &id005 !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - ">="
87
+ - !ruby/object:Gem::Version
88
+ segments:
89
+ - 0
90
+ version: "0"
91
+ type: :development
92
+ version_requirements: *id005
93
+ - !ruby/object:Gem::Dependency
94
+ name: maruku
95
+ prerelease: false
96
+ requirement: &id006 !ruby/object:Gem::Requirement
97
+ requirements:
98
+ - - ">="
99
+ - !ruby/object:Gem::Version
100
+ segments:
101
+ - 0
102
+ version: "0"
103
+ type: :development
104
+ version_requirements: *id006
105
+ - !ruby/object:Gem::Dependency
106
+ name: rake
107
+ prerelease: false
108
+ requirement: &id007 !ruby/object:Gem::Requirement
109
+ requirements:
110
+ - - ">="
111
+ - !ruby/object:Gem::Version
112
+ segments:
113
+ - 0
114
+ version: "0"
115
+ type: :development
116
+ version_requirements: *id007
117
+ - !ruby/object:Gem::Dependency
118
+ name: rspec
119
+ prerelease: false
120
+ requirement: &id008 !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ segments:
125
+ - 0
126
+ version: "0"
127
+ type: :development
128
+ version_requirements: *id008
129
+ - !ruby/object:Gem::Dependency
130
+ name: simplecov
131
+ prerelease: false
132
+ requirement: &id009 !ruby/object:Gem::Requirement
133
+ requirements:
134
+ - - ">="
135
+ - !ruby/object:Gem::Version
136
+ segments:
137
+ - 0
138
+ version: "0"
139
+ type: :development
140
+ version_requirements: *id009
141
+ - !ruby/object:Gem::Dependency
142
+ name: webmock
143
+ prerelease: false
144
+ requirement: &id010 !ruby/object:Gem::Requirement
145
+ requirements:
146
+ - - ">="
147
+ - !ruby/object:Gem::Version
148
+ segments:
149
+ - 0
150
+ version: "0"
151
+ type: :development
152
+ version_requirements: *id010
153
+ - !ruby/object:Gem::Dependency
154
+ name: yard
155
+ prerelease: false
156
+ requirement: &id011 !ruby/object:Gem::Requirement
157
+ requirements:
158
+ - - ">="
159
+ - !ruby/object:Gem::Version
160
+ segments:
161
+ - 0
162
+ version: "0"
163
+ type: :development
164
+ version_requirements: *id011
165
+ description: A Ruby wrapper for the Twitter API.
166
+ email:
167
+ - nunemaker@gmail.com
168
+ - wynn.netherland@gmail.com
169
+ - sferik@gmail.com
170
+ - steve.richert@gmail.com
171
+ executables: []
172
+
173
+ extensions: []
174
+
175
+ extra_rdoc_files: []
176
+
177
+ files:
178
+ - .gemtest
179
+ - .gitignore
180
+ - .rspec
181
+ - .travis.yml
182
+ - .yardopts
183
+ - Gemfile
184
+ - HISTORY.md
185
+ - LICENSE.md
186
+ - README.md
187
+ - Rakefile
188
+ - lib/twitter.rb
189
+ - lib/twitter/action.rb
190
+ - lib/twitter/action_factory.rb
191
+ - lib/twitter/authenticatable.rb
192
+ - lib/twitter/base.rb
193
+ - lib/twitter/client.rb
194
+ - lib/twitter/client/accounts.rb
195
+ - lib/twitter/client/activity.rb
196
+ - lib/twitter/client/block.rb
197
+ - lib/twitter/client/direct_messages.rb
198
+ - lib/twitter/client/favorites.rb
199
+ - lib/twitter/client/friends_and_followers.rb
200
+ - lib/twitter/client/help.rb
201
+ - lib/twitter/client/legal.rb
202
+ - lib/twitter/client/lists.rb
203
+ - lib/twitter/client/local_trends.rb
204
+ - lib/twitter/client/notification.rb
205
+ - lib/twitter/client/places_and_geo.rb
206
+ - lib/twitter/client/saved_searches.rb
207
+ - lib/twitter/client/search.rb
208
+ - lib/twitter/client/spam_reporting.rb
209
+ - lib/twitter/client/suggested_users.rb
210
+ - lib/twitter/client/timelines.rb
211
+ - lib/twitter/client/trends.rb
212
+ - lib/twitter/client/tweets.rb
213
+ - lib/twitter/client/urls.rb
214
+ - lib/twitter/client/users.rb
215
+ - lib/twitter/config.rb
216
+ - lib/twitter/configuration.rb
217
+ - lib/twitter/connection.rb
218
+ - lib/twitter/core_ext/hash.rb
219
+ - lib/twitter/creatable.rb
220
+ - lib/twitter/cursor.rb
221
+ - lib/twitter/direct_message.rb
222
+ - lib/twitter/error.rb
223
+ - lib/twitter/error/bad_gateway.rb
224
+ - lib/twitter/error/bad_request.rb
225
+ - lib/twitter/error/client_error.rb
226
+ - lib/twitter/error/enhance_your_calm.rb
227
+ - lib/twitter/error/forbidden.rb
228
+ - lib/twitter/error/internal_server_error.rb
229
+ - lib/twitter/error/not_acceptable.rb
230
+ - lib/twitter/error/not_found.rb
231
+ - lib/twitter/error/server_error.rb
232
+ - lib/twitter/error/service_unavailable.rb
233
+ - lib/twitter/error/unauthorized.rb
234
+ - lib/twitter/favorite.rb
235
+ - lib/twitter/follow.rb
236
+ - lib/twitter/geo_factory.rb
237
+ - lib/twitter/language.rb
238
+ - lib/twitter/list.rb
239
+ - lib/twitter/list_member_added.rb
240
+ - lib/twitter/media_factory.rb
241
+ - lib/twitter/mention.rb
242
+ - lib/twitter/metadata.rb
243
+ - lib/twitter/oembed.rb
244
+ - lib/twitter/photo.rb
245
+ - lib/twitter/place.rb
246
+ - lib/twitter/point.rb
247
+ - lib/twitter/polygon.rb
248
+ - lib/twitter/rate_limit_status.rb
249
+ - lib/twitter/relationship.rb
250
+ - lib/twitter/reply.rb
251
+ - lib/twitter/request.rb
252
+ - lib/twitter/request/gateway.rb
253
+ - lib/twitter/request/multipart_with_file.rb
254
+ - lib/twitter/request/oauth.rb
255
+ - lib/twitter/request/phoenix.rb
256
+ - lib/twitter/response/parse_json.rb
257
+ - lib/twitter/response/raise_client_error.rb
258
+ - lib/twitter/response/raise_server_error.rb
259
+ - lib/twitter/retweet.rb
260
+ - lib/twitter/saved_search.rb
261
+ - lib/twitter/settings.rb
262
+ - lib/twitter/size.rb
263
+ - lib/twitter/status.rb
264
+ - lib/twitter/suggestion.rb
265
+ - lib/twitter/trend.rb
266
+ - lib/twitter/user.rb
267
+ - lib/twitter/version.rb
268
+ - spec/faraday/request_spec.rb
269
+ - spec/faraday/response_spec.rb
270
+ - spec/fixtures/about_me.json
271
+ - spec/fixtures/all.json
272
+ - spec/fixtures/bad_gateway.json
273
+ - spec/fixtures/bad_request.json
274
+ - spec/fixtures/by_friends.json
275
+ - spec/fixtures/category.json
276
+ - spec/fixtures/configuration.json
277
+ - spec/fixtures/contributees.json
278
+ - spec/fixtures/contributors.json
279
+ - spec/fixtures/direct_message.json
280
+ - spec/fixtures/direct_messages.json
281
+ - spec/fixtures/end_session.json
282
+ - spec/fixtures/enhance_your_calm.text
283
+ - spec/fixtures/false.json
284
+ - spec/fixtures/favorites.json
285
+ - spec/fixtures/forbidden.json
286
+ - spec/fixtures/friendships.json
287
+ - spec/fixtures/id_list.json
288
+ - spec/fixtures/ids.json
289
+ - spec/fixtures/image_facets.json
290
+ - spec/fixtures/internal_server_error.json
291
+ - spec/fixtures/languages.json
292
+ - spec/fixtures/list.json
293
+ - spec/fixtures/lists.json
294
+ - spec/fixtures/locations.json
295
+ - spec/fixtures/matching_trends.json
296
+ - spec/fixtures/me.jpeg
297
+ - spec/fixtures/media_timeline.json
298
+ - spec/fixtures/members.json
299
+ - spec/fixtures/n605431196_2079896_558_normal.jpg
300
+ - spec/fixtures/no_user_matches.json
301
+ - spec/fixtures/not_acceptable.json
302
+ - spec/fixtures/not_found.json
303
+ - spec/fixtures/oembed.json
304
+ - spec/fixtures/pengwynn.json
305
+ - spec/fixtures/phoenix_search.phoenix
306
+ - spec/fixtures/place.json
307
+ - spec/fixtures/places.json
308
+ - spec/fixtures/privacy.json
309
+ - spec/fixtures/profile_image.text
310
+ - spec/fixtures/rate_limit_status.json
311
+ - spec/fixtures/recommendations.json
312
+ - spec/fixtures/relationship.json
313
+ - spec/fixtures/resolve.json
314
+ - spec/fixtures/retweet.json
315
+ - spec/fixtures/retweeters_of.json
316
+ - spec/fixtures/retweets.json
317
+ - spec/fixtures/saved_search.json
318
+ - spec/fixtures/saved_searches.json
319
+ - spec/fixtures/search.json
320
+ - spec/fixtures/service_unavailable.json
321
+ - spec/fixtures/settings.json
322
+ - spec/fixtures/sferik.json
323
+ - spec/fixtures/status.json
324
+ - spec/fixtures/status_with_media.json
325
+ - spec/fixtures/statuses.json
326
+ - spec/fixtures/suggestions.json
327
+ - spec/fixtures/tos.json
328
+ - spec/fixtures/totals.json
329
+ - spec/fixtures/trends.json
330
+ - spec/fixtures/trends_current.json
331
+ - spec/fixtures/trends_daily.json
332
+ - spec/fixtures/trends_weekly.json
333
+ - spec/fixtures/true.json
334
+ - spec/fixtures/unauthorized.json
335
+ - spec/fixtures/user_search.json
336
+ - spec/fixtures/user_timeline.json
337
+ - spec/fixtures/users.json
338
+ - spec/fixtures/users_list.json
339
+ - spec/fixtures/video_facets.json
340
+ - spec/fixtures/we_concept_bg2.png
341
+ - spec/helper.rb
342
+ - spec/twitter/action_factory_spec.rb
343
+ - spec/twitter/action_spec.rb
344
+ - spec/twitter/base_spec.rb
345
+ - spec/twitter/client/accounts_spec.rb
346
+ - spec/twitter/client/activity_spec.rb
347
+ - spec/twitter/client/block_spec.rb
348
+ - spec/twitter/client/direct_messages_spec.rb
349
+ - spec/twitter/client/favorites_spec.rb
350
+ - spec/twitter/client/friends_and_followers_spec.rb
351
+ - spec/twitter/client/help_spec.rb
352
+ - spec/twitter/client/legal_spec.rb
353
+ - spec/twitter/client/lists_spec.rb
354
+ - spec/twitter/client/local_trends_spec.rb
355
+ - spec/twitter/client/notification_spec.rb
356
+ - spec/twitter/client/places_and_geo_spec.rb
357
+ - spec/twitter/client/saved_searches_spec.rb
358
+ - spec/twitter/client/search_spec.rb
359
+ - spec/twitter/client/spam_reporting_spec.rb
360
+ - spec/twitter/client/suggested_users_spec.rb
361
+ - spec/twitter/client/timelines_spec.rb
362
+ - spec/twitter/client/trends_spec.rb
363
+ - spec/twitter/client/tweets_spec.rb
364
+ - spec/twitter/client/urls_spec.rb
365
+ - spec/twitter/client/users_spec.rb
366
+ - spec/twitter/client_spec.rb
367
+ - spec/twitter/configuration_spec.rb
368
+ - spec/twitter/cursor_spec.rb
369
+ - spec/twitter/direct_message_spec.rb
370
+ - spec/twitter/favorite_spec.rb
371
+ - spec/twitter/follow_spec.rb
372
+ - spec/twitter/geo_factory_spec.rb
373
+ - spec/twitter/list_spec.rb
374
+ - spec/twitter/media_factory_spec.rb
375
+ - spec/twitter/mention_spec.rb
376
+ - spec/twitter/oembed_spec.rb
377
+ - spec/twitter/photo_spec.rb
378
+ - spec/twitter/place_spec.rb
379
+ - spec/twitter/point_spec.rb
380
+ - spec/twitter/polygon_spec.rb
381
+ - spec/twitter/rate_limit_status_spec.rb
382
+ - spec/twitter/relationship_spec.rb
383
+ - spec/twitter/reply_spec.rb
384
+ - spec/twitter/retweet_spec.rb
385
+ - spec/twitter/saved_search_spec.rb
386
+ - spec/twitter/settings_spec.rb
387
+ - spec/twitter/size_spec.rb
388
+ - spec/twitter/status_spec.rb
389
+ - spec/twitter/suggestion_spec.rb
390
+ - spec/twitter/trend_spec.rb
391
+ - spec/twitter/user_spec.rb
392
+ - spec/twitter_spec.rb
393
+ - twitter.gemspec
394
+ has_rdoc: true
395
+ homepage: https://github.com/jnunemaker/twitter
396
+ licenses: []
397
+
398
+ post_install_message: |
399
+ ********************************************************************************
400
+
401
+ You should follow @gem on Twitter for announcements and updates about the gem.
402
+ https://twitter.com/gem
403
+
404
+ Please direct any questions about the library to the mailing list.
405
+ https://groups.google.com/group/ruby-twitter-gem
406
+
407
+ Does your project or organization use this gem? Add it to the apps wiki!
408
+ https://github.com/jnunemaker/twitter/wiki/apps
409
+
410
+ ********************************************************************************
411
+
412
+ rdoc_options: []
413
+
414
+ require_paths:
415
+ - lib
416
+ required_ruby_version: !ruby/object:Gem::Requirement
417
+ requirements:
418
+ - - ">="
419
+ - !ruby/object:Gem::Version
420
+ segments:
421
+ - 0
422
+ version: "0"
423
+ required_rubygems_version: !ruby/object:Gem::Requirement
424
+ requirements:
425
+ - - ">="
426
+ - !ruby/object:Gem::Version
427
+ segments:
428
+ - 1
429
+ - 3
430
+ - 6
431
+ version: 1.3.6
432
+ requirements: []
433
+
434
+ rubyforge_project:
435
+ rubygems_version: 1.3.6
436
+ signing_key:
437
+ specification_version: 3
438
+ summary: Twitter API wrapper
439
+ test_files:
440
+ - spec/faraday/request_spec.rb
441
+ - spec/faraday/response_spec.rb
442
+ - spec/fixtures/about_me.json
443
+ - spec/fixtures/all.json
444
+ - spec/fixtures/bad_gateway.json
445
+ - spec/fixtures/bad_request.json
446
+ - spec/fixtures/by_friends.json
447
+ - spec/fixtures/category.json
448
+ - spec/fixtures/configuration.json
449
+ - spec/fixtures/contributees.json
450
+ - spec/fixtures/contributors.json
451
+ - spec/fixtures/direct_message.json
452
+ - spec/fixtures/direct_messages.json
453
+ - spec/fixtures/end_session.json
454
+ - spec/fixtures/enhance_your_calm.text
455
+ - spec/fixtures/false.json
456
+ - spec/fixtures/favorites.json
457
+ - spec/fixtures/forbidden.json
458
+ - spec/fixtures/friendships.json
459
+ - spec/fixtures/id_list.json
460
+ - spec/fixtures/ids.json
461
+ - spec/fixtures/image_facets.json
462
+ - spec/fixtures/internal_server_error.json
463
+ - spec/fixtures/languages.json
464
+ - spec/fixtures/list.json
465
+ - spec/fixtures/lists.json
466
+ - spec/fixtures/locations.json
467
+ - spec/fixtures/matching_trends.json
468
+ - spec/fixtures/me.jpeg
469
+ - spec/fixtures/media_timeline.json
470
+ - spec/fixtures/members.json
471
+ - spec/fixtures/n605431196_2079896_558_normal.jpg
472
+ - spec/fixtures/no_user_matches.json
473
+ - spec/fixtures/not_acceptable.json
474
+ - spec/fixtures/not_found.json
475
+ - spec/fixtures/oembed.json
476
+ - spec/fixtures/pengwynn.json
477
+ - spec/fixtures/phoenix_search.phoenix
478
+ - spec/fixtures/place.json
479
+ - spec/fixtures/places.json
480
+ - spec/fixtures/privacy.json
481
+ - spec/fixtures/profile_image.text
482
+ - spec/fixtures/rate_limit_status.json
483
+ - spec/fixtures/recommendations.json
484
+ - spec/fixtures/relationship.json
485
+ - spec/fixtures/resolve.json
486
+ - spec/fixtures/retweet.json
487
+ - spec/fixtures/retweeters_of.json
488
+ - spec/fixtures/retweets.json
489
+ - spec/fixtures/saved_search.json
490
+ - spec/fixtures/saved_searches.json
491
+ - spec/fixtures/search.json
492
+ - spec/fixtures/service_unavailable.json
493
+ - spec/fixtures/settings.json
494
+ - spec/fixtures/sferik.json
495
+ - spec/fixtures/status.json
496
+ - spec/fixtures/status_with_media.json
497
+ - spec/fixtures/statuses.json
498
+ - spec/fixtures/suggestions.json
499
+ - spec/fixtures/tos.json
500
+ - spec/fixtures/totals.json
501
+ - spec/fixtures/trends.json
502
+ - spec/fixtures/trends_current.json
503
+ - spec/fixtures/trends_daily.json
504
+ - spec/fixtures/trends_weekly.json
505
+ - spec/fixtures/true.json
506
+ - spec/fixtures/unauthorized.json
507
+ - spec/fixtures/user_search.json
508
+ - spec/fixtures/user_timeline.json
509
+ - spec/fixtures/users.json
510
+ - spec/fixtures/users_list.json
511
+ - spec/fixtures/video_facets.json
512
+ - spec/fixtures/we_concept_bg2.png
513
+ - spec/helper.rb
514
+ - spec/twitter/action_factory_spec.rb
515
+ - spec/twitter/action_spec.rb
516
+ - spec/twitter/base_spec.rb
517
+ - spec/twitter/client/accounts_spec.rb
518
+ - spec/twitter/client/activity_spec.rb
519
+ - spec/twitter/client/block_spec.rb
520
+ - spec/twitter/client/direct_messages_spec.rb
521
+ - spec/twitter/client/favorites_spec.rb
522
+ - spec/twitter/client/friends_and_followers_spec.rb
523
+ - spec/twitter/client/help_spec.rb
524
+ - spec/twitter/client/legal_spec.rb
525
+ - spec/twitter/client/lists_spec.rb
526
+ - spec/twitter/client/local_trends_spec.rb
527
+ - spec/twitter/client/notification_spec.rb
528
+ - spec/twitter/client/places_and_geo_spec.rb
529
+ - spec/twitter/client/saved_searches_spec.rb
530
+ - spec/twitter/client/search_spec.rb
531
+ - spec/twitter/client/spam_reporting_spec.rb
532
+ - spec/twitter/client/suggested_users_spec.rb
533
+ - spec/twitter/client/timelines_spec.rb
534
+ - spec/twitter/client/trends_spec.rb
535
+ - spec/twitter/client/tweets_spec.rb
536
+ - spec/twitter/client/urls_spec.rb
537
+ - spec/twitter/client/users_spec.rb
538
+ - spec/twitter/client_spec.rb
539
+ - spec/twitter/configuration_spec.rb
540
+ - spec/twitter/cursor_spec.rb
541
+ - spec/twitter/direct_message_spec.rb
542
+ - spec/twitter/favorite_spec.rb
543
+ - spec/twitter/follow_spec.rb
544
+ - spec/twitter/geo_factory_spec.rb
545
+ - spec/twitter/list_spec.rb
546
+ - spec/twitter/media_factory_spec.rb
547
+ - spec/twitter/mention_spec.rb
548
+ - spec/twitter/oembed_spec.rb
549
+ - spec/twitter/photo_spec.rb
550
+ - spec/twitter/place_spec.rb
551
+ - spec/twitter/point_spec.rb
552
+ - spec/twitter/polygon_spec.rb
553
+ - spec/twitter/rate_limit_status_spec.rb
554
+ - spec/twitter/relationship_spec.rb
555
+ - spec/twitter/reply_spec.rb
556
+ - spec/twitter/retweet_spec.rb
557
+ - spec/twitter/saved_search_spec.rb
558
+ - spec/twitter/settings_spec.rb
559
+ - spec/twitter/size_spec.rb
560
+ - spec/twitter/status_spec.rb
561
+ - spec/twitter/suggestion_spec.rb
562
+ - spec/twitter/trend_spec.rb
563
+ - spec/twitter/user_spec.rb
564
+ - spec/twitter_spec.rb