bearcat 0.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (46) hide show
  1. data/Rakefile +8 -0
  2. data/bearcat.gemspec +27 -0
  3. data/lib/bearcat.rb +2 -0
  4. data/lib/bearcat/api_array.rb +118 -0
  5. data/lib/bearcat/client.rb +20 -0
  6. data/lib/bearcat/client/assignments.rb +18 -0
  7. data/lib/bearcat/client/courses.rb +19 -0
  8. data/lib/bearcat/client/enrollments.rb +19 -0
  9. data/lib/bearcat/client/outcome_groups.rb +81 -0
  10. data/lib/bearcat/client/outcomes.rb +15 -0
  11. data/lib/bearcat/client/sections.rb +27 -0
  12. data/lib/bearcat/version.rb +3 -0
  13. data/spec/bearcat/client/assignments_spec.rb +39 -0
  14. data/spec/bearcat/client/courses_spec.rb +31 -0
  15. data/spec/bearcat/client/enrollments_spec.rb +42 -0
  16. data/spec/bearcat/client/outcome_groups_spec.rb +104 -0
  17. data/spec/bearcat/client/outcomes_spec.rb +27 -0
  18. data/spec/bearcat/client/sections_spec.rb +51 -0
  19. data/spec/bearcat/client_spec.rb +16 -0
  20. data/spec/bearcat_spec.rb +8 -0
  21. data/spec/fixtures/assignment_section_override.json +9 -0
  22. data/spec/fixtures/assignments.json +86 -0
  23. data/spec/fixtures/conclude_enrollment.json +20 -0
  24. data/spec/fixtures/course.json +46 -0
  25. data/spec/fixtures/course_sections.json +20 -0
  26. data/spec/fixtures/course_students.json +6 -0
  27. data/spec/fixtures/create_outcome_in_group.json +23 -0
  28. data/spec/fixtures/create_section.json +1 -0
  29. data/spec/fixtures/created_assignment.json +25 -0
  30. data/spec/fixtures/created_course.json +27 -0
  31. data/spec/fixtures/delete_section.json +1 -0
  32. data/spec/fixtures/enroll_student.json +20 -0
  33. data/spec/fixtures/link_unlink_outcome.json +23 -0
  34. data/spec/fixtures/outcome_group_import.json +22 -0
  35. data/spec/fixtures/outcome_groups.json +29 -0
  36. data/spec/fixtures/outcome_subgroup.json +22 -0
  37. data/spec/fixtures/outcome_subgroups.json +20 -0
  38. data/spec/fixtures/outcomes.json +33 -0
  39. data/spec/fixtures/paged_body.json +92 -0
  40. data/spec/fixtures/section.json +1 -0
  41. data/spec/fixtures/update_outcome.json +1 -0
  42. data/spec/fixtures/update_outcome_group.json +22 -0
  43. data/spec/fixtures/update_section.json +1 -0
  44. data/spec/fixtures/user_enrollments.json +23 -0
  45. data/spec/helper.rb +43 -0
  46. metadata +220 -0
metadata ADDED
@@ -0,0 +1,220 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: bearcat
3
+ version: !ruby/object:Gem::Version
4
+ version: '0.1'
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Nathan Mills
9
+ autorequire:
10
+ bindir: bin
11
+ cert_chain: []
12
+ date: 2013-08-07 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
15
+ name: rake
16
+ requirement: !ruby/object:Gem::Requirement
17
+ none: false
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
21
+ version: '0'
22
+ type: :development
23
+ prerelease: false
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: bundler
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: 1.0.0
38
+ type: :development
39
+ prerelease: false
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 1.0.0
46
+ - !ruby/object:Gem::Dependency
47
+ name: rspec
48
+ requirement: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ~>
52
+ - !ruby/object:Gem::Version
53
+ version: '2.6'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ~>
60
+ - !ruby/object:Gem::Version
61
+ version: '2.6'
62
+ - !ruby/object:Gem::Dependency
63
+ name: webmock
64
+ requirement: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - ! '>='
68
+ - !ruby/object:Gem::Version
69
+ version: '0'
70
+ type: :development
71
+ prerelease: false
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ - !ruby/object:Gem::Dependency
79
+ name: debugger
80
+ requirement: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ type: :development
87
+ prerelease: false
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ - !ruby/object:Gem::Dependency
95
+ name: footrest
96
+ requirement: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: 0.1.2
102
+ type: :runtime
103
+ prerelease: false
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: 0.1.2
110
+ description: Ruby interface for interacting with the canvas API
111
+ email:
112
+ - nathanm@instructure.com
113
+ executables: []
114
+ extensions: []
115
+ extra_rdoc_files: []
116
+ files:
117
+ - Rakefile
118
+ - bearcat.gemspec
119
+ - lib/bearcat/api_array.rb
120
+ - lib/bearcat/client/assignments.rb
121
+ - lib/bearcat/client/courses.rb
122
+ - lib/bearcat/client/enrollments.rb
123
+ - lib/bearcat/client/outcome_groups.rb
124
+ - lib/bearcat/client/outcomes.rb
125
+ - lib/bearcat/client/sections.rb
126
+ - lib/bearcat/client.rb
127
+ - lib/bearcat/version.rb
128
+ - lib/bearcat.rb
129
+ - spec/bearcat/client/assignments_spec.rb
130
+ - spec/bearcat/client/courses_spec.rb
131
+ - spec/bearcat/client/enrollments_spec.rb
132
+ - spec/bearcat/client/outcome_groups_spec.rb
133
+ - spec/bearcat/client/outcomes_spec.rb
134
+ - spec/bearcat/client/sections_spec.rb
135
+ - spec/bearcat/client_spec.rb
136
+ - spec/bearcat_spec.rb
137
+ - spec/fixtures/assignment_section_override.json
138
+ - spec/fixtures/assignments.json
139
+ - spec/fixtures/conclude_enrollment.json
140
+ - spec/fixtures/course.json
141
+ - spec/fixtures/course_sections.json
142
+ - spec/fixtures/course_students.json
143
+ - spec/fixtures/create_outcome_in_group.json
144
+ - spec/fixtures/create_section.json
145
+ - spec/fixtures/created_assignment.json
146
+ - spec/fixtures/created_course.json
147
+ - spec/fixtures/delete_section.json
148
+ - spec/fixtures/enroll_student.json
149
+ - spec/fixtures/link_unlink_outcome.json
150
+ - spec/fixtures/outcome_group_import.json
151
+ - spec/fixtures/outcome_groups.json
152
+ - spec/fixtures/outcome_subgroup.json
153
+ - spec/fixtures/outcome_subgroups.json
154
+ - spec/fixtures/outcomes.json
155
+ - spec/fixtures/paged_body.json
156
+ - spec/fixtures/section.json
157
+ - spec/fixtures/update_outcome.json
158
+ - spec/fixtures/update_outcome_group.json
159
+ - spec/fixtures/update_section.json
160
+ - spec/fixtures/user_enrollments.json
161
+ - spec/helper.rb
162
+ homepage:
163
+ licenses: []
164
+ post_install_message:
165
+ rdoc_options: []
166
+ require_paths:
167
+ - lib
168
+ required_ruby_version: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ required_rubygems_version: !ruby/object:Gem::Requirement
175
+ none: false
176
+ requirements:
177
+ - - ! '>='
178
+ - !ruby/object:Gem::Version
179
+ version: '0'
180
+ requirements: []
181
+ rubyforge_project:
182
+ rubygems_version: 1.8.23
183
+ signing_key:
184
+ specification_version: 3
185
+ summary: Canvas API
186
+ test_files:
187
+ - spec/bearcat/client/assignments_spec.rb
188
+ - spec/bearcat/client/courses_spec.rb
189
+ - spec/bearcat/client/enrollments_spec.rb
190
+ - spec/bearcat/client/outcome_groups_spec.rb
191
+ - spec/bearcat/client/outcomes_spec.rb
192
+ - spec/bearcat/client/sections_spec.rb
193
+ - spec/bearcat/client_spec.rb
194
+ - spec/bearcat_spec.rb
195
+ - spec/fixtures/assignment_section_override.json
196
+ - spec/fixtures/assignments.json
197
+ - spec/fixtures/conclude_enrollment.json
198
+ - spec/fixtures/course.json
199
+ - spec/fixtures/course_sections.json
200
+ - spec/fixtures/course_students.json
201
+ - spec/fixtures/create_outcome_in_group.json
202
+ - spec/fixtures/create_section.json
203
+ - spec/fixtures/created_assignment.json
204
+ - spec/fixtures/created_course.json
205
+ - spec/fixtures/delete_section.json
206
+ - spec/fixtures/enroll_student.json
207
+ - spec/fixtures/link_unlink_outcome.json
208
+ - spec/fixtures/outcome_group_import.json
209
+ - spec/fixtures/outcome_groups.json
210
+ - spec/fixtures/outcome_subgroup.json
211
+ - spec/fixtures/outcome_subgroups.json
212
+ - spec/fixtures/outcomes.json
213
+ - spec/fixtures/paged_body.json
214
+ - spec/fixtures/section.json
215
+ - spec/fixtures/update_outcome.json
216
+ - spec/fixtures/update_outcome_group.json
217
+ - spec/fixtures/update_section.json
218
+ - spec/fixtures/user_enrollments.json
219
+ - spec/helper.rb
220
+ has_rdoc: