canvas_oauth_engine 1.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (55) hide show
  1. data/MIT-LICENSE +20 -0
  2. data/README.md +102 -0
  3. data/Rakefile +28 -0
  4. data/app/controllers/canvas_oauth/application_controller.rb +5 -0
  5. data/app/controllers/canvas_oauth/canvas_controller.rb +25 -0
  6. data/app/models/canvas_oauth/authorization.rb +26 -0
  7. data/config/canvas.yml.example +12 -0
  8. data/config/routes.rb +3 -0
  9. data/db/migrate/20121121005358_create_canvas_oauth_authorizations.rb +15 -0
  10. data/lib/canvas_oauth.rb +25 -0
  11. data/lib/canvas_oauth/canvas_api.rb +249 -0
  12. data/lib/canvas_oauth/canvas_api_extensions.rb +8 -0
  13. data/lib/canvas_oauth/canvas_application.rb +66 -0
  14. data/lib/canvas_oauth/canvas_config.rb +28 -0
  15. data/lib/canvas_oauth/config.rb +1 -0
  16. data/lib/canvas_oauth/engine.rb +15 -0
  17. data/lib/canvas_oauth/version.rb +3 -0
  18. data/lib/tasks/canvas_oauth_tasks.rake +1 -0
  19. data/spec/controllers/canvas_oauth/canvas_controller_spec.rb +80 -0
  20. data/spec/dummy/README.rdoc +261 -0
  21. data/spec/dummy/Rakefile +7 -0
  22. data/spec/dummy/app/controllers/application_controller.rb +5 -0
  23. data/spec/dummy/app/controllers/welcome_controller.rb +5 -0
  24. data/spec/dummy/config.ru +4 -0
  25. data/spec/dummy/config/application.rb +55 -0
  26. data/spec/dummy/config/boot.rb +10 -0
  27. data/spec/dummy/config/canvas.yml +12 -0
  28. data/spec/dummy/config/database.yml +25 -0
  29. data/spec/dummy/config/environment.rb +5 -0
  30. data/spec/dummy/config/environments/development.rb +26 -0
  31. data/spec/dummy/config/environments/production.rb +69 -0
  32. data/spec/dummy/config/environments/test.rb +33 -0
  33. data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
  34. data/spec/dummy/config/initializers/inflections.rb +15 -0
  35. data/spec/dummy/config/initializers/mime_types.rb +5 -0
  36. data/spec/dummy/config/initializers/secret_token.rb +8 -0
  37. data/spec/dummy/config/initializers/session_store.rb +8 -0
  38. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  39. data/spec/dummy/config/locales/en.yml +5 -0
  40. data/spec/dummy/config/routes.rb +4 -0
  41. data/spec/dummy/db/migrate/20130326194409_create_canvas_oauth_authorizations.canvas_oauth.rb +13 -0
  42. data/spec/dummy/db/schema.rb +25 -0
  43. data/spec/dummy/db/test.sqlite3 +0 -0
  44. data/spec/dummy/log/test.log +8127 -0
  45. data/spec/dummy/public/404.html +26 -0
  46. data/spec/dummy/public/422.html +26 -0
  47. data/spec/dummy/public/500.html +25 -0
  48. data/spec/dummy/public/favicon.ico +0 -0
  49. data/spec/dummy/public/robots.txt +5 -0
  50. data/spec/dummy/script/rails +6 -0
  51. data/spec/lib/canvas_oauth/canvas_api_extensions_spec.rb +13 -0
  52. data/spec/lib/canvas_oauth/canvas_api_spec.rb +228 -0
  53. data/spec/models/canvas_oauth/authorization_spec.rb +47 -0
  54. data/spec/spec_helper.rb +57 -0
  55. metadata +353 -0
metadata ADDED
@@ -0,0 +1,353 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: canvas_oauth_engine
3
+ version: !ruby/object:Gem::Version
4
+ version: 1.0.0
5
+ prerelease:
6
+ platform: ruby
7
+ authors:
8
+ - Dave Donahue
9
+ - Adam Anderson
10
+ - Simon Williams
11
+ autorequire:
12
+ bindir: bin
13
+ cert_chain: []
14
+ date: 2015-01-14 00:00:00.000000000 Z
15
+ dependencies:
16
+ - !ruby/object:Gem::Dependency
17
+ name: rails
18
+ requirement: !ruby/object:Gem::Requirement
19
+ none: false
20
+ requirements:
21
+ - - ! '>='
22
+ - !ruby/object:Gem::Version
23
+ version: '3.2'
24
+ - - <
25
+ - !ruby/object:Gem::Version
26
+ version: '4.2'
27
+ type: :runtime
28
+ prerelease: false
29
+ version_requirements: !ruby/object:Gem::Requirement
30
+ none: false
31
+ requirements:
32
+ - - ! '>='
33
+ - !ruby/object:Gem::Version
34
+ version: '3.2'
35
+ - - <
36
+ - !ruby/object:Gem::Version
37
+ version: '4.2'
38
+ - !ruby/object:Gem::Dependency
39
+ name: httparty
40
+ requirement: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: 0.9.0
46
+ type: :runtime
47
+ prerelease: false
48
+ version_requirements: !ruby/object:Gem::Requirement
49
+ none: false
50
+ requirements:
51
+ - - ! '>='
52
+ - !ruby/object:Gem::Version
53
+ version: 0.9.0
54
+ - !ruby/object:Gem::Dependency
55
+ name: link_header
56
+ requirement: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - '='
60
+ - !ruby/object:Gem::Version
61
+ version: 0.0.6
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ none: false
66
+ requirements:
67
+ - - '='
68
+ - !ruby/object:Gem::Version
69
+ version: 0.0.6
70
+ - !ruby/object:Gem::Dependency
71
+ name: sqlite3
72
+ requirement: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '0'
78
+ type: :development
79
+ prerelease: false
80
+ version_requirements: !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ! '>='
84
+ - !ruby/object:Gem::Version
85
+ version: '0'
86
+ - !ruby/object:Gem::Dependency
87
+ name: rspec
88
+ requirement: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ type: :development
95
+ prerelease: false
96
+ version_requirements: !ruby/object:Gem::Requirement
97
+ none: false
98
+ requirements:
99
+ - - ! '>='
100
+ - !ruby/object:Gem::Version
101
+ version: '0'
102
+ - !ruby/object:Gem::Dependency
103
+ name: rspec-its
104
+ requirement: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ! '>='
108
+ - !ruby/object:Gem::Version
109
+ version: '0'
110
+ type: :development
111
+ prerelease: false
112
+ version_requirements: !ruby/object:Gem::Requirement
113
+ none: false
114
+ requirements:
115
+ - - ! '>='
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ - !ruby/object:Gem::Dependency
119
+ name: rspec-rails
120
+ requirement: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - ! '>='
124
+ - !ruby/object:Gem::Version
125
+ version: '0'
126
+ type: :development
127
+ prerelease: false
128
+ version_requirements: !ruby/object:Gem::Requirement
129
+ none: false
130
+ requirements:
131
+ - - ! '>='
132
+ - !ruby/object:Gem::Version
133
+ version: '0'
134
+ - !ruby/object:Gem::Dependency
135
+ name: rspec-rails-mocha
136
+ requirement: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
142
+ type: :development
143
+ prerelease: false
144
+ version_requirements: !ruby/object:Gem::Requirement
145
+ none: false
146
+ requirements:
147
+ - - ! '>='
148
+ - !ruby/object:Gem::Version
149
+ version: '0'
150
+ - !ruby/object:Gem::Dependency
151
+ name: shoulda-matchers
152
+ requirement: !ruby/object:Gem::Requirement
153
+ none: false
154
+ requirements:
155
+ - - ! '>='
156
+ - !ruby/object:Gem::Version
157
+ version: '0'
158
+ type: :development
159
+ prerelease: false
160
+ version_requirements: !ruby/object:Gem::Requirement
161
+ none: false
162
+ requirements:
163
+ - - ! '>='
164
+ - !ruby/object:Gem::Version
165
+ version: '0'
166
+ - !ruby/object:Gem::Dependency
167
+ name: webmock
168
+ requirement: !ruby/object:Gem::Requirement
169
+ none: false
170
+ requirements:
171
+ - - ! '>='
172
+ - !ruby/object:Gem::Version
173
+ version: '0'
174
+ type: :development
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ none: false
178
+ requirements:
179
+ - - ! '>='
180
+ - !ruby/object:Gem::Version
181
+ version: '0'
182
+ - !ruby/object:Gem::Dependency
183
+ name: debugger
184
+ requirement: !ruby/object:Gem::Requirement
185
+ none: false
186
+ requirements:
187
+ - - ! '>='
188
+ - !ruby/object:Gem::Version
189
+ version: '0'
190
+ type: :development
191
+ prerelease: false
192
+ version_requirements: !ruby/object:Gem::Requirement
193
+ none: false
194
+ requirements:
195
+ - - ! '>='
196
+ - !ruby/object:Gem::Version
197
+ version: '0'
198
+ - !ruby/object:Gem::Dependency
199
+ name: guard-rspec
200
+ requirement: !ruby/object:Gem::Requirement
201
+ none: false
202
+ requirements:
203
+ - - ! '>='
204
+ - !ruby/object:Gem::Version
205
+ version: '0'
206
+ type: :development
207
+ prerelease: false
208
+ version_requirements: !ruby/object:Gem::Requirement
209
+ none: false
210
+ requirements:
211
+ - - ! '>='
212
+ - !ruby/object:Gem::Version
213
+ version: '0'
214
+ - !ruby/object:Gem::Dependency
215
+ name: rb-fsevent
216
+ requirement: !ruby/object:Gem::Requirement
217
+ none: false
218
+ requirements:
219
+ - - ! '>='
220
+ - !ruby/object:Gem::Version
221
+ version: '0'
222
+ type: :development
223
+ prerelease: false
224
+ version_requirements: !ruby/object:Gem::Requirement
225
+ none: false
226
+ requirements:
227
+ - - ! '>='
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ description:
231
+ email:
232
+ - adam.anderson@12spokes.com
233
+ - simon@instructure.com
234
+ executables: []
235
+ extensions: []
236
+ extra_rdoc_files: []
237
+ files:
238
+ - app/controllers/canvas_oauth/application_controller.rb
239
+ - app/controllers/canvas_oauth/canvas_controller.rb
240
+ - app/models/canvas_oauth/authorization.rb
241
+ - config/canvas.yml.example
242
+ - config/routes.rb
243
+ - db/migrate/20121121005358_create_canvas_oauth_authorizations.rb
244
+ - lib/canvas_oauth/canvas_api.rb
245
+ - lib/canvas_oauth/canvas_api_extensions.rb
246
+ - lib/canvas_oauth/canvas_application.rb
247
+ - lib/canvas_oauth/canvas_config.rb
248
+ - lib/canvas_oauth/config.rb
249
+ - lib/canvas_oauth/engine.rb
250
+ - lib/canvas_oauth/version.rb
251
+ - lib/canvas_oauth.rb
252
+ - lib/tasks/canvas_oauth_tasks.rake
253
+ - MIT-LICENSE
254
+ - Rakefile
255
+ - README.md
256
+ - spec/controllers/canvas_oauth/canvas_controller_spec.rb
257
+ - spec/dummy/app/controllers/application_controller.rb
258
+ - spec/dummy/app/controllers/welcome_controller.rb
259
+ - spec/dummy/config/application.rb
260
+ - spec/dummy/config/boot.rb
261
+ - spec/dummy/config/canvas.yml
262
+ - spec/dummy/config/database.yml
263
+ - spec/dummy/config/environment.rb
264
+ - spec/dummy/config/environments/development.rb
265
+ - spec/dummy/config/environments/production.rb
266
+ - spec/dummy/config/environments/test.rb
267
+ - spec/dummy/config/initializers/backtrace_silencers.rb
268
+ - spec/dummy/config/initializers/inflections.rb
269
+ - spec/dummy/config/initializers/mime_types.rb
270
+ - spec/dummy/config/initializers/secret_token.rb
271
+ - spec/dummy/config/initializers/session_store.rb
272
+ - spec/dummy/config/initializers/wrap_parameters.rb
273
+ - spec/dummy/config/locales/en.yml
274
+ - spec/dummy/config/routes.rb
275
+ - spec/dummy/config.ru
276
+ - spec/dummy/db/migrate/20130326194409_create_canvas_oauth_authorizations.canvas_oauth.rb
277
+ - spec/dummy/db/schema.rb
278
+ - spec/dummy/db/test.sqlite3
279
+ - spec/dummy/log/test.log
280
+ - spec/dummy/public/404.html
281
+ - spec/dummy/public/422.html
282
+ - spec/dummy/public/500.html
283
+ - spec/dummy/public/favicon.ico
284
+ - spec/dummy/public/robots.txt
285
+ - spec/dummy/Rakefile
286
+ - spec/dummy/README.rdoc
287
+ - spec/dummy/script/rails
288
+ - spec/lib/canvas_oauth/canvas_api_extensions_spec.rb
289
+ - spec/lib/canvas_oauth/canvas_api_spec.rb
290
+ - spec/models/canvas_oauth/authorization_spec.rb
291
+ - spec/spec_helper.rb
292
+ homepage: ''
293
+ licenses: []
294
+ post_install_message:
295
+ rdoc_options: []
296
+ require_paths:
297
+ - lib
298
+ required_ruby_version: !ruby/object:Gem::Requirement
299
+ none: false
300
+ requirements:
301
+ - - ! '>='
302
+ - !ruby/object:Gem::Version
303
+ version: '0'
304
+ required_rubygems_version: !ruby/object:Gem::Requirement
305
+ none: false
306
+ requirements:
307
+ - - ! '>='
308
+ - !ruby/object:Gem::Version
309
+ version: '0'
310
+ requirements: []
311
+ rubyforge_project:
312
+ rubygems_version: 1.8.25
313
+ signing_key:
314
+ specification_version: 3
315
+ summary: CanvasOauth is a mountable engine for handling the oauth workflow with canvas
316
+ and making api calls from your rails app.
317
+ test_files:
318
+ - spec/controllers/canvas_oauth/canvas_controller_spec.rb
319
+ - spec/dummy/app/controllers/application_controller.rb
320
+ - spec/dummy/app/controllers/welcome_controller.rb
321
+ - spec/dummy/config/application.rb
322
+ - spec/dummy/config/boot.rb
323
+ - spec/dummy/config/canvas.yml
324
+ - spec/dummy/config/database.yml
325
+ - spec/dummy/config/environment.rb
326
+ - spec/dummy/config/environments/development.rb
327
+ - spec/dummy/config/environments/production.rb
328
+ - spec/dummy/config/environments/test.rb
329
+ - spec/dummy/config/initializers/backtrace_silencers.rb
330
+ - spec/dummy/config/initializers/inflections.rb
331
+ - spec/dummy/config/initializers/mime_types.rb
332
+ - spec/dummy/config/initializers/secret_token.rb
333
+ - spec/dummy/config/initializers/session_store.rb
334
+ - spec/dummy/config/initializers/wrap_parameters.rb
335
+ - spec/dummy/config/locales/en.yml
336
+ - spec/dummy/config/routes.rb
337
+ - spec/dummy/config.ru
338
+ - spec/dummy/db/migrate/20130326194409_create_canvas_oauth_authorizations.canvas_oauth.rb
339
+ - spec/dummy/db/schema.rb
340
+ - spec/dummy/db/test.sqlite3
341
+ - spec/dummy/log/test.log
342
+ - spec/dummy/public/404.html
343
+ - spec/dummy/public/422.html
344
+ - spec/dummy/public/500.html
345
+ - spec/dummy/public/favicon.ico
346
+ - spec/dummy/public/robots.txt
347
+ - spec/dummy/Rakefile
348
+ - spec/dummy/README.rdoc
349
+ - spec/dummy/script/rails
350
+ - spec/lib/canvas_oauth/canvas_api_extensions_spec.rb
351
+ - spec/lib/canvas_oauth/canvas_api_spec.rb
352
+ - spec/models/canvas_oauth/authorization_spec.rb
353
+ - spec/spec_helper.rb