canvas_sync 0.10.6 → 0.11.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (36) hide show
  1. checksums.yaml +5 -5
  2. data/lib/canvas_sync.rb +10 -0
  3. data/lib/canvas_sync/api_syncable.rb +8 -0
  4. data/lib/canvas_sync/generators/templates/migrations/create_admins.rb +7 -4
  5. data/lib/canvas_sync/generators/templates/migrations/create_roles.rb +3 -4
  6. data/lib/canvas_sync/generators/templates/models/account.rb +2 -0
  7. data/lib/canvas_sync/generators/templates/models/admin.rb +4 -5
  8. data/lib/canvas_sync/generators/templates/models/role.rb +0 -4
  9. data/lib/canvas_sync/generators/templates/models/term.rb +0 -2
  10. data/lib/canvas_sync/job.rb +10 -0
  11. data/lib/canvas_sync/jobs/sync_admins_job.rb +9 -5
  12. data/lib/canvas_sync/jobs/sync_roles_job.rb +8 -5
  13. data/lib/canvas_sync/jobs/sync_terms_job.rb +8 -2
  14. data/lib/canvas_sync/version.rb +1 -1
  15. data/spec/canvas_sync/jobs/sync_admins_job_spec.rb +2 -1
  16. data/spec/canvas_sync/jobs/sync_roles_job_spec.rb +2 -1
  17. data/spec/canvas_sync/models/admins_spec.rb +3 -5
  18. data/spec/canvas_sync/models/roles_spec.rb +5 -5
  19. data/spec/canvas_sync/models/term_spec.rb +3 -3
  20. data/spec/dummy/app/models/account.rb +2 -0
  21. data/spec/dummy/app/models/admin.rb +4 -5
  22. data/spec/dummy/app/models/role.rb +0 -4
  23. data/spec/dummy/app/models/term.rb +0 -2
  24. data/spec/dummy/db/migrate/{20190702203628_create_roles.rb → 20190927204545_create_roles.rb} +3 -4
  25. data/spec/dummy/db/migrate/{20190702203629_create_admins.rb → 20190927204546_create_admins.rb} +7 -4
  26. data/spec/dummy/db/schema.rb +11 -9
  27. data/spec/factories/admin_factory.rb +0 -1
  28. data/spec/support/fake_canvas.rb +2 -2
  29. data/spec/support/fixtures/canvas_responses/roles.json +6 -0
  30. metadata +10 -21
  31. data/spec/dummy/db/development.sqlite3 +0 -0
  32. data/spec/dummy/db/test.sqlite3 +0 -0
  33. data/spec/dummy/log/development.log +0 -4188
  34. data/spec/dummy/log/test.log +0 -71696
  35. data/spec/support/fixtures/reports/provisioning_csv_unzipped/courses.csv +0 -3
  36. data/spec/support/fixtures/reports/provisioning_csv_unzipped/users.csv +0 -4
@@ -1,3 +0,0 @@
1
- canvas_course_id,course_id,integration_id,short_name,long_name,canvas_account_id,account_id,canvas_term_id,term_id,status,start_date,end_date,course_format,created_by_sis
2
- 1,course_sis_id_1,,C1,Course #1,1,,1,term_sis_id_1,active,2017-03-27T15:53:18-06:00,2017-04-27T06:21:18-06:00,,FALSE
3
- 2,course_sis_id_2,,C2,Course #2,1,,1,term_sis_id_2,unpublished,2017-03-27T15:53:18-06:00,2017-04-27T06:21:18-06:00,,FALSE
@@ -1,4 +0,0 @@
1
- canvas_user_id,user_id,integration_id,authentication_provider_id,login_id,first_name,last_name,full_name,sortable_name,short_name,email,status,created_by_sis
2
- 1,sis_id_1,,123,spiderdude1337,Patches,the Spider,Patches the Spider,"the Spider, Patches",,poorbastard@yharnam.com,active,FALSE
3
- 2,sis_id_2,,1234,retireddude109,Hunter,Djura,Hunter Djura,"Djura, Hunter",,dreamer@yharnam.com,active,FALSE
4
- 2,sis_id_2,,1234,retireddude110,Hunter,Djura,Hunter Djura,"Djura, Hunter",,dreamer@yharnam.com,active,FALSE