mumuki-classroom 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (68) hide show
  1. checksums.yaml +7 -0
  2. data/LICENSE +661 -0
  3. data/README.md +371 -0
  4. data/Rakefile +29 -0
  5. data/lib/mumuki/classroom.rb +56 -0
  6. data/lib/mumuki/classroom/collection.rb +10 -0
  7. data/lib/mumuki/classroom/engine.rb +8 -0
  8. data/lib/mumuki/classroom/event.rb +4 -0
  9. data/lib/mumuki/classroom/event/user_changed.rb +54 -0
  10. data/lib/mumuki/classroom/locales/en.yml +3 -0
  11. data/lib/mumuki/classroom/locales/es-CL.yml +3 -0
  12. data/lib/mumuki/classroom/locales/es.yml +3 -0
  13. data/lib/mumuki/classroom/locales/pt.yml +3 -0
  14. data/lib/mumuki/classroom/models.rb +22 -0
  15. data/lib/mumuki/classroom/models/assignment.rb +148 -0
  16. data/lib/mumuki/classroom/models/concerns/course_member.rb +53 -0
  17. data/lib/mumuki/classroom/models/concerns/extensions.rb +90 -0
  18. data/lib/mumuki/classroom/models/concerns/with_failed_submission_reprocess.rb +74 -0
  19. data/lib/mumuki/classroom/models/concerns/with_submission_process.rb +148 -0
  20. data/lib/mumuki/classroom/models/document.rb +12 -0
  21. data/lib/mumuki/classroom/models/exercise.rb +7 -0
  22. data/lib/mumuki/classroom/models/failed_submission.rb +16 -0
  23. data/lib/mumuki/classroom/models/follower.rb +19 -0
  24. data/lib/mumuki/classroom/models/guide_progress.rb +57 -0
  25. data/lib/mumuki/classroom/models/last_assignment.rb +7 -0
  26. data/lib/mumuki/classroom/models/message.rb +32 -0
  27. data/lib/mumuki/classroom/models/notification.rb +52 -0
  28. data/lib/mumuki/classroom/models/reporting.rb +24 -0
  29. data/lib/mumuki/classroom/models/searching.rb +60 -0
  30. data/lib/mumuki/classroom/models/searching/guide_progress.rb +90 -0
  31. data/lib/mumuki/classroom/models/sorting.rb +92 -0
  32. data/lib/mumuki/classroom/models/sorting/guide_progress.rb +147 -0
  33. data/lib/mumuki/classroom/models/sorting/student.rb +45 -0
  34. data/lib/mumuki/classroom/models/sorting/total_stats_sort_by.rb +5 -0
  35. data/lib/mumuki/classroom/models/student.rb +88 -0
  36. data/lib/mumuki/classroom/models/submission.rb +62 -0
  37. data/lib/mumuki/classroom/models/suggestion.rb +35 -0
  38. data/lib/mumuki/classroom/models/teacher.rb +3 -0
  39. data/lib/mumuki/classroom/permissions_diff.rb +83 -0
  40. data/lib/mumuki/classroom/reports.rb +4 -0
  41. data/lib/mumuki/classroom/reports/formats.rb +35 -0
  42. data/lib/mumuki/classroom/sinatra.rb +301 -0
  43. data/lib/mumuki/classroom/sinatra/courses.rb +157 -0
  44. data/lib/mumuki/classroom/sinatra/errors.rb +13 -0
  45. data/lib/mumuki/classroom/sinatra/exams.rb +71 -0
  46. data/lib/mumuki/classroom/sinatra/followers.rb +29 -0
  47. data/lib/mumuki/classroom/sinatra/guides.rb +79 -0
  48. data/lib/mumuki/classroom/sinatra/manual_evaluation.rb +16 -0
  49. data/lib/mumuki/classroom/sinatra/massive.rb +206 -0
  50. data/lib/mumuki/classroom/sinatra/messages.rb +52 -0
  51. data/lib/mumuki/classroom/sinatra/notifications.rb +29 -0
  52. data/lib/mumuki/classroom/sinatra/organization.rb +7 -0
  53. data/lib/mumuki/classroom/sinatra/pagination.rb +13 -0
  54. data/lib/mumuki/classroom/sinatra/permissions.rb +9 -0
  55. data/lib/mumuki/classroom/sinatra/ping.rb +7 -0
  56. data/lib/mumuki/classroom/sinatra/searching.rb +27 -0
  57. data/lib/mumuki/classroom/sinatra/students.rb +111 -0
  58. data/lib/mumuki/classroom/sinatra/suggestions.rb +17 -0
  59. data/lib/mumuki/classroom/sinatra/teachers.rb +14 -0
  60. data/lib/mumuki/classroom/version.rb +5 -0
  61. data/lib/mumuki/profile.rb +17 -0
  62. data/lib/mumuki/views/threads.html.erb +43 -0
  63. data/lib/tasks/mumuki/messages.rake +20 -0
  64. data/lib/tasks/mumuki/resubmissions.rake +15 -0
  65. data/lib/tasks/mumuki/students.rake +31 -0
  66. data/lib/tasks/mumuki/submissions.rake +17 -0
  67. data/lib/tasks/mumuki/user_permissions.rake +17 -0
  68. metadata +291 -0
@@ -0,0 +1,17 @@
1
+ namespace :classroom do
2
+ namespace :user_permissions do
3
+ task listen: :environment do
4
+ Mumukit::Nuntius::Logger.info 'Listening to student user_permissions_changed'
5
+
6
+ Mumukit::Nuntius::Consumer.negligent_start! 'user-permissions-changed' do |body|
7
+ begin
8
+ user = body[:user]
9
+ Mumukit::Nuntius::Logger.info "Processing user #{user}"
10
+ Mumuki::Classroom::Event::UserChanged.execute!(user)
11
+ rescue => e
12
+ Mumukit::Nuntius::Logger.warn "Mumuki::Classroom::UserChanged failed #{e}. body was: #{body}"
13
+ end
14
+ end
15
+ end
16
+ end
17
+ end
metadata ADDED
@@ -0,0 +1,291 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: mumuki-classroom
3
+ version: !ruby/object:Gem::Version
4
+ version: 8.0.0
5
+ platform: ruby
6
+ authors:
7
+ - Franco Bulgarelli
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+ date: 2020-11-20 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rails
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: 5.1.6
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: 5.1.6
27
+ - !ruby/object:Gem::Dependency
28
+ name: sinatra
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - "~>"
32
+ - !ruby/object:Gem::Version
33
+ version: '2.0'
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - "~>"
39
+ - !ruby/object:Gem::Version
40
+ version: '2.0'
41
+ - !ruby/object:Gem::Dependency
42
+ name: sinatra-contrib
43
+ requirement: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - "~>"
46
+ - !ruby/object:Gem::Version
47
+ version: '2.0'
48
+ type: :runtime
49
+ prerelease: false
50
+ version_requirements: !ruby/object:Gem::Requirement
51
+ requirements:
52
+ - - "~>"
53
+ - !ruby/object:Gem::Version
54
+ version: '2.0'
55
+ - !ruby/object:Gem::Dependency
56
+ name: sinatra-cross_origin
57
+ requirement: !ruby/object:Gem::Requirement
58
+ requirements:
59
+ - - "~>"
60
+ - !ruby/object:Gem::Version
61
+ version: 0.3.1
62
+ type: :runtime
63
+ prerelease: false
64
+ version_requirements: !ruby/object:Gem::Requirement
65
+ requirements:
66
+ - - "~>"
67
+ - !ruby/object:Gem::Version
68
+ version: 0.3.1
69
+ - !ruby/object:Gem::Dependency
70
+ name: sprockets
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - "~>"
74
+ - !ruby/object:Gem::Version
75
+ version: '3.7'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - "~>"
81
+ - !ruby/object:Gem::Version
82
+ version: '3.7'
83
+ - !ruby/object:Gem::Dependency
84
+ name: mumuki-domain
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - "~>"
88
+ - !ruby/object:Gem::Version
89
+ version: 8.0.0
90
+ type: :runtime
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - "~>"
95
+ - !ruby/object:Gem::Version
96
+ version: 8.0.0
97
+ - !ruby/object:Gem::Dependency
98
+ name: mumukit-login
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '7.0'
104
+ type: :runtime
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '7.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: mumukit-nuntius
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '6.5'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '6.5'
125
+ - !ruby/object:Gem::Dependency
126
+ name: mumukit-inspection
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - "~>"
130
+ - !ruby/object:Gem::Version
131
+ version: '5.0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - "~>"
137
+ - !ruby/object:Gem::Version
138
+ version: '5.0'
139
+ - !ruby/object:Gem::Dependency
140
+ name: mongoid
141
+ requirement: !ruby/object:Gem::Requirement
142
+ requirements:
143
+ - - "~>"
144
+ - !ruby/object:Gem::Version
145
+ version: '7.0'
146
+ type: :runtime
147
+ prerelease: false
148
+ version_requirements: !ruby/object:Gem::Requirement
149
+ requirements:
150
+ - - "~>"
151
+ - !ruby/object:Gem::Version
152
+ version: '7.0'
153
+ - !ruby/object:Gem::Dependency
154
+ name: bson_ext
155
+ requirement: !ruby/object:Gem::Requirement
156
+ requirements:
157
+ - - '='
158
+ - !ruby/object:Gem::Version
159
+ version: 1.5.1
160
+ type: :runtime
161
+ prerelease: false
162
+ version_requirements: !ruby/object:Gem::Requirement
163
+ requirements:
164
+ - - '='
165
+ - !ruby/object:Gem::Version
166
+ version: 1.5.1
167
+ - !ruby/object:Gem::Dependency
168
+ name: rack
169
+ requirement: !ruby/object:Gem::Requirement
170
+ requirements:
171
+ - - "~>"
172
+ - !ruby/object:Gem::Version
173
+ version: '2.0'
174
+ type: :runtime
175
+ prerelease: false
176
+ version_requirements: !ruby/object:Gem::Requirement
177
+ requirements:
178
+ - - "~>"
179
+ - !ruby/object:Gem::Version
180
+ version: '2.0'
181
+ - !ruby/object:Gem::Dependency
182
+ name: pg
183
+ requirement: !ruby/object:Gem::Requirement
184
+ requirements:
185
+ - - "~>"
186
+ - !ruby/object:Gem::Version
187
+ version: 0.18.0
188
+ type: :development
189
+ prerelease: false
190
+ version_requirements: !ruby/object:Gem::Requirement
191
+ requirements:
192
+ - - "~>"
193
+ - !ruby/object:Gem::Version
194
+ version: 0.18.0
195
+ description: Teacher tools for Mumuki
196
+ email:
197
+ - franco@mumuki.org
198
+ executables: []
199
+ extensions: []
200
+ extra_rdoc_files: []
201
+ files:
202
+ - LICENSE
203
+ - README.md
204
+ - Rakefile
205
+ - lib/mumuki/classroom.rb
206
+ - lib/mumuki/classroom/collection.rb
207
+ - lib/mumuki/classroom/engine.rb
208
+ - lib/mumuki/classroom/event.rb
209
+ - lib/mumuki/classroom/event/user_changed.rb
210
+ - lib/mumuki/classroom/locales/en.yml
211
+ - lib/mumuki/classroom/locales/es-CL.yml
212
+ - lib/mumuki/classroom/locales/es.yml
213
+ - lib/mumuki/classroom/locales/pt.yml
214
+ - lib/mumuki/classroom/models.rb
215
+ - lib/mumuki/classroom/models/assignment.rb
216
+ - lib/mumuki/classroom/models/concerns/course_member.rb
217
+ - lib/mumuki/classroom/models/concerns/extensions.rb
218
+ - lib/mumuki/classroom/models/concerns/with_failed_submission_reprocess.rb
219
+ - lib/mumuki/classroom/models/concerns/with_submission_process.rb
220
+ - lib/mumuki/classroom/models/document.rb
221
+ - lib/mumuki/classroom/models/exercise.rb
222
+ - lib/mumuki/classroom/models/failed_submission.rb
223
+ - lib/mumuki/classroom/models/follower.rb
224
+ - lib/mumuki/classroom/models/guide_progress.rb
225
+ - lib/mumuki/classroom/models/last_assignment.rb
226
+ - lib/mumuki/classroom/models/message.rb
227
+ - lib/mumuki/classroom/models/notification.rb
228
+ - lib/mumuki/classroom/models/reporting.rb
229
+ - lib/mumuki/classroom/models/searching.rb
230
+ - lib/mumuki/classroom/models/searching/guide_progress.rb
231
+ - lib/mumuki/classroom/models/sorting.rb
232
+ - lib/mumuki/classroom/models/sorting/guide_progress.rb
233
+ - lib/mumuki/classroom/models/sorting/student.rb
234
+ - lib/mumuki/classroom/models/sorting/total_stats_sort_by.rb
235
+ - lib/mumuki/classroom/models/student.rb
236
+ - lib/mumuki/classroom/models/submission.rb
237
+ - lib/mumuki/classroom/models/suggestion.rb
238
+ - lib/mumuki/classroom/models/teacher.rb
239
+ - lib/mumuki/classroom/permissions_diff.rb
240
+ - lib/mumuki/classroom/reports.rb
241
+ - lib/mumuki/classroom/reports/formats.rb
242
+ - lib/mumuki/classroom/sinatra.rb
243
+ - lib/mumuki/classroom/sinatra/courses.rb
244
+ - lib/mumuki/classroom/sinatra/errors.rb
245
+ - lib/mumuki/classroom/sinatra/exams.rb
246
+ - lib/mumuki/classroom/sinatra/followers.rb
247
+ - lib/mumuki/classroom/sinatra/guides.rb
248
+ - lib/mumuki/classroom/sinatra/manual_evaluation.rb
249
+ - lib/mumuki/classroom/sinatra/massive.rb
250
+ - lib/mumuki/classroom/sinatra/messages.rb
251
+ - lib/mumuki/classroom/sinatra/notifications.rb
252
+ - lib/mumuki/classroom/sinatra/organization.rb
253
+ - lib/mumuki/classroom/sinatra/pagination.rb
254
+ - lib/mumuki/classroom/sinatra/permissions.rb
255
+ - lib/mumuki/classroom/sinatra/ping.rb
256
+ - lib/mumuki/classroom/sinatra/searching.rb
257
+ - lib/mumuki/classroom/sinatra/students.rb
258
+ - lib/mumuki/classroom/sinatra/suggestions.rb
259
+ - lib/mumuki/classroom/sinatra/teachers.rb
260
+ - lib/mumuki/classroom/version.rb
261
+ - lib/mumuki/profile.rb
262
+ - lib/mumuki/views/threads.html.erb
263
+ - lib/tasks/mumuki/messages.rake
264
+ - lib/tasks/mumuki/resubmissions.rake
265
+ - lib/tasks/mumuki/students.rake
266
+ - lib/tasks/mumuki/submissions.rake
267
+ - lib/tasks/mumuki/user_permissions.rake
268
+ homepage: https://mumuki.org
269
+ licenses:
270
+ - AGPL-3.0
271
+ metadata: {}
272
+ post_install_message:
273
+ rdoc_options: []
274
+ require_paths:
275
+ - lib
276
+ required_ruby_version: !ruby/object:Gem::Requirement
277
+ requirements:
278
+ - - ">="
279
+ - !ruby/object:Gem::Version
280
+ version: '0'
281
+ required_rubygems_version: !ruby/object:Gem::Requirement
282
+ requirements:
283
+ - - ">="
284
+ - !ruby/object:Gem::Version
285
+ version: '0'
286
+ requirements: []
287
+ rubygems_version: 3.1.2
288
+ signing_key:
289
+ specification_version: 4
290
+ summary: Teacher tools for Mumuki
291
+ test_files: []