canvas_sync 0.3.3 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/app/controllers/api/v1/health_check_controller.rb +7 -0
- data/app/controllers/api/v1/live_events_controller.rb +16 -0
- data/lib/canvas_sync.rb +20 -5
- data/lib/canvas_sync/generators/install_generator.rb +1 -1
- data/lib/canvas_sync/generators/install_live_events_generator.rb +38 -0
- data/lib/canvas_sync/generators/templates/{course.rb → models/course.rb} +0 -0
- data/lib/canvas_sync/generators/templates/{create_courses.rb → models/create_courses.rb} +0 -0
- data/lib/canvas_sync/generators/templates/{create_enrollments.rb → models/create_enrollments.rb} +0 -0
- data/lib/canvas_sync/generators/templates/models/create_roles.rb +17 -0
- data/lib/canvas_sync/generators/templates/{create_sections.rb → models/create_sections.rb} +0 -0
- data/lib/canvas_sync/generators/templates/{create_terms.rb → models/create_terms.rb} +0 -0
- data/lib/canvas_sync/generators/templates/{create_users.rb → models/create_users.rb} +0 -0
- data/lib/canvas_sync/generators/templates/{enrollment.rb → models/enrollment.rb} +0 -0
- data/lib/canvas_sync/generators/templates/models/role.rb +18 -0
- data/lib/canvas_sync/generators/templates/{section.rb → models/section.rb} +0 -0
- data/lib/canvas_sync/generators/templates/{term.rb → models/term.rb} +0 -0
- data/lib/canvas_sync/generators/templates/{user.rb → models/user.rb} +0 -0
- data/lib/canvas_sync/generators/templates/services/live_events/assignment/assignment_created_event.rb +5 -0
- data/lib/canvas_sync/generators/templates/services/live_events/assignment/assignment_event.rb +63 -0
- data/lib/canvas_sync/generators/templates/services/live_events/assignment/assignment_updated_event.rb +4 -0
- data/lib/canvas_sync/generators/templates/services/live_events/base_event.rb +23 -0
- data/lib/canvas_sync/generators/templates/services/live_events/course/course_created_event.rb +4 -0
- data/lib/canvas_sync/generators/templates/services/live_events/course/course_event.rb +42 -0
- data/lib/canvas_sync/generators/templates/services/live_events/course/course_updated_event.rb +4 -0
- data/lib/canvas_sync/generators/templates/services/live_events/enrollment/enrollment_created_event.rb +4 -0
- data/lib/canvas_sync/generators/templates/services/live_events/enrollment/enrollment_event.rb +58 -0
- data/lib/canvas_sync/generators/templates/services/live_events/enrollment/enrollment_updated_event.rb +4 -0
- data/lib/canvas_sync/generators/templates/services/live_events/grade/grade_changed_event.rb +4 -0
- data/lib/canvas_sync/generators/templates/services/live_events/grade/grade_event.rb +56 -0
- data/lib/canvas_sync/generators/templates/services/live_events/submission/submission_created_event.rb +4 -0
- data/lib/canvas_sync/generators/templates/services/live_events/submission/submission_event.rb +57 -0
- data/lib/canvas_sync/generators/templates/services/live_events/submission/submission_updated_event.rb +4 -0
- data/lib/canvas_sync/generators/templates/services/live_events/syllabus/syllabus_event.rb +35 -0
- data/lib/canvas_sync/generators/templates/services/live_events/syllabus/syllabus_updated_event.rb +2 -0
- data/lib/canvas_sync/generators/templates/services/live_events/user/user_created_event.rb +4 -0
- data/lib/canvas_sync/generators/templates/services/live_events/user/user_event.rb +35 -0
- data/lib/canvas_sync/generators/templates/services/live_events/user/user_updated_event.rb +4 -0
- data/lib/canvas_sync/importers/bulk_importer.rb +1 -1
- data/lib/canvas_sync/jobs/sync_roles_job.rb +18 -0
- data/lib/canvas_sync/version.rb +1 -1
- data/spec/canvas_sync/canvas_sync_spec.rb +28 -0
- data/spec/canvas_sync/jobs/sync_roles_job_spec.rb +16 -0
- data/spec/canvas_sync/models/roles_spec.rb +46 -0
- data/spec/dummy/app/models/role.rb +24 -0
- data/spec/dummy/config/database.yml +4 -4
- data/spec/dummy/db/migrate/20180103162102_create_roles.rb +23 -0
- data/spec/dummy/db/schema.rb +16 -1
- data/spec/factories/role_factory.rb +8 -0
- data/spec/support/fake_canvas.rb +4 -0
- data/spec/support/fixtures/canvas_responses/roles.json +748 -0
- metadata +52 -14
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: canvas_sync
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nate Collings
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2018-01-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -67,7 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
|
-
name:
|
70
|
+
name: pg
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - ">="
|
@@ -285,21 +285,46 @@ extra_rdoc_files: []
|
|
285
285
|
files:
|
286
286
|
- README.md
|
287
287
|
- Rakefile
|
288
|
+
- app/controllers/api/v1/health_check_controller.rb
|
289
|
+
- app/controllers/api/v1/live_events_controller.rb
|
288
290
|
- app/models/canvas_sync/job_log.rb
|
289
291
|
- db/migrate/20170915210836_create_canvas_sync_job_log.rb
|
290
292
|
- lib/canvas_sync.rb
|
291
293
|
- lib/canvas_sync/engine.rb
|
292
294
|
- lib/canvas_sync/generators/install_generator.rb
|
293
|
-
- lib/canvas_sync/generators/
|
294
|
-
- lib/canvas_sync/generators/templates/
|
295
|
-
- lib/canvas_sync/generators/templates/
|
296
|
-
- lib/canvas_sync/generators/templates/
|
297
|
-
- lib/canvas_sync/generators/templates/
|
298
|
-
- lib/canvas_sync/generators/templates/
|
299
|
-
- lib/canvas_sync/generators/templates/
|
300
|
-
- lib/canvas_sync/generators/templates/
|
301
|
-
- lib/canvas_sync/generators/templates/
|
302
|
-
- lib/canvas_sync/generators/templates/
|
295
|
+
- lib/canvas_sync/generators/install_live_events_generator.rb
|
296
|
+
- lib/canvas_sync/generators/templates/models/course.rb
|
297
|
+
- lib/canvas_sync/generators/templates/models/create_courses.rb
|
298
|
+
- lib/canvas_sync/generators/templates/models/create_enrollments.rb
|
299
|
+
- lib/canvas_sync/generators/templates/models/create_roles.rb
|
300
|
+
- lib/canvas_sync/generators/templates/models/create_sections.rb
|
301
|
+
- lib/canvas_sync/generators/templates/models/create_terms.rb
|
302
|
+
- lib/canvas_sync/generators/templates/models/create_users.rb
|
303
|
+
- lib/canvas_sync/generators/templates/models/enrollment.rb
|
304
|
+
- lib/canvas_sync/generators/templates/models/role.rb
|
305
|
+
- lib/canvas_sync/generators/templates/models/section.rb
|
306
|
+
- lib/canvas_sync/generators/templates/models/term.rb
|
307
|
+
- lib/canvas_sync/generators/templates/models/user.rb
|
308
|
+
- lib/canvas_sync/generators/templates/services/live_events/assignment/assignment_created_event.rb
|
309
|
+
- lib/canvas_sync/generators/templates/services/live_events/assignment/assignment_event.rb
|
310
|
+
- lib/canvas_sync/generators/templates/services/live_events/assignment/assignment_updated_event.rb
|
311
|
+
- lib/canvas_sync/generators/templates/services/live_events/base_event.rb
|
312
|
+
- lib/canvas_sync/generators/templates/services/live_events/course/course_created_event.rb
|
313
|
+
- lib/canvas_sync/generators/templates/services/live_events/course/course_event.rb
|
314
|
+
- lib/canvas_sync/generators/templates/services/live_events/course/course_updated_event.rb
|
315
|
+
- lib/canvas_sync/generators/templates/services/live_events/enrollment/enrollment_created_event.rb
|
316
|
+
- lib/canvas_sync/generators/templates/services/live_events/enrollment/enrollment_event.rb
|
317
|
+
- lib/canvas_sync/generators/templates/services/live_events/enrollment/enrollment_updated_event.rb
|
318
|
+
- lib/canvas_sync/generators/templates/services/live_events/grade/grade_changed_event.rb
|
319
|
+
- lib/canvas_sync/generators/templates/services/live_events/grade/grade_event.rb
|
320
|
+
- lib/canvas_sync/generators/templates/services/live_events/submission/submission_created_event.rb
|
321
|
+
- lib/canvas_sync/generators/templates/services/live_events/submission/submission_event.rb
|
322
|
+
- lib/canvas_sync/generators/templates/services/live_events/submission/submission_updated_event.rb
|
323
|
+
- lib/canvas_sync/generators/templates/services/live_events/syllabus/syllabus_event.rb
|
324
|
+
- lib/canvas_sync/generators/templates/services/live_events/syllabus/syllabus_updated_event.rb
|
325
|
+
- lib/canvas_sync/generators/templates/services/live_events/user/user_created_event.rb
|
326
|
+
- lib/canvas_sync/generators/templates/services/live_events/user/user_event.rb
|
327
|
+
- lib/canvas_sync/generators/templates/services/live_events/user/user_updated_event.rb
|
303
328
|
- lib/canvas_sync/importers/bulk_importer.rb
|
304
329
|
- lib/canvas_sync/importers/legacy_importer.rb
|
305
330
|
- lib/canvas_sync/job.rb
|
@@ -307,6 +332,7 @@ files:
|
|
307
332
|
- lib/canvas_sync/jobs/report_processor_job.rb
|
308
333
|
- lib/canvas_sync/jobs/report_starter.rb
|
309
334
|
- lib/canvas_sync/jobs/sync_provisioning_report_job.rb
|
335
|
+
- lib/canvas_sync/jobs/sync_roles_job.rb
|
310
336
|
- lib/canvas_sync/jobs/sync_terms_job.rb
|
311
337
|
- lib/canvas_sync/jobs/sync_users_job.rb
|
312
338
|
- lib/canvas_sync/processors/model_mappings.yml
|
@@ -318,10 +344,12 @@ files:
|
|
318
344
|
- spec/canvas_sync/jobs/report_processor_job_spec.rb
|
319
345
|
- spec/canvas_sync/jobs/report_starter_spec.rb
|
320
346
|
- spec/canvas_sync/jobs/sync_provisioning_report_job_spec.rb
|
347
|
+
- spec/canvas_sync/jobs/sync_roles_job_spec.rb
|
321
348
|
- spec/canvas_sync/jobs/sync_terms_job_spec.rb
|
322
349
|
- spec/canvas_sync/jobs/sync_users_job_spec.rb
|
323
350
|
- spec/canvas_sync/models/course_spec.rb
|
324
351
|
- spec/canvas_sync/models/enrollment_spec.rb
|
352
|
+
- spec/canvas_sync/models/roles_spec.rb
|
325
353
|
- spec/canvas_sync/models/section_spec.rb
|
326
354
|
- spec/canvas_sync/models/term_spec.rb
|
327
355
|
- spec/canvas_sync/models/user_spec.rb
|
@@ -331,6 +359,7 @@ files:
|
|
331
359
|
- spec/dummy/app/models/application_record.rb
|
332
360
|
- spec/dummy/app/models/course.rb
|
333
361
|
- spec/dummy/app/models/enrollment.rb
|
362
|
+
- spec/dummy/app/models/role.rb
|
334
363
|
- spec/dummy/app/models/section.rb
|
335
364
|
- spec/dummy/app/models/term.rb
|
336
365
|
- spec/dummy/app/models/user.rb
|
@@ -353,17 +382,20 @@ files:
|
|
353
382
|
- spec/dummy/db/migrate/20170914181345_create_courses.rb
|
354
383
|
- spec/dummy/db/migrate/20170918221413_create_users.rb
|
355
384
|
- spec/dummy/db/migrate/20171107213207_create_sections.rb
|
385
|
+
- spec/dummy/db/migrate/20180103162102_create_roles.rb
|
356
386
|
- spec/dummy/db/schema.rb
|
357
387
|
- spec/dummy/db/test.sqlite3
|
358
388
|
- spec/dummy/log/development.log
|
359
389
|
- spec/dummy/log/test.log
|
360
390
|
- spec/factories/course_factory.rb
|
361
391
|
- spec/factories/enrollment_factory.rb
|
392
|
+
- spec/factories/role_factory.rb
|
362
393
|
- spec/factories/section_factory.rb
|
363
394
|
- spec/factories/term_factory.rb
|
364
395
|
- spec/factories/user_factory.rb
|
365
396
|
- spec/spec_helper.rb
|
366
397
|
- spec/support/fake_canvas.rb
|
398
|
+
- spec/support/fixtures/canvas_responses/roles.json
|
367
399
|
- spec/support/fixtures/canvas_responses/terms.json
|
368
400
|
- spec/support/fixtures/reports/courses.csv
|
369
401
|
- spec/support/fixtures/reports/enrollments.csv
|
@@ -392,7 +424,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
392
424
|
version: '0'
|
393
425
|
requirements: []
|
394
426
|
rubyforge_project:
|
395
|
-
rubygems_version: 2.
|
427
|
+
rubygems_version: 2.7.3
|
396
428
|
signing_key:
|
397
429
|
specification_version: 4
|
398
430
|
summary: Gem for generating Canvas models and migrations and syncing data from Canvas
|
@@ -403,10 +435,12 @@ test_files:
|
|
403
435
|
- spec/canvas_sync/jobs/report_processor_job_spec.rb
|
404
436
|
- spec/canvas_sync/jobs/report_starter_spec.rb
|
405
437
|
- spec/canvas_sync/jobs/sync_provisioning_report_job_spec.rb
|
438
|
+
- spec/canvas_sync/jobs/sync_roles_job_spec.rb
|
406
439
|
- spec/canvas_sync/jobs/sync_terms_job_spec.rb
|
407
440
|
- spec/canvas_sync/jobs/sync_users_job_spec.rb
|
408
441
|
- spec/canvas_sync/models/course_spec.rb
|
409
442
|
- spec/canvas_sync/models/enrollment_spec.rb
|
443
|
+
- spec/canvas_sync/models/roles_spec.rb
|
410
444
|
- spec/canvas_sync/models/section_spec.rb
|
411
445
|
- spec/canvas_sync/models/term_spec.rb
|
412
446
|
- spec/canvas_sync/models/user_spec.rb
|
@@ -416,6 +450,7 @@ test_files:
|
|
416
450
|
- spec/dummy/app/models/application_record.rb
|
417
451
|
- spec/dummy/app/models/course.rb
|
418
452
|
- spec/dummy/app/models/enrollment.rb
|
453
|
+
- spec/dummy/app/models/role.rb
|
419
454
|
- spec/dummy/app/models/section.rb
|
420
455
|
- spec/dummy/app/models/term.rb
|
421
456
|
- spec/dummy/app/models/user.rb
|
@@ -438,17 +473,20 @@ test_files:
|
|
438
473
|
- spec/dummy/db/migrate/20170914181345_create_courses.rb
|
439
474
|
- spec/dummy/db/migrate/20170918221413_create_users.rb
|
440
475
|
- spec/dummy/db/migrate/20171107213207_create_sections.rb
|
476
|
+
- spec/dummy/db/migrate/20180103162102_create_roles.rb
|
441
477
|
- spec/dummy/db/schema.rb
|
442
478
|
- spec/dummy/db/test.sqlite3
|
443
479
|
- spec/dummy/log/development.log
|
444
480
|
- spec/dummy/log/test.log
|
445
481
|
- spec/factories/course_factory.rb
|
446
482
|
- spec/factories/enrollment_factory.rb
|
483
|
+
- spec/factories/role_factory.rb
|
447
484
|
- spec/factories/section_factory.rb
|
448
485
|
- spec/factories/term_factory.rb
|
449
486
|
- spec/factories/user_factory.rb
|
450
487
|
- spec/spec_helper.rb
|
451
488
|
- spec/support/fake_canvas.rb
|
489
|
+
- spec/support/fixtures/canvas_responses/roles.json
|
452
490
|
- spec/support/fixtures/canvas_responses/terms.json
|
453
491
|
- spec/support/fixtures/reports/courses.csv
|
454
492
|
- spec/support/fixtures/reports/enrollments.csv
|