canvas_sync 0.4.1 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/canvas_sync.rb +1 -0
- data/lib/canvas_sync/generators/templates/models/context_module_item.rb +2 -2
- data/lib/canvas_sync/generators/templates/models/create_context_module_items.rb +1 -0
- data/lib/canvas_sync/generators/templates/models/create_users.rb +2 -0
- data/lib/canvas_sync/generators/templates/services/live_events/course/course_event.rb +1 -1
- data/lib/canvas_sync/generators/templates/services/live_events/course_section/course_section_created_event.rb +6 -0
- data/lib/canvas_sync/generators/templates/services/live_events/course_section/course_section_event.rb +48 -0
- data/lib/canvas_sync/generators/templates/services/live_events/course_section/course_section_updated_event.rb +6 -0
- data/lib/canvas_sync/generators/templates/services/live_events/user/user_created_event.rb +1 -1
- data/lib/canvas_sync/generators/templates/services/live_events/user/user_event.rb +25 -23
- data/lib/canvas_sync/processors/model_mappings.yml +9 -0
- data/lib/canvas_sync/version.rb +1 -1
- data/spec/dummy/app/models/context_module_item.rb +2 -2
- data/spec/dummy/app/services/live_events/course_event.rb +1 -1
- data/spec/dummy/app/services/live_events/course_section_created_event.rb +12 -0
- data/spec/dummy/app/services/live_events/course_section_event.rb +54 -0
- data/spec/dummy/app/services/live_events/course_section_updated_event.rb +12 -0
- data/spec/dummy/app/services/live_events/user_created_event.rb +1 -1
- data/spec/dummy/app/services/live_events/user_event.rb +25 -23
- data/spec/dummy/db/migrate/{20170918221413_create_users.rb → 20180509194201_create_users.rb} +2 -0
- data/spec/dummy/db/migrate/{20180411215633_create_context_module_items.rb → 20180605172338_create_context_module_items.rb} +1 -0
- data/spec/dummy/db/schema.rb +4 -1
- data/spec/dummy/log/development.log +777 -0
- data/spec/dummy/log/test.log +2358 -0
- data/spec/support/fixtures/reports/context_module_items.csv +3 -3
- metadata +15 -6
@@ -1,3 +1,3 @@
|
|
1
|
-
canvas_context_module_item_id,content_id,content_type,context_id,context_type,context_module_id,position,workflow_state
|
2
|
-
15,83,Assignment,16,Course,9,1,active
|
3
|
-
16,80,Assignment,48,Course,10,1,active
|
1
|
+
canvas_context_module_item_id,content_id,content_type,context_id,context_type,context_module_id,position,workflow_state,assignment_id
|
2
|
+
15,83,Assignment,16,Course,9,1,active,1
|
3
|
+
16,80,Assignment,48,Course,10,1,active,2
|
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.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nate Collings
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-05
|
11
|
+
date: 2018-06-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -340,6 +340,9 @@ files:
|
|
340
340
|
- lib/canvas_sync/generators/templates/services/live_events/course/course_created_event.rb
|
341
341
|
- lib/canvas_sync/generators/templates/services/live_events/course/course_event.rb
|
342
342
|
- lib/canvas_sync/generators/templates/services/live_events/course/course_updated_event.rb
|
343
|
+
- lib/canvas_sync/generators/templates/services/live_events/course_section/course_section_created_event.rb
|
344
|
+
- lib/canvas_sync/generators/templates/services/live_events/course_section/course_section_event.rb
|
345
|
+
- lib/canvas_sync/generators/templates/services/live_events/course_section/course_section_updated_event.rb
|
343
346
|
- lib/canvas_sync/generators/templates/services/live_events/enrollment/enrollment_created_event.rb
|
344
347
|
- lib/canvas_sync/generators/templates/services/live_events/enrollment/enrollment_event.rb
|
345
348
|
- lib/canvas_sync/generators/templates/services/live_events/enrollment/enrollment_updated_event.rb
|
@@ -442,6 +445,9 @@ files:
|
|
442
445
|
- spec/dummy/app/services/live_events/base_event.rb
|
443
446
|
- spec/dummy/app/services/live_events/course_created_event.rb
|
444
447
|
- spec/dummy/app/services/live_events/course_event.rb
|
448
|
+
- spec/dummy/app/services/live_events/course_section_created_event.rb
|
449
|
+
- spec/dummy/app/services/live_events/course_section_event.rb
|
450
|
+
- spec/dummy/app/services/live_events/course_section_updated_event.rb
|
445
451
|
- spec/dummy/app/services/live_events/course_updated_event.rb
|
446
452
|
- spec/dummy/app/services/live_events/enrollment_created_event.rb
|
447
453
|
- spec/dummy/app/services/live_events/enrollment_event.rb
|
@@ -479,7 +485,6 @@ files:
|
|
479
485
|
- spec/dummy/db/migrate/20170905192509_create_enrollments.rb
|
480
486
|
- spec/dummy/db/migrate/20170906193506_create_terms.rb
|
481
487
|
- spec/dummy/db/migrate/20170914181345_create_courses.rb
|
482
|
-
- spec/dummy/db/migrate/20170918221413_create_users.rb
|
483
488
|
- spec/dummy/db/migrate/20171107213207_create_sections.rb
|
484
489
|
- spec/dummy/db/migrate/20180103162102_create_roles.rb
|
485
490
|
- spec/dummy/db/migrate/20180109210452_create_admins.rb
|
@@ -488,7 +493,8 @@ files:
|
|
488
493
|
- spec/dummy/db/migrate/20180220172559_create_accounts.rb
|
489
494
|
- spec/dummy/db/migrate/20180222163506_create_assignment_groups.rb
|
490
495
|
- spec/dummy/db/migrate/20180411215348_create_context_modules.rb
|
491
|
-
- spec/dummy/db/migrate/
|
496
|
+
- spec/dummy/db/migrate/20180509194201_create_users.rb
|
497
|
+
- spec/dummy/db/migrate/20180605172338_create_context_module_items.rb
|
492
498
|
- spec/dummy/db/schema.rb
|
493
499
|
- spec/dummy/db/test.sqlite3
|
494
500
|
- spec/dummy/log/development.log
|
@@ -608,6 +614,9 @@ test_files:
|
|
608
614
|
- spec/dummy/app/services/live_events/base_event.rb
|
609
615
|
- spec/dummy/app/services/live_events/course_created_event.rb
|
610
616
|
- spec/dummy/app/services/live_events/course_event.rb
|
617
|
+
- spec/dummy/app/services/live_events/course_section_created_event.rb
|
618
|
+
- spec/dummy/app/services/live_events/course_section_event.rb
|
619
|
+
- spec/dummy/app/services/live_events/course_section_updated_event.rb
|
611
620
|
- spec/dummy/app/services/live_events/course_updated_event.rb
|
612
621
|
- spec/dummy/app/services/live_events/enrollment_created_event.rb
|
613
622
|
- spec/dummy/app/services/live_events/enrollment_event.rb
|
@@ -645,7 +654,6 @@ test_files:
|
|
645
654
|
- spec/dummy/db/migrate/20170905192509_create_enrollments.rb
|
646
655
|
- spec/dummy/db/migrate/20170906193506_create_terms.rb
|
647
656
|
- spec/dummy/db/migrate/20170914181345_create_courses.rb
|
648
|
-
- spec/dummy/db/migrate/20170918221413_create_users.rb
|
649
657
|
- spec/dummy/db/migrate/20171107213207_create_sections.rb
|
650
658
|
- spec/dummy/db/migrate/20180103162102_create_roles.rb
|
651
659
|
- spec/dummy/db/migrate/20180109210452_create_admins.rb
|
@@ -654,7 +662,8 @@ test_files:
|
|
654
662
|
- spec/dummy/db/migrate/20180220172559_create_accounts.rb
|
655
663
|
- spec/dummy/db/migrate/20180222163506_create_assignment_groups.rb
|
656
664
|
- spec/dummy/db/migrate/20180411215348_create_context_modules.rb
|
657
|
-
- spec/dummy/db/migrate/
|
665
|
+
- spec/dummy/db/migrate/20180509194201_create_users.rb
|
666
|
+
- spec/dummy/db/migrate/20180605172338_create_context_module_items.rb
|
658
667
|
- spec/dummy/db/schema.rb
|
659
668
|
- spec/dummy/db/test.sqlite3
|
660
669
|
- spec/dummy/log/development.log
|