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
metadata ADDED
@@ -0,0 +1,182 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: active_public_resources
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: ruby
6
+ authors:
7
+ - Eric Berry
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2013-12-03 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: active_support
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - '>='
18
+ - !ruby/object:Gem::Version
19
+ version: 3.0.0
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - '>='
25
+ - !ruby/object:Gem::Version
26
+ version: 3.0.0
27
+ - !ruby/object:Gem::Dependency
28
+ name: vimeo
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 1.5.3
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ~>
39
+ - !ruby/object:Gem::Version
40
+ version: 1.5.3
41
+ - !ruby/object:Gem::Dependency
42
+ name: bundler
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ~>
46
+ - !ruby/object:Gem::Version
47
+ version: '1.3'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - ~>
53
+ - !ruby/object:Gem::Version
54
+ version: '1.3'
55
+ description: ' Normalized searching and browsing of public resources '
56
+ email:
57
+ - cavneb@gmail.com
58
+ executables: []
59
+ extensions: []
60
+ extra_rdoc_files: []
61
+ files:
62
+ - .gitignore
63
+ - .rspec
64
+ - .travis.yml
65
+ - Gemfile
66
+ - Guardfile
67
+ - LICENSE.txt
68
+ - README.md
69
+ - Rakefile
70
+ - active_public_resources.gemspec
71
+ - active_public_resources_config.yml.example
72
+ - lib/active_public_resources.rb
73
+ - lib/active_public_resources/base_response_type.rb
74
+ - lib/active_public_resources/base_return_type.rb
75
+ - lib/active_public_resources/client.rb
76
+ - lib/active_public_resources/driver.rb
77
+ - lib/active_public_resources/driver_response.rb
78
+ - lib/active_public_resources/drivers/khan_academy.rb
79
+ - lib/active_public_resources/drivers/quizlet.rb
80
+ - lib/active_public_resources/drivers/schooltube.rb
81
+ - lib/active_public_resources/drivers/vimeo.rb
82
+ - lib/active_public_resources/drivers/youtube.rb
83
+ - lib/active_public_resources/request_criteria.rb
84
+ - lib/active_public_resources/response_types/exercise.rb
85
+ - lib/active_public_resources/response_types/folder.rb
86
+ - lib/active_public_resources/response_types/image.rb
87
+ - lib/active_public_resources/response_types/quiz.rb
88
+ - lib/active_public_resources/response_types/video.rb
89
+ - lib/active_public_resources/return_types/file.rb
90
+ - lib/active_public_resources/return_types/iframe.rb
91
+ - lib/active_public_resources/return_types/image_url.rb
92
+ - lib/active_public_resources/return_types/oembed.rb
93
+ - lib/active_public_resources/return_types/url.rb
94
+ - lib/active_public_resources/version.rb
95
+ - spec/lib/active_public_resources/client_spec.rb
96
+ - spec/lib/active_public_resources/driver_spec.rb
97
+ - spec/lib/active_public_resources/drivers/khan_academy_spec.rb
98
+ - spec/lib/active_public_resources/drivers/quizlet_spec.rb
99
+ - spec/lib/active_public_resources/drivers/schooltube_spec.rb
100
+ - spec/lib/active_public_resources/drivers/vimeo_spec.rb
101
+ - spec/lib/active_public_resources/drivers/youtube_spec.rb
102
+ - spec/lib/active_public_resources/live_client_spec.rb
103
+ - spec/lib/active_public_resources/request_criteria_spec.rb
104
+ - spec/spec_helper.rb
105
+ - spec/vcr/active_public_resources/client/khan_academy_should_traverse_folders.yml
106
+ - spec/vcr/active_public_resources/client/quizlet_should_perform_request.yml
107
+ - spec/vcr/active_public_resources/client/shooltube_should_perform_request.yml
108
+ - spec/vcr/active_public_resources/client/vimeo_should_perform_request.yml
109
+ - spec/vcr/active_public_resources/client/youtube_should_perform_request.yml
110
+ - spec/vcr/active_public_resources/drivers/khan_academy_driver_perform_request/should_get_folder_cs.yml
111
+ - spec/vcr/active_public_resources/drivers/khan_academy_driver_perform_request/should_get_folder_cs/programming.yml
112
+ - spec/vcr/active_public_resources/drivers/khan_academy_driver_perform_request/should_get_folder_science/mcat/society_and_culture/social_structures.yml
113
+ - spec/vcr/active_public_resources/drivers/khan_academy_driver_perform_request/should_get_root_folders.yml
114
+ - spec/vcr/active_public_resources/drivers/khan_academy_perform_request/should_get_folder_cs.yml
115
+ - spec/vcr/active_public_resources/drivers/khan_academy_perform_request/should_get_folder_cs/programming.yml
116
+ - spec/vcr/active_public_resources/drivers/khan_academy_perform_request/should_get_folder_science/mcat/society_and_culture/social_structures.yml
117
+ - spec/vcr/active_public_resources/drivers/khan_academy_perform_request/should_get_root_folders.yml
118
+ - spec/vcr/active_public_resources/drivers/quizlet_driver_perform_request/should_perform_request.yml
119
+ - spec/vcr/active_public_resources/drivers/quizlet_perform_request/should_perform_request.yml
120
+ - spec/vcr/active_public_resources/drivers/schooltube_driver_perform_request/should_perform_request.yml
121
+ - spec/vcr/active_public_resources/drivers/schooltube_perform_request/should_perform_request.yml
122
+ - spec/vcr/active_public_resources/drivers/vimeo_driver_perform_request/should_perform_request.yml
123
+ - spec/vcr/active_public_resources/drivers/vimeo_perform_request/should_perform_request.yml
124
+ - spec/vcr/active_public_resources/drivers/youtube_driver_perform_request/should_perform_request.yml
125
+ - spec/vcr/active_public_resources/drivers/youtube_perform_request/should_perform_request.yml
126
+ homepage: https://github.com/instructure/active_public_resources
127
+ licenses:
128
+ - MIT
129
+ metadata: {}
130
+ post_install_message:
131
+ rdoc_options: []
132
+ require_paths:
133
+ - lib
134
+ required_ruby_version: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - '>='
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ required_rubygems_version: !ruby/object:Gem::Requirement
140
+ requirements:
141
+ - - '>='
142
+ - !ruby/object:Gem::Version
143
+ version: '0'
144
+ requirements: []
145
+ rubyforge_project:
146
+ rubygems_version: 2.0.6
147
+ signing_key:
148
+ specification_version: 4
149
+ summary: Normalized searching and browsing of public resources
150
+ test_files:
151
+ - spec/lib/active_public_resources/client_spec.rb
152
+ - spec/lib/active_public_resources/driver_spec.rb
153
+ - spec/lib/active_public_resources/drivers/khan_academy_spec.rb
154
+ - spec/lib/active_public_resources/drivers/quizlet_spec.rb
155
+ - spec/lib/active_public_resources/drivers/schooltube_spec.rb
156
+ - spec/lib/active_public_resources/drivers/vimeo_spec.rb
157
+ - spec/lib/active_public_resources/drivers/youtube_spec.rb
158
+ - spec/lib/active_public_resources/live_client_spec.rb
159
+ - spec/lib/active_public_resources/request_criteria_spec.rb
160
+ - spec/spec_helper.rb
161
+ - spec/vcr/active_public_resources/client/khan_academy_should_traverse_folders.yml
162
+ - spec/vcr/active_public_resources/client/quizlet_should_perform_request.yml
163
+ - spec/vcr/active_public_resources/client/shooltube_should_perform_request.yml
164
+ - spec/vcr/active_public_resources/client/vimeo_should_perform_request.yml
165
+ - spec/vcr/active_public_resources/client/youtube_should_perform_request.yml
166
+ - spec/vcr/active_public_resources/drivers/khan_academy_driver_perform_request/should_get_folder_cs.yml
167
+ - spec/vcr/active_public_resources/drivers/khan_academy_driver_perform_request/should_get_folder_cs/programming.yml
168
+ - spec/vcr/active_public_resources/drivers/khan_academy_driver_perform_request/should_get_folder_science/mcat/society_and_culture/social_structures.yml
169
+ - spec/vcr/active_public_resources/drivers/khan_academy_driver_perform_request/should_get_root_folders.yml
170
+ - spec/vcr/active_public_resources/drivers/khan_academy_perform_request/should_get_folder_cs.yml
171
+ - spec/vcr/active_public_resources/drivers/khan_academy_perform_request/should_get_folder_cs/programming.yml
172
+ - spec/vcr/active_public_resources/drivers/khan_academy_perform_request/should_get_folder_science/mcat/society_and_culture/social_structures.yml
173
+ - spec/vcr/active_public_resources/drivers/khan_academy_perform_request/should_get_root_folders.yml
174
+ - spec/vcr/active_public_resources/drivers/quizlet_driver_perform_request/should_perform_request.yml
175
+ - spec/vcr/active_public_resources/drivers/quizlet_perform_request/should_perform_request.yml
176
+ - spec/vcr/active_public_resources/drivers/schooltube_driver_perform_request/should_perform_request.yml
177
+ - spec/vcr/active_public_resources/drivers/schooltube_perform_request/should_perform_request.yml
178
+ - spec/vcr/active_public_resources/drivers/vimeo_driver_perform_request/should_perform_request.yml
179
+ - spec/vcr/active_public_resources/drivers/vimeo_perform_request/should_perform_request.yml
180
+ - spec/vcr/active_public_resources/drivers/youtube_driver_perform_request/should_perform_request.yml
181
+ - spec/vcr/active_public_resources/drivers/youtube_perform_request/should_perform_request.yml
182
+ has_rdoc: