active_public_resources 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (66) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +19 -0
  3. data/.rspec +1 -0
  4. data/.travis.yml +3 -0
  5. data/Gemfile +24 -0
  6. data/Guardfile +9 -0
  7. data/LICENSE.txt +18 -0
  8. data/README.md +326 -0
  9. data/Rakefile +7 -0
  10. data/active_public_resources.gemspec +27 -0
  11. data/active_public_resources_config.yml.example +10 -0
  12. data/lib/active_public_resources/base_response_type.rb +11 -0
  13. data/lib/active_public_resources/base_return_type.rb +17 -0
  14. data/lib/active_public_resources/client.rb +22 -0
  15. data/lib/active_public_resources/driver.rb +21 -0
  16. data/lib/active_public_resources/driver_response.rb +15 -0
  17. data/lib/active_public_resources/drivers/khan_academy.rb +143 -0
  18. data/lib/active_public_resources/drivers/quizlet.rb +92 -0
  19. data/lib/active_public_resources/drivers/schooltube.rb +99 -0
  20. data/lib/active_public_resources/drivers/vimeo.rb +181 -0
  21. data/lib/active_public_resources/drivers/youtube.rb +113 -0
  22. data/lib/active_public_resources/request_criteria.rb +51 -0
  23. data/lib/active_public_resources/response_types/exercise.rb +11 -0
  24. data/lib/active_public_resources/response_types/folder.rb +18 -0
  25. data/lib/active_public_resources/response_types/image.rb +11 -0
  26. data/lib/active_public_resources/response_types/quiz.rb +11 -0
  27. data/lib/active_public_resources/response_types/video.rb +12 -0
  28. data/lib/active_public_resources/return_types/file.rb +11 -0
  29. data/lib/active_public_resources/return_types/iframe.rb +11 -0
  30. data/lib/active_public_resources/return_types/image_url.rb +11 -0
  31. data/lib/active_public_resources/return_types/oembed.rb +11 -0
  32. data/lib/active_public_resources/return_types/url.rb +11 -0
  33. data/lib/active_public_resources/version.rb +3 -0
  34. data/lib/active_public_resources.rb +55 -0
  35. data/spec/lib/active_public_resources/client_spec.rb +75 -0
  36. data/spec/lib/active_public_resources/driver_spec.rb +48 -0
  37. data/spec/lib/active_public_resources/drivers/khan_academy_spec.rb +106 -0
  38. data/spec/lib/active_public_resources/drivers/quizlet_spec.rb +50 -0
  39. data/spec/lib/active_public_resources/drivers/schooltube_spec.rb +50 -0
  40. data/spec/lib/active_public_resources/drivers/vimeo_spec.rb +71 -0
  41. data/spec/lib/active_public_resources/drivers/youtube_spec.rb +52 -0
  42. data/spec/lib/active_public_resources/live_client_spec.rb +91 -0
  43. data/spec/lib/active_public_resources/request_criteria_spec.rb +53 -0
  44. data/spec/spec_helper.rb +46 -0
  45. data/spec/vcr/active_public_resources/client/khan_academy_should_traverse_folders.yml +1039 -0
  46. data/spec/vcr/active_public_resources/client/quizlet_should_perform_request.yml +70 -0
  47. data/spec/vcr/active_public_resources/client/shooltube_should_perform_request.yml +815 -0
  48. data/spec/vcr/active_public_resources/client/vimeo_should_perform_request.yml +70 -0
  49. data/spec/vcr/active_public_resources/client/youtube_should_perform_request.yml +212 -0
  50. data/spec/vcr/active_public_resources/drivers/khan_academy_driver_perform_request/should_get_folder_cs/programming.yml +117 -0
  51. data/spec/vcr/active_public_resources/drivers/khan_academy_driver_perform_request/should_get_folder_cs.yml +72 -0
  52. data/spec/vcr/active_public_resources/drivers/khan_academy_driver_perform_request/should_get_folder_science/mcat/society_and_culture/social_structures.yml +578 -0
  53. data/spec/vcr/active_public_resources/drivers/khan_academy_driver_perform_request/should_get_root_folders.yml +122 -0
  54. data/spec/vcr/active_public_resources/drivers/khan_academy_perform_request/should_get_folder_cs/programming.yml +120 -0
  55. data/spec/vcr/active_public_resources/drivers/khan_academy_perform_request/should_get_folder_cs.yml +73 -0
  56. data/spec/vcr/active_public_resources/drivers/khan_academy_perform_request/should_get_folder_science/mcat/society_and_culture/social_structures.yml +577 -0
  57. data/spec/vcr/active_public_resources/drivers/khan_academy_perform_request/should_get_root_folders.yml +119 -0
  58. data/spec/vcr/active_public_resources/drivers/quizlet_driver_perform_request/should_perform_request.yml +75 -0
  59. data/spec/vcr/active_public_resources/drivers/quizlet_perform_request/should_perform_request.yml +72 -0
  60. data/spec/vcr/active_public_resources/drivers/schooltube_driver_perform_request/should_perform_request.yml +815 -0
  61. data/spec/vcr/active_public_resources/drivers/schooltube_perform_request/should_perform_request.yml +810 -0
  62. data/spec/vcr/active_public_resources/drivers/vimeo_driver_perform_request/should_perform_request.yml +279 -0
  63. data/spec/vcr/active_public_resources/drivers/vimeo_perform_request/should_perform_request.yml +70 -0
  64. data/spec/vcr/active_public_resources/drivers/youtube_driver_perform_request/should_perform_request.yml +212 -0
  65. data/spec/vcr/active_public_resources/drivers/youtube_perform_request/should_perform_request.yml +209 -0
  66. metadata +182 -0
@@ -0,0 +1,70 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: https://api.quizlet.com/2.0/search/sets?client_id=QUIZLET_CLIENT_ID&page=1&per_page=25&q=education
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept-Encoding:
11
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
12
+ Accept:
13
+ - '*/*'
14
+ User-Agent:
15
+ - Ruby
16
+ Host:
17
+ - api.quizlet.com
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: Ok
22
+ headers:
23
+ Server:
24
+ - nginx
25
+ Date:
26
+ - Fri, 22 Nov 2013 19:52:47 GMT
27
+ Content-Type:
28
+ - application/json; charset=UTF-8
29
+ Content-Length:
30
+ - '1737'
31
+ Connection:
32
+ - keep-alive
33
+ Set-Cookie:
34
+ - fs=mwokjz; expires=Mon, 20-Nov-2023 19:52:47 GMT; path=/
35
+ - new=1; path=/
36
+ - qi2=84qzOtadrXNvYFE13DpfzWnvPm603se34lCnaPSYlTI; expires=Mon, 20-Nov-2023
37
+ 19:52:47 GMT; path=/; domain=.quizlet.com; httponly
38
+ - setpage-welcomed=deleted; expires=Thu, 01-Jan-1970 00:00:01 GMT; path=/
39
+ Cache-Control:
40
+ - no-cache, must-revalidate
41
+ Expires:
42
+ - Mon, 26 Jul 1997 05:00:00 GMT
43
+ X-Frame-Options:
44
+ - SAMEORIGIN
45
+ Vary:
46
+ - Accept-Encoding
47
+ body:
48
+ encoding: UTF-8
49
+ string: '{"total_results":5001,"total_pages":201,"page":1,"image_set_count":1,"sets":[{"id":8572574,"url":"http://quizlet.com/8572574/education-flash-cards/","title":"Education","created_by":"abenijaz","term_count":7,"created_date":1323541144,"modified_date":1323541144,"has_images":false,"subjects":[],"visibility":"public","editable":"only_me","has_access":true,"description":"The
50
+ Sociology of Education, Education and Globalization, Education and Inequality,
51
+ The Sociology of Higher Education, Education Inc. , Education in the 21st
52
+ Century","lang_terms":"en","lang_definitions":"en","has_discussion":true},{"id":10302448,"url":"http://quizlet.com/10302448/education-flash-cards/","title":"Education","created_by":"per5778","term_count":2,"created_date":1330370661,"modified_date":1330370661,"has_images":false,"subjects":["Education"],"visibility":"public","editable":"only_me","has_access":true,"description":"Information
53
+ dealing with the education of children with learning disabilities.","lang_terms":"en","lang_definitions":"en","has_discussion":true},{"id":1457767,"url":"http://quizlet.com/1457767/education-flash-cards/","title":"Education","created_by":"Amosek","term_count":23,"created_date":1258614837,"modified_date":1258614837,"has_images":false,"subjects":["education","maturita"],"visibility":"public","editable":"only_me","has_access":true,"description":"Slovn\u00ed
54
+ z\u00e1soba k maturitn\u00ed ot\u00e1zce Education","lang_terms":"en","lang_definitions":"cs","has_discussion":true},{"id":2493915,"url":"http://quizlet.com/2493915/education-flash-cards/","title":"Education","created_by":"VeraBobkova","term_count":33,"created_date":1277865774,"modified_date":1277867263,"has_images":false,"subjects":["education","British
55
+ education"],"visibility":"public","editable":"only_me","has_access":true,"description":"","lang_terms":"en","lang_definitions":"ru","has_discussion":true},{"id":11542692,"url":"http://quizlet.com/11542692/education-flash-cards/","title":"Education","created_by":"julieholeksa","term_count":19,"created_date":1335139936,"modified_date":1335139936,"has_images":false,"subjects":[],"visibility":"public","editable":"only_me","has_access":true,"description":"Merit
56
+ and Value of Education, education and inequality","lang_terms":"en","lang_definitions":"en","has_discussion":true},{"id":27362022,"url":"http://quizlet.com/27362022/education-flash-cards/","title":"Education","created_by":"paula_martinezperez","term_count":85,"created_date":1380615655,"modified_date":1380616645,"has_images":false,"subjects":["Education"],"visibility":"public","editable":"only_me","has_access":true,"description":"Education","lang_terms":"en","lang_definitions":"fr","has_discussion":true},{"id":3821613,"url":"http://quizlet.com/3821613/educ-flash-cards/","title":"educ","created_by":"prepster0418","term_count":3,"created_date":1292467164,"modified_date":1292467164,"has_images":false,"subjects":["educ"],"visibility":"public","editable":"only_me","has_access":true,"description":"","lang_terms":"en","lang_definitions":"en","has_discussion":true},{"id":7548921,"url":"http://quizlet.com/7548921/education-flash-cards/","title":"Education","created_by":"georgegribbin","term_count":2,"created_date":1319687718,"modified_date":1319687779,"has_images":false,"subjects":["Education
57
+ 102"],"visibility":"public","editable":"only_me","has_access":true,"description":"","lang_terms":"en","lang_definitions":"en","has_discussion":true},{"id":22134529,"url":"http://quizlet.com/22134529/education-flash-cards/","title":"Education","created_by":"LaurenHersey","term_count":4,"created_date":1366134033,"modified_date":1366134033,"has_images":false,"subjects":["Sociology"],"visibility":"public","editable":"only_me","has_access":true,"description":"Sociology
58
+ AS education","lang_terms":"en","lang_definitions":"en","has_discussion":true},{"id":2569332,"url":"http://quizlet.com/2569332/education-flash-cards/","title":"education","created_by":"cfnurse","term_count":6,"created_date":1281831170,"modified_date":1281832096,"has_images":false,"subjects":["education"],"visibility":"public","editable":"only_me","has_access":true,"description":"","lang_terms":"la","lang_definitions":"en","has_discussion":true},{"id":4390183,"url":"http://quizlet.com/4390183/education-flash-cards/","title":"Education","created_by":"mwhittington","term_count":155,"created_date":1297391721,"modified_date":1297835560,"has_images":false,"subjects":["education
59
+ stuff"],"visibility":"public","editable":"only_me","has_access":true,"description":"","lang_terms":"de","lang_definitions":"en","has_discussion":true},{"id":3281329,"url":"http://quizlet.com/3281329/education-flash-cards/","title":"Education","created_by":"AlexisVSnyder","term_count":34,"created_date":1288714212,"modified_date":1288714212,"has_images":false,"subjects":["histoy
60
+ of education"],"visibility":"public","editable":"only_me","has_access":true,"description":"","lang_terms":"en","lang_definitions":"en","has_discussion":false},{"id":19949703,"url":"http://quizlet.com/19949703/education-flash-cards/","title":"Education","created_by":"Aleksandr1994","term_count":20,"created_date":1361254012,"modified_date":1361418548,"has_images":false,"subjects":[],"visibility":"public","editable":"only_me","has_access":true,"description":"Education","lang_terms":"en","lang_definitions":"ru","has_discussion":true},{"id":29724158,"url":"http://quizlet.com/29724158/education-flash-cards/","title":"Education","created_by":"Estrella1985","term_count":85,"created_date":1383572902,"modified_date":1383572902,"has_images":false,"subjects":[],"visibility":"public","editable":"only_me","has_access":true,"description":"Education","lang_terms":"en","lang_definitions":"fr","has_discussion":true},{"id":16290360,"url":"http://quizlet.com/16290360/education-flash-cards/","title":"Education","created_by":"pinochle1","term_count":2,"created_date":1352758456,"modified_date":1352758877,"has_images":false,"subjects":["Education"],"visibility":"public","editable":"only_me","has_access":true,"description":"Online
61
+ Learning","lang_terms":"en","lang_definitions":"en","has_discussion":false},{"id":7424086,"url":"http://quizlet.com/7424086/education-flash-cards/","title":"Education","created_by":"sandymillin","term_count":37,"created_date":1319302507,"modified_date":1319643257,"has_images":true,"subjects":["english","education"],"visibility":"public","editable":"only_me","has_access":true,"description":"","lang_terms":"en","lang_definitions":"en","has_discussion":true},{"id":10299925,"url":"http://quizlet.com/10299925/education-flash-cards/","title":"Education","created_by":"RBrady16","term_count":10,"created_date":1330366169,"modified_date":1330366503,"has_images":false,"subjects":["Education"],"visibility":"public","editable":"only_me","has_access":true,"description":"Vocabulary","lang_terms":"en","lang_definitions":"en","has_discussion":true},{"id":6273535,"url":"http://quizlet.com/6273535/education-flash-cards/","title":"Education","created_by":"james924","term_count":7,"created_date":1314671740,"modified_date":1314671740,"has_images":false,"subjects":["korean"],"visibility":"public","editable":"only_me","has_access":true,"description":"Education","lang_terms":"ko","lang_definitions":"en","has_discussion":true},{"id":2577684,"url":"http://quizlet.com/2577684/education-flash-cards/","title":"Education","created_by":"zuzisue","term_count":35,"created_date":1282117636,"modified_date":1282117636,"has_images":false,"subjects":["education","school"],"visibility":"public","editable":"only_me","has_access":true,"description":"","lang_terms":"sv","lang_definitions":"pl","has_discussion":true},{"id":12732259,"url":"http://quizlet.com/12732259/education-flash-cards/","title":"education","created_by":"deyanira9","term_count":32,"created_date":1340261228,"modified_date":1340264902,"has_images":false,"subjects":["education"],"visibility":"public","editable":"only_me","has_access":true,"description":"midterm","lang_terms":"en","lang_definitions":"en","has_discussion":true},{"id":13082092,"url":"http://quizlet.com/13082092/education-flash-cards/","title":"Education","created_by":"SenoraBaker","term_count":125,"created_date":1344449810,"modified_date":1344449810,"has_images":false,"subjects":[],"visibility":"public","editable":"only_me","has_access":true,"description":"Education","lang_terms":"es","lang_definitions":"en","has_discussion":true},{"id":6041792,"url":"http://quizlet.com/6041792/education-flash-cards/","title":"Education","created_by":"dukeachiver10","term_count":24,"created_date":1311170690,"modified_date":1311170690,"has_images":false,"subjects":[],"visibility":"public","editable":"only_me","has_access":true,"description":"these
62
+ are the flash cards for education class","lang_terms":"en","lang_definitions":"en","has_discussion":true},{"id":11025390,"url":"http://quizlet.com/11025390/education-flash-cards/","title":"Education.","created_by":"utshelly","term_count":4,"created_date":1332935063,"modified_date":1332935063,"has_images":false,"subjects":[],"visibility":"public","editable":"only_me","has_access":true,"description":"LC
63
+ Home Economics: Education contributes to a child''s development in the following
64
+ ways.","lang_terms":"en","lang_definitions":"en","has_discussion":true},{"id":30794767,"url":"http://quizlet.com/30794767/education-flash-cards/","title":"Education","created_by":"LubaMendelevich","term_count":91,"created_date":1384807330,"modified_date":1385028798,"has_images":false,"subjects":["English"],"visibility":"public","editable":"password","has_access":true,"description":"Vocabulary
65
+ on topic of education","lang_terms":"en","lang_definitions":"en","has_discussion":true},{"id":721155,"url":"http://quizlet.com/721155/education-flash-cards/","title":"Education","created_by":"laurendiffey","term_count":18,"created_date":1234288021,"modified_date":1234288021,"has_images":false,"subjects":["german
66
+ vocabulary"],"visibility":"public","editable":"only_me","has_access":true,"description":"18
67
+ words on Education","lang_terms":"en","lang_definitions":"de","has_discussion":true}]}'
68
+ http_version:
69
+ recorded_at: Fri, 22 Nov 2013 19:52:47 GMT
70
+ recorded_with: VCR 2.6.0