mumuki-laboratory 7.12.1 → 8.0.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e025a36f6aa947e6a39b8372e2a0f257d473143a9c5bef32575885fcf375312b
4
- data.tar.gz: 81428a5522e48781ed29cde5b8f2c219f3388a8d36e1ae466f91ee412e69b246
3
+ metadata.gz: 6c5e8b0b9d50cec890d396b4d9fdc32191fb2083adb4b2519784051c497e7900
4
+ data.tar.gz: 0fa8577f8f65a8b3565980ee8678da46d9514f7d49cd4b4044cc07a6605c4271
5
5
  SHA512:
6
- metadata.gz: 374aec02893b3e31880b6bb3bbaf1031e0c2b567ee1b25b8d03bb7a30bda810aa72f5ff9974d70cab6637cede23a8e734e95ec5e9a1357d14772300e64a0fc6f
7
- data.tar.gz: 70637e35aa57f98661f78f787a15e181ed4737d4b1d3080adcf06e90f4564e5cec9b642055106cccf6ae29fbaa90b1695367c7ac424c89b225166f80ab007557
6
+ metadata.gz: 95639b3675a795883b05ca19c746438cbfbfd6bba423561f9b8c17aefde40fad23495a9a242bbcc0274cb5b1116d5335c968aeea60ddbe298865210b1727aadd
7
+ data.tar.gz: 4b0032d3733982144a681d8728cc193182aa989022b7af3b9ae736552079eea001a1e484f680a7a75d3fe62e4f53c6cd48569493cd154c41f036b86e3c7afd7f
@@ -5,7 +5,6 @@ module Api
5
5
 
6
6
  def create
7
7
  @course.save!
8
- @course.notify!
9
8
  render json: @course
10
9
  end
11
10
 
@@ -23,4 +22,4 @@ module Api
23
22
  @course.slug
24
23
  end
25
24
  end
26
- end
25
+ end
@@ -14,13 +14,12 @@ module Api
14
14
  end
15
15
 
16
16
  def create
17
- @organization.save_and_notify!
17
+ @organization.save!
18
18
  render json: @organization.to_resource_h
19
19
  end
20
20
 
21
21
  def update
22
- @organization.update_and_notify! organization_params
23
-
22
+ @organization.update! organization_params
24
23
  render json: @organization.to_resource_h
25
24
  end
26
25
  end
@@ -4,14 +4,12 @@ module Api
4
4
  before_action :authorize_janitor!
5
5
 
6
6
  def create
7
- @user.save!
8
- @user.notify!
7
+ @user.save_and_notify!
9
8
  render json: @user.to_resource_h
10
9
  end
11
10
 
12
11
  def update
13
- @user.update! user_params.except([:email, :permissions, :uid])
14
- @user.notify!
12
+ @user.update_and_notify! user_params.except([:email, :permissions, :uid])
15
13
  render json: @user.to_resource_h
16
14
  end
17
15
  end
@@ -15,8 +15,7 @@ class InvitationsController < ApplicationController
15
15
 
16
16
  def join
17
17
  current_user.accept_invitation! @invitation
18
- current_user.update! user_params
19
- current_user.notify!
18
+ current_user.update_and_notify! user_params
20
19
  redirect_to_organization!
21
20
  end
22
21
 
@@ -1,29 +1,5 @@
1
1
  Mumukit::Nuntius::EventConsumer.handle do
2
2
 
3
- # Emitted by user registration and modification in classroom
4
- event 'UserChanged' do |payload|
5
- User.import_from_resource_h! payload.deep_symbolize_keys[:user]
6
- end
7
-
8
- # Emitted by course creation of courses in classroom
9
- event 'CourseChanged' do |payload|
10
- Course.import_from_resource_h! payload.deep_symbolize_keys[:course]
11
- end
12
-
13
- # Emitted by invitation creation in classroom
14
- event 'InvitationCreated' do |payload|
15
- Invitation.import_from_resource_h! payload.deep_symbolize_keys[:invitation]
16
- end
17
-
18
- # Emitted by exam creation and modification in classroom
19
- event 'UpsertExam' do |body|
20
- Exam.import_from_resource_h! body
21
- end
22
-
23
- event 'UpsertExamStudents' do |body|
24
- Exam.upsert_students! body
25
- end
26
-
27
3
  # Emitted by assigment manual evaluation in classroom
28
4
  event 'AssignmentManuallyEvaluated' do |payload|
29
5
  Assignment.evaluate_manually! payload.deep_symbolize_keys[:assignment]
@@ -1,5 +1,5 @@
1
1
  module Mumuki
2
2
  module Laboratory
3
- VERSION = '7.12.1'
3
+ VERSION = '8.0.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-laboratory
3
3
  version: !ruby/object:Gem::Version
4
- version: 7.12.1
4
+ version: 8.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-11-17 00:00:00.000000000 Z
11
+ date: 2020-11-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: 7.12.0
33
+ version: 8.0.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: 7.12.0
40
+ version: 8.0.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: mumukit-bridge
43
43
  requirement: !ruby/object:Gem::Requirement