canvas_sync 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (85) hide show
  1. checksums.yaml +7 -0
  2. data/README.md +178 -0
  3. data/Rakefile +23 -0
  4. data/lib/canvas_sync.rb +96 -0
  5. data/lib/canvas_sync/generators/install_generator.rb +54 -0
  6. data/lib/canvas_sync/generators/templates/course.rb +8 -0
  7. data/lib/canvas_sync/generators/templates/create_courses.rb +21 -0
  8. data/lib/canvas_sync/generators/templates/create_enrollments.rb +26 -0
  9. data/lib/canvas_sync/generators/templates/create_sections.rb +20 -0
  10. data/lib/canvas_sync/generators/templates/create_terms.rb +18 -0
  11. data/lib/canvas_sync/generators/templates/create_users.rb +18 -0
  12. data/lib/canvas_sync/generators/templates/enrollment.rb +8 -0
  13. data/lib/canvas_sync/generators/templates/section.rb +7 -0
  14. data/lib/canvas_sync/generators/templates/term.rb +28 -0
  15. data/lib/canvas_sync/generators/templates/user.rb +6 -0
  16. data/lib/canvas_sync/importers/bulk_importer.rb +54 -0
  17. data/lib/canvas_sync/jobs/application_job.rb +25 -0
  18. data/lib/canvas_sync/jobs/report_checker.rb +48 -0
  19. data/lib/canvas_sync/jobs/report_processor_job.rb +36 -0
  20. data/lib/canvas_sync/jobs/report_starter.rb +29 -0
  21. data/lib/canvas_sync/jobs/sync_provisioning_report_job.rb +58 -0
  22. data/lib/canvas_sync/jobs/sync_terms_job.rb +23 -0
  23. data/lib/canvas_sync/jobs/sync_users_job.rb +32 -0
  24. data/lib/canvas_sync/processors/provisioning_report_processor.rb +118 -0
  25. data/lib/canvas_sync/version.rb +3 -0
  26. data/spec/canvas_sync/canvas_sync_spec.rb +60 -0
  27. data/spec/canvas_sync/jobs/report_checker_spec.rb +62 -0
  28. data/spec/canvas_sync/jobs/report_processor_job_spec.rb +30 -0
  29. data/spec/canvas_sync/jobs/report_starter_spec.rb +27 -0
  30. data/spec/canvas_sync/jobs/sync_provisioning_report_job_spec.rb +81 -0
  31. data/spec/canvas_sync/jobs/sync_terms_job_spec.rb +18 -0
  32. data/spec/canvas_sync/jobs/sync_users_job_spec.rb +18 -0
  33. data/spec/canvas_sync/models/course_spec.rb +30 -0
  34. data/spec/canvas_sync/models/enrollment_spec.rb +30 -0
  35. data/spec/canvas_sync/models/section_spec.rb +24 -0
  36. data/spec/canvas_sync/models/term_spec.rb +71 -0
  37. data/spec/canvas_sync/models/user_spec.rb +18 -0
  38. data/spec/canvas_sync/processors/provisioning_report_processor_spec.rb +41 -0
  39. data/spec/dummy/README.rdoc +1 -0
  40. data/spec/dummy/Rakefile +6 -0
  41. data/spec/dummy/app/models/application_record.rb +3 -0
  42. data/spec/dummy/app/models/course.rb +14 -0
  43. data/spec/dummy/app/models/enrollment.rb +14 -0
  44. data/spec/dummy/app/models/section.rb +13 -0
  45. data/spec/dummy/app/models/term.rb +34 -0
  46. data/spec/dummy/app/models/user.rb +12 -0
  47. data/spec/dummy/bin/rails +4 -0
  48. data/spec/dummy/config.ru +4 -0
  49. data/spec/dummy/config/application.rb +26 -0
  50. data/spec/dummy/config/boot.rb +5 -0
  51. data/spec/dummy/config/database.yml +25 -0
  52. data/spec/dummy/config/environment.rb +5 -0
  53. data/spec/dummy/config/environments/development.rb +41 -0
  54. data/spec/dummy/config/environments/test.rb +42 -0
  55. data/spec/dummy/config/initializers/assets.rb +11 -0
  56. data/spec/dummy/config/initializers/session_store.rb +3 -0
  57. data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
  58. data/spec/dummy/config/routes.rb +2 -0
  59. data/spec/dummy/config/secrets.yml +22 -0
  60. data/spec/dummy/db/development.sqlite3 +0 -0
  61. data/spec/dummy/db/migrate/20170831220702_create_courses.rb +27 -0
  62. data/spec/dummy/db/migrate/20170831221129_create_users.rb +24 -0
  63. data/spec/dummy/db/migrate/20170905192509_create_enrollments.rb +32 -0
  64. data/spec/dummy/db/migrate/20170906193506_create_terms.rb +24 -0
  65. data/spec/dummy/db/migrate/20170906203438_create_sections.rb +26 -0
  66. data/spec/dummy/db/schema.rb +88 -0
  67. data/spec/dummy/db/test.sqlite3 +0 -0
  68. data/spec/dummy/log/development.log +828 -0
  69. data/spec/dummy/log/test.log +14582 -0
  70. data/spec/factories/course_factory.rb +10 -0
  71. data/spec/factories/enrollment_factory.rb +5 -0
  72. data/spec/factories/section_factory.rb +5 -0
  73. data/spec/factories/term_factory.rb +10 -0
  74. data/spec/factories/user_factory.rb +9 -0
  75. data/spec/spec_helper.rb +46 -0
  76. data/spec/support/fake_canvas.rb +22 -0
  77. data/spec/support/fixtures/canvas_responses/terms.json +64 -0
  78. data/spec/support/fixtures/reports/courses.csv +3 -0
  79. data/spec/support/fixtures/reports/enrollments.csv +3 -0
  80. data/spec/support/fixtures/reports/provisioning_csv +0 -0
  81. data/spec/support/fixtures/reports/provisioning_csv_unzipped/courses.csv +3 -0
  82. data/spec/support/fixtures/reports/provisioning_csv_unzipped/users.csv +4 -0
  83. data/spec/support/fixtures/reports/sections.csv +3 -0
  84. data/spec/support/fixtures/reports/users.csv +4 -0
  85. metadata +423 -0
@@ -0,0 +1,10 @@
1
+ FactoryGirl.define do
2
+ factory :course do
3
+ canvas_course_id { SecureRandom.random_number(100_000_000) }
4
+ sis_id { SecureRandom.hex }
5
+ short_name 'Cool Course'
6
+ long_name 'Really Really Cool Course'
7
+ start_date { 3.days.ago }
8
+ end_date { 3.weeks.from_now }
9
+ end
10
+ end
@@ -0,0 +1,5 @@
1
+ FactoryGirl.define do
2
+ factory :enrollment do
3
+ canvas_enrollment_id { SecureRandom.random_number(100_000_000) }
4
+ end
5
+ end
@@ -0,0 +1,5 @@
1
+ FactoryGirl.define do
2
+ factory :section do
3
+ canvas_section_id { SecureRandom.random_number(100_000_000) }
4
+ end
5
+ end
@@ -0,0 +1,10 @@
1
+ FactoryGirl.define do
2
+ factory :term do
3
+ name 'Cool Term'
4
+ start_at 3.days.ago
5
+ end_at 3.days.from_now
6
+ canvas_term_id { SecureRandom.random_number(100_000_000) }
7
+ workflow_state 'active'
8
+ sis_id { SecureRandom.hex }
9
+ end
10
+ end
@@ -0,0 +1,9 @@
1
+ FactoryGirl.define do
2
+ factory :user do
3
+ canvas_user_id { SecureRandom.random_number(100_000_000) }
4
+ sis_id { SecureRandom.hex }
5
+ email "cooldude@coolsite.com"
6
+ first_name "Cool"
7
+ last_name "Dude"
8
+ end
9
+ end
@@ -0,0 +1,46 @@
1
+ ENV["RAILS_ENV"] ||= 'test'
2
+ require "canvas_sync"
3
+ require File.expand_path("../dummy/config/environment.rb", __FILE__)
4
+ require "bundler/setup"
5
+ require 'rspec/rails'
6
+ require 'spec_helper'
7
+ require 'factory_girl_rails'
8
+ require 'timecop'
9
+ require 'webmock/rspec'
10
+ require 'support/fake_canvas'
11
+ require 'shoulda/matchers'
12
+
13
+ ActiveRecord::Migration.maintain_test_schema!
14
+
15
+ RSpec.configure do |config|
16
+ config.include FactoryGirl::Syntax::Methods
17
+ config.use_transactional_fixtures = true
18
+ config.infer_spec_type_from_file_location!
19
+ config.filter_rails_from_backtrace!
20
+
21
+ # Enable flags like --only-failures and --next-failure
22
+ config.example_status_persistence_file_path = ".rspec_status"
23
+
24
+ # Disable RSpec exposing methods globally on `Module` and `main`
25
+ config.disable_monkey_patching!
26
+
27
+ config.expect_with :rspec do |c|
28
+ c.syntax = :expect
29
+ end
30
+
31
+ config.before(:each) do
32
+ stub_request(:any, /test.instructure.com/).to_rack(FakeCanvas)
33
+ end
34
+ end
35
+
36
+ Shoulda::Matchers.configure do |config|
37
+ config.integrate do |with|
38
+ with.test_framework :rspec
39
+ with.library :rails
40
+ end
41
+ end
42
+
43
+ def open_canvas_fixture(name)
44
+ data = File.open(File.dirname(__FILE__) + '/support/fixtures/canvas_responses/' + name + '.json', 'rb').read
45
+ JSON.parse(data)
46
+ end
@@ -0,0 +1,22 @@
1
+ require 'sinatra/base'
2
+
3
+ # Canvas responses can be mocked out here. You can get the correct
4
+ # format by hitting a real Canvas API for the route you're looking at,
5
+ # and then save the result as a .json file in spec/support/fixtures/canvas_responses
6
+ class FakeCanvas < Sinatra::Base
7
+ get '/api/v1/accounts/self/terms' do
8
+ json_response 200, 'terms.json'
9
+ end
10
+
11
+ get '/sample_report_download' do
12
+ json_response 200, 'terms.json'
13
+ end
14
+
15
+ private
16
+
17
+ def json_response(response_code, file_name)
18
+ content_type :json
19
+ status response_code
20
+ File.open(File.dirname(__FILE__) + '/fixtures/canvas_responses/' + file_name, 'rb').read
21
+ end
22
+ end
@@ -0,0 +1,64 @@
1
+ {
2
+ "enrollment_terms": [
3
+ {
4
+ "id": 1,
5
+ "name": "Default Term",
6
+ "start_at": null,
7
+ "end_at": null,
8
+ "created_at": "2017-03-21T19:04:54Z",
9
+ "workflow_state": "active",
10
+ "grading_period_group_id": 1,
11
+ "sis_term_id": "Test"
12
+ },
13
+ {
14
+ "id": 6,
15
+ "name": "Average Term 1",
16
+ "start_at": null,
17
+ "end_at": null,
18
+ "created_at": "2017-08-24T19:43:45Z",
19
+ "workflow_state": "active",
20
+ "grading_period_group_id": null,
21
+ "sis_term_id": null
22
+ },
23
+ {
24
+ "id": 7,
25
+ "name": "Average Term 2",
26
+ "start_at": null,
27
+ "end_at": null,
28
+ "created_at": "2017-08-24T19:43:50Z",
29
+ "workflow_state": "active",
30
+ "grading_period_group_id": null,
31
+ "sis_term_id": null
32
+ },
33
+ {
34
+ "id": 5,
35
+ "name": "Syllabus Term",
36
+ "start_at": "2017-08-14T06:00:00Z",
37
+ "end_at": "2017-08-31T06:00:00Z",
38
+ "created_at": "2017-08-23T19:31:23Z",
39
+ "workflow_state": "active",
40
+ "grading_period_group_id": null,
41
+ "sis_term_id": "SYTERM"
42
+ },
43
+ {
44
+ "id": 4,
45
+ "name": "Ellucian Term",
46
+ "start_at": "2017-08-01T06:00:00Z",
47
+ "end_at": "2017-10-31T06:00:00Z",
48
+ "created_at": "2017-08-02T20:34:15Z",
49
+ "workflow_state": "active",
50
+ "grading_period_group_id": 1,
51
+ "sis_term_id": "SH"
52
+ },
53
+ {
54
+ "id": 3,
55
+ "name": "Current Term",
56
+ "start_at": "2017-03-19T06:00:00Z",
57
+ "end_at": "2017-08-01T06:00:00Z",
58
+ "created_at": "2017-03-21T19:47:15Z",
59
+ "workflow_state": "active",
60
+ "grading_period_group_id": null,
61
+ "sis_term_id": null
62
+ }
63
+ ]
64
+ }
@@ -0,0 +1,3 @@
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
@@ -0,0 +1,3 @@
1
+ canvas_enrollment_id,canvas_course_id,course_id,canvas_user_id,user_id,role,role_id,canvas_section_id,section_id,status,canvas_associated_user_id,associated_user_id,created_by_sis,base_role_type,limit_section_privileges
2
+ 1,1,sis_MUSC_2520_834,2,sis_dalvarez_247,teacher,4,1,sis_section_MUSC_2520_752,active,,,false,TeacherEnrollment,false
3
+ 2,1,sis_MUSC_2520_834,3,sis_jweaver_720,student,4,1,sis_section_MUSC_2520_752,active,,,false,StudentEnrollment,false
@@ -0,0 +1,3 @@
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
@@ -0,0 +1,4 @@
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
@@ -0,0 +1,3 @@
1
+ canvas_section_id,section_id,canvas_course_id,course_id,integration_id,name,status,start_date,end_date,canvas_account_id,account_id,created_by_sis
2
+ 1,sis_section_1,1,sis_course_1,,Cool Section,active,2017-03-27T15:53:18-06:00,2017-03-27T15:53:18-06:00,1,1,
3
+ 2,sis_section_2,2,sis_course_2,,Lame Section,active,2017-03-27T15:53:18-06:00,2017-03-27T15:53:18-06:00,1,1,
@@ -0,0 +1,4 @@
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
metadata ADDED
@@ -0,0 +1,423 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: canvas_sync
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.1
5
+ platform: ruby
6
+ authors:
7
+ - Nate Collings
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2017-09-07 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: bundler
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '1.15'
20
+ type: :development
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '1.15'
27
+ - !ruby/object:Gem::Dependency
28
+ name: rake
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '10.0'
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '10.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: rspec
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '3.0'
48
+ type: :development
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '3.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: rspec-rails
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - ">="
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
62
+ type: :development
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - ">="
67
+ - !ruby/object:Gem::Version
68
+ version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: sqlite3
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: factory
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: factory_girl_rails
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - ">="
102
+ - !ruby/object:Gem::Version
103
+ version: '0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - ">="
109
+ - !ruby/object:Gem::Version
110
+ version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: timecop
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: webmock
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :development
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: sinatra
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - ">="
144
+ - !ruby/object:Gem::Version
145
+ version: '0'
146
+ type: :development
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - ">="
151
+ - !ruby/object:Gem::Version
152
+ version: '0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: shoulda-matchers
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - ">="
158
+ - !ruby/object:Gem::Version
159
+ version: '0'
160
+ type: :development
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - ">="
165
+ - !ruby/object:Gem::Version
166
+ version: '0'
167
+ - !ruby/object:Gem::Dependency
168
+ name: yard
169
+ requirement: !ruby/object:Gem::Requirement
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
+ requirements:
178
+ - - ">="
179
+ - !ruby/object:Gem::Version
180
+ version: '0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: activejob
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - ">="
186
+ - !ruby/object:Gem::Version
187
+ version: '0'
188
+ type: :runtime
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - ">="
193
+ - !ruby/object:Gem::Version
194
+ version: '0'
195
+ - !ruby/object:Gem::Dependency
196
+ name: rails
197
+ requirement: !ruby/object:Gem::Requirement
198
+ requirements:
199
+ - - ">="
200
+ - !ruby/object:Gem::Version
201
+ version: 5.1.0
202
+ type: :runtime
203
+ prerelease: false
204
+ version_requirements: !ruby/object:Gem::Requirement
205
+ requirements:
206
+ - - ">="
207
+ - !ruby/object:Gem::Version
208
+ version: 5.1.0
209
+ - !ruby/object:Gem::Dependency
210
+ name: bearcat
211
+ requirement: !ruby/object:Gem::Requirement
212
+ requirements:
213
+ - - ">="
214
+ - !ruby/object:Gem::Version
215
+ version: '0'
216
+ type: :runtime
217
+ prerelease: false
218
+ version_requirements: !ruby/object:Gem::Requirement
219
+ requirements:
220
+ - - ">="
221
+ - !ruby/object:Gem::Version
222
+ version: '0'
223
+ - !ruby/object:Gem::Dependency
224
+ name: activerecord-import
225
+ requirement: !ruby/object:Gem::Requirement
226
+ requirements:
227
+ - - ">="
228
+ - !ruby/object:Gem::Version
229
+ version: '0'
230
+ type: :runtime
231
+ prerelease: false
232
+ version_requirements: !ruby/object:Gem::Requirement
233
+ requirements:
234
+ - - ">="
235
+ - !ruby/object:Gem::Version
236
+ version: '0'
237
+ - !ruby/object:Gem::Dependency
238
+ name: rubyzip
239
+ requirement: !ruby/object:Gem::Requirement
240
+ requirements:
241
+ - - ">="
242
+ - !ruby/object:Gem::Version
243
+ version: '0'
244
+ type: :runtime
245
+ prerelease: false
246
+ version_requirements: !ruby/object:Gem::Requirement
247
+ requirements:
248
+ - - ">="
249
+ - !ruby/object:Gem::Version
250
+ version: '0'
251
+ description:
252
+ email:
253
+ - ncollings@instructure.com
254
+ executables: []
255
+ extensions: []
256
+ extra_rdoc_files: []
257
+ files:
258
+ - README.md
259
+ - Rakefile
260
+ - lib/canvas_sync.rb
261
+ - lib/canvas_sync/generators/install_generator.rb
262
+ - lib/canvas_sync/generators/templates/course.rb
263
+ - lib/canvas_sync/generators/templates/create_courses.rb
264
+ - lib/canvas_sync/generators/templates/create_enrollments.rb
265
+ - lib/canvas_sync/generators/templates/create_sections.rb
266
+ - lib/canvas_sync/generators/templates/create_terms.rb
267
+ - lib/canvas_sync/generators/templates/create_users.rb
268
+ - lib/canvas_sync/generators/templates/enrollment.rb
269
+ - lib/canvas_sync/generators/templates/section.rb
270
+ - lib/canvas_sync/generators/templates/term.rb
271
+ - lib/canvas_sync/generators/templates/user.rb
272
+ - lib/canvas_sync/importers/bulk_importer.rb
273
+ - lib/canvas_sync/jobs/application_job.rb
274
+ - lib/canvas_sync/jobs/report_checker.rb
275
+ - lib/canvas_sync/jobs/report_processor_job.rb
276
+ - lib/canvas_sync/jobs/report_starter.rb
277
+ - lib/canvas_sync/jobs/sync_provisioning_report_job.rb
278
+ - lib/canvas_sync/jobs/sync_terms_job.rb
279
+ - lib/canvas_sync/jobs/sync_users_job.rb
280
+ - lib/canvas_sync/processors/provisioning_report_processor.rb
281
+ - lib/canvas_sync/version.rb
282
+ - spec/canvas_sync/canvas_sync_spec.rb
283
+ - spec/canvas_sync/jobs/report_checker_spec.rb
284
+ - spec/canvas_sync/jobs/report_processor_job_spec.rb
285
+ - spec/canvas_sync/jobs/report_starter_spec.rb
286
+ - spec/canvas_sync/jobs/sync_provisioning_report_job_spec.rb
287
+ - spec/canvas_sync/jobs/sync_terms_job_spec.rb
288
+ - spec/canvas_sync/jobs/sync_users_job_spec.rb
289
+ - spec/canvas_sync/models/course_spec.rb
290
+ - spec/canvas_sync/models/enrollment_spec.rb
291
+ - spec/canvas_sync/models/section_spec.rb
292
+ - spec/canvas_sync/models/term_spec.rb
293
+ - spec/canvas_sync/models/user_spec.rb
294
+ - spec/canvas_sync/processors/provisioning_report_processor_spec.rb
295
+ - spec/dummy/README.rdoc
296
+ - spec/dummy/Rakefile
297
+ - spec/dummy/app/models/application_record.rb
298
+ - spec/dummy/app/models/course.rb
299
+ - spec/dummy/app/models/enrollment.rb
300
+ - spec/dummy/app/models/section.rb
301
+ - spec/dummy/app/models/term.rb
302
+ - spec/dummy/app/models/user.rb
303
+ - spec/dummy/bin/rails
304
+ - spec/dummy/config.ru
305
+ - spec/dummy/config/application.rb
306
+ - spec/dummy/config/boot.rb
307
+ - spec/dummy/config/database.yml
308
+ - spec/dummy/config/environment.rb
309
+ - spec/dummy/config/environments/development.rb
310
+ - spec/dummy/config/environments/test.rb
311
+ - spec/dummy/config/initializers/assets.rb
312
+ - spec/dummy/config/initializers/session_store.rb
313
+ - spec/dummy/config/initializers/wrap_parameters.rb
314
+ - spec/dummy/config/routes.rb
315
+ - spec/dummy/config/secrets.yml
316
+ - spec/dummy/db/development.sqlite3
317
+ - spec/dummy/db/migrate/20170831220702_create_courses.rb
318
+ - spec/dummy/db/migrate/20170831221129_create_users.rb
319
+ - spec/dummy/db/migrate/20170905192509_create_enrollments.rb
320
+ - spec/dummy/db/migrate/20170906193506_create_terms.rb
321
+ - spec/dummy/db/migrate/20170906203438_create_sections.rb
322
+ - spec/dummy/db/schema.rb
323
+ - spec/dummy/db/test.sqlite3
324
+ - spec/dummy/log/development.log
325
+ - spec/dummy/log/test.log
326
+ - spec/factories/course_factory.rb
327
+ - spec/factories/enrollment_factory.rb
328
+ - spec/factories/section_factory.rb
329
+ - spec/factories/term_factory.rb
330
+ - spec/factories/user_factory.rb
331
+ - spec/spec_helper.rb
332
+ - spec/support/fake_canvas.rb
333
+ - spec/support/fixtures/canvas_responses/terms.json
334
+ - spec/support/fixtures/reports/courses.csv
335
+ - spec/support/fixtures/reports/enrollments.csv
336
+ - spec/support/fixtures/reports/provisioning_csv
337
+ - spec/support/fixtures/reports/provisioning_csv_unzipped/courses.csv
338
+ - spec/support/fixtures/reports/provisioning_csv_unzipped/users.csv
339
+ - spec/support/fixtures/reports/sections.csv
340
+ - spec/support/fixtures/reports/users.csv
341
+ homepage: https://instructure.com
342
+ licenses: []
343
+ metadata: {}
344
+ post_install_message:
345
+ rdoc_options: []
346
+ require_paths:
347
+ - lib
348
+ required_ruby_version: !ruby/object:Gem::Requirement
349
+ requirements:
350
+ - - ">="
351
+ - !ruby/object:Gem::Version
352
+ version: '0'
353
+ required_rubygems_version: !ruby/object:Gem::Requirement
354
+ requirements:
355
+ - - ">="
356
+ - !ruby/object:Gem::Version
357
+ version: '0'
358
+ requirements: []
359
+ rubyforge_project:
360
+ rubygems_version: 2.6.13
361
+ signing_key:
362
+ specification_version: 4
363
+ summary: Gem for generating Canvas models and migrations and syncing data from Canvas
364
+ test_files:
365
+ - spec/canvas_sync/canvas_sync_spec.rb
366
+ - spec/canvas_sync/jobs/report_checker_spec.rb
367
+ - spec/canvas_sync/jobs/report_processor_job_spec.rb
368
+ - spec/canvas_sync/jobs/report_starter_spec.rb
369
+ - spec/canvas_sync/jobs/sync_provisioning_report_job_spec.rb
370
+ - spec/canvas_sync/jobs/sync_terms_job_spec.rb
371
+ - spec/canvas_sync/jobs/sync_users_job_spec.rb
372
+ - spec/canvas_sync/models/course_spec.rb
373
+ - spec/canvas_sync/models/enrollment_spec.rb
374
+ - spec/canvas_sync/models/section_spec.rb
375
+ - spec/canvas_sync/models/term_spec.rb
376
+ - spec/canvas_sync/models/user_spec.rb
377
+ - spec/canvas_sync/processors/provisioning_report_processor_spec.rb
378
+ - spec/dummy/README.rdoc
379
+ - spec/dummy/Rakefile
380
+ - spec/dummy/app/models/application_record.rb
381
+ - spec/dummy/app/models/course.rb
382
+ - spec/dummy/app/models/enrollment.rb
383
+ - spec/dummy/app/models/section.rb
384
+ - spec/dummy/app/models/term.rb
385
+ - spec/dummy/app/models/user.rb
386
+ - spec/dummy/bin/rails
387
+ - spec/dummy/config.ru
388
+ - spec/dummy/config/application.rb
389
+ - spec/dummy/config/boot.rb
390
+ - spec/dummy/config/database.yml
391
+ - spec/dummy/config/environment.rb
392
+ - spec/dummy/config/environments/development.rb
393
+ - spec/dummy/config/environments/test.rb
394
+ - spec/dummy/config/initializers/assets.rb
395
+ - spec/dummy/config/initializers/session_store.rb
396
+ - spec/dummy/config/initializers/wrap_parameters.rb
397
+ - spec/dummy/config/routes.rb
398
+ - spec/dummy/config/secrets.yml
399
+ - spec/dummy/db/development.sqlite3
400
+ - spec/dummy/db/migrate/20170831220702_create_courses.rb
401
+ - spec/dummy/db/migrate/20170831221129_create_users.rb
402
+ - spec/dummy/db/migrate/20170905192509_create_enrollments.rb
403
+ - spec/dummy/db/migrate/20170906193506_create_terms.rb
404
+ - spec/dummy/db/migrate/20170906203438_create_sections.rb
405
+ - spec/dummy/db/schema.rb
406
+ - spec/dummy/db/test.sqlite3
407
+ - spec/dummy/log/development.log
408
+ - spec/dummy/log/test.log
409
+ - spec/factories/course_factory.rb
410
+ - spec/factories/enrollment_factory.rb
411
+ - spec/factories/section_factory.rb
412
+ - spec/factories/term_factory.rb
413
+ - spec/factories/user_factory.rb
414
+ - spec/spec_helper.rb
415
+ - spec/support/fake_canvas.rb
416
+ - spec/support/fixtures/canvas_responses/terms.json
417
+ - spec/support/fixtures/reports/courses.csv
418
+ - spec/support/fixtures/reports/enrollments.csv
419
+ - spec/support/fixtures/reports/provisioning_csv
420
+ - spec/support/fixtures/reports/provisioning_csv_unzipped/courses.csv
421
+ - spec/support/fixtures/reports/provisioning_csv_unzipped/users.csv
422
+ - spec/support/fixtures/reports/sections.csv
423
+ - spec/support/fixtures/reports/users.csv