social_net 0.2.19 → 0.2.20

Sign up to get free protection for your applications and to get access to all the features.
Files changed (27) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +103 -2
  3. data/lib/social_net/byte/api/configuration.rb +13 -0
  4. data/lib/social_net/byte/api/request.rb +71 -0
  5. data/lib/social_net/byte/config.rb +16 -0
  6. data/lib/social_net/byte/errors/response_error.rb +14 -0
  7. data/lib/social_net/byte/errors/unknown_post.rb +11 -0
  8. data/lib/social_net/byte/errors/unknown_user.rb +11 -0
  9. data/lib/social_net/byte/errors.rb +3 -0
  10. data/lib/social_net/byte/models/post.rb +66 -0
  11. data/lib/social_net/byte/models/user.rb +99 -0
  12. data/lib/social_net/byte/models.rb +2 -0
  13. data/lib/social_net/byte.rb +11 -0
  14. data/lib/social_net/version.rb +1 -1
  15. data/lib/social_net.rb +1 -0
  16. data/spec/social_net/byte/post_spec.rb +53 -0
  17. data/spec/social_net/byte/user_spec.rb +105 -0
  18. data/spec/support/cassettes/SocialNet_Byte_Models_User/_find_by_/given_an_existing_case-sensitive_username/returns_an_object_representing_that_user.yml +46 -0
  19. data/spec/support/cassettes/SocialNet_Byte_Models_User/_find_by_/given_an_unknown_username/.yml +45 -0
  20. data/spec/support/cassettes/SocialNet_Byte_Models_User/_find_by_id/given_an_existing_case-sensitive_ID/returns_an_object_representing_that_user.yml +46 -0
  21. data/spec/support/cassettes/SocialNet_Byte_Models_User/_find_by_id/given_an_unknown_ID/.yml +45 -0
  22. data/spec/support/cassettes/SocialNet_Byte_Models_User/_find_by_username/given_an_existing_case-insensitive_username/returns_an_object_representing_that_user.yml +46 -0
  23. data/spec/support/cassettes/SocialNet_Byte_Models_User/_find_by_username/given_an_unknown_username/.yml +45 -0
  24. data/spec/support/cassettes/SocialNet_Byte_Models_User/_posts/given_an_existing_user_with_no_posts/returns_an_empty_array_from_the_user.yml +129 -0
  25. data/spec/support/cassettes/SocialNet_Byte_Models_User/_posts/given_an_existing_user_with_paginated_posts/returns_an_array_of_video_posts_from_the_user.yml +175 -0
  26. data/spec/support/cassettes/SocialNet_Byte_Models_User/_posts/given_an_existing_user_with_posts/returns_an_array_of_video_posts_from_the_user.yml +132 -0
  27. metadata +35 -2
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: social_net
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.19
4
+ version: 0.2.20
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Cohen Hoffing
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-09-12 00:00:00.000000000 Z
11
+ date: 2020-01-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -150,6 +150,17 @@ files:
150
150
  - README.md
151
151
  - Rakefile
152
152
  - lib/social_net.rb
153
+ - lib/social_net/byte.rb
154
+ - lib/social_net/byte/api/configuration.rb
155
+ - lib/social_net/byte/api/request.rb
156
+ - lib/social_net/byte/config.rb
157
+ - lib/social_net/byte/errors.rb
158
+ - lib/social_net/byte/errors/response_error.rb
159
+ - lib/social_net/byte/errors/unknown_post.rb
160
+ - lib/social_net/byte/errors/unknown_user.rb
161
+ - lib/social_net/byte/models.rb
162
+ - lib/social_net/byte/models/post.rb
163
+ - lib/social_net/byte/models/user.rb
153
164
  - lib/social_net/facebook.rb
154
165
  - lib/social_net/facebook/api/configuration.rb
155
166
  - lib/social_net/facebook/api/request.rb
@@ -190,6 +201,8 @@ files:
190
201
  - lib/social_net/twitter/models/user.rb
191
202
  - lib/social_net/version.rb
192
203
  - social_net.gemspec
204
+ - spec/social_net/byte/post_spec.rb
205
+ - spec/social_net/byte/user_spec.rb
193
206
  - spec/social_net/facebook/models/pages_spec.rb
194
207
  - spec/social_net/facebook/models/users_spec.rb
195
208
  - spec/social_net/facebook/models/video_spec.rb
@@ -199,6 +212,15 @@ files:
199
212
  - spec/spec_helper.rb
200
213
  - spec/support/cassettes/Posts/_posts/given_an_existing_case-insensitive_username/returns_an_object_representing_that_user.yml
201
214
  - spec/support/cassettes/Posts/_posts/given_an_unknown_username/.yml
215
+ - spec/support/cassettes/SocialNet_Byte_Models_User/_find_by_/given_an_existing_case-sensitive_username/returns_an_object_representing_that_user.yml
216
+ - spec/support/cassettes/SocialNet_Byte_Models_User/_find_by_/given_an_unknown_username/.yml
217
+ - spec/support/cassettes/SocialNet_Byte_Models_User/_find_by_id/given_an_existing_case-sensitive_ID/returns_an_object_representing_that_user.yml
218
+ - spec/support/cassettes/SocialNet_Byte_Models_User/_find_by_id/given_an_unknown_ID/.yml
219
+ - spec/support/cassettes/SocialNet_Byte_Models_User/_find_by_username/given_an_existing_case-insensitive_username/returns_an_object_representing_that_user.yml
220
+ - spec/support/cassettes/SocialNet_Byte_Models_User/_find_by_username/given_an_unknown_username/.yml
221
+ - spec/support/cassettes/SocialNet_Byte_Models_User/_posts/given_an_existing_user_with_no_posts/returns_an_empty_array_from_the_user.yml
222
+ - spec/support/cassettes/SocialNet_Byte_Models_User/_posts/given_an_existing_user_with_paginated_posts/returns_an_array_of_video_posts_from_the_user.yml
223
+ - spec/support/cassettes/SocialNet_Byte_Models_User/_posts/given_an_existing_user_with_posts/returns_an_array_of_video_posts_from_the_user.yml
202
224
  - spec/support/cassettes/SocialNet_Facebook_Models_User/_find_video/given_a_nonexistant_video_video_id/.yml
203
225
  - spec/support/cassettes/SocialNet_Facebook_Models_User/_find_video/given_an_existing_video_id/returns_an_object_representing_a_video.yml
204
226
  - spec/support/cassettes/SocialNet_Facebook_Models_Video/_find_by_id/given_a_nonexistant_video_video_id/.yml
@@ -242,6 +264,8 @@ signing_key:
242
264
  specification_version: 4
243
265
  summary: An API Client for social networks
244
266
  test_files:
267
+ - spec/social_net/byte/post_spec.rb
268
+ - spec/social_net/byte/user_spec.rb
245
269
  - spec/social_net/facebook/models/pages_spec.rb
246
270
  - spec/social_net/facebook/models/users_spec.rb
247
271
  - spec/social_net/facebook/models/video_spec.rb
@@ -251,6 +275,15 @@ test_files:
251
275
  - spec/spec_helper.rb
252
276
  - spec/support/cassettes/Posts/_posts/given_an_existing_case-insensitive_username/returns_an_object_representing_that_user.yml
253
277
  - spec/support/cassettes/Posts/_posts/given_an_unknown_username/.yml
278
+ - spec/support/cassettes/SocialNet_Byte_Models_User/_find_by_/given_an_existing_case-sensitive_username/returns_an_object_representing_that_user.yml
279
+ - spec/support/cassettes/SocialNet_Byte_Models_User/_find_by_/given_an_unknown_username/.yml
280
+ - spec/support/cassettes/SocialNet_Byte_Models_User/_find_by_id/given_an_existing_case-sensitive_ID/returns_an_object_representing_that_user.yml
281
+ - spec/support/cassettes/SocialNet_Byte_Models_User/_find_by_id/given_an_unknown_ID/.yml
282
+ - spec/support/cassettes/SocialNet_Byte_Models_User/_find_by_username/given_an_existing_case-insensitive_username/returns_an_object_representing_that_user.yml
283
+ - spec/support/cassettes/SocialNet_Byte_Models_User/_find_by_username/given_an_unknown_username/.yml
284
+ - spec/support/cassettes/SocialNet_Byte_Models_User/_posts/given_an_existing_user_with_no_posts/returns_an_empty_array_from_the_user.yml
285
+ - spec/support/cassettes/SocialNet_Byte_Models_User/_posts/given_an_existing_user_with_paginated_posts/returns_an_array_of_video_posts_from_the_user.yml
286
+ - spec/support/cassettes/SocialNet_Byte_Models_User/_posts/given_an_existing_user_with_posts/returns_an_array_of_video_posts_from_the_user.yml
254
287
  - spec/support/cassettes/SocialNet_Facebook_Models_User/_find_video/given_a_nonexistant_video_video_id/.yml
255
288
  - spec/support/cassettes/SocialNet_Facebook_Models_User/_find_video/given_an_existing_video_id/returns_an_object_representing_a_video.yml
256
289
  - spec/support/cassettes/SocialNet_Facebook_Models_Video/_find_by_id/given_a_nonexistant_video_video_id/.yml