mumuki-domain 9.13.1 → 9.14.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: 7d31db11eea83cf47119ccf9d3e59f9664d58fb855d8d07ba28c8a3a82e21f43
4
- data.tar.gz: 58a403f7d731986fdcb6226b388a650c990a3ddbb38543a25a1edf6574389076
3
+ metadata.gz: 91e234afff822bf8ff746f174c941942d6a5d90d2b285e1613f4a739f13e7df6
4
+ data.tar.gz: d14adec7ec240db3d6aeff97d2ea7c05cf6dd72134a0118a5a2141c8d97e8215
5
5
  SHA512:
6
- metadata.gz: 4527364cb58249d910cc3d89452638bf4447a0fb538da1291abbd89df0b0621785d473a5e61d25a35bf2278271506ae1e8ced880ab73bd2a9c2fd232def15d7b
7
- data.tar.gz: 21077fb1b6576f433ebce3e9d3b24ad6466498454dee37ece7bfa650625cea3ea3ee12e7796ed4e26f4c96beaa44ec7d7c3bf031f837940fea9637b4a5ec25ec
6
+ metadata.gz: 916afc62518c9ad05a8bd182f56f13b926584652bdc45ee11d267114cf1207b35bd267cccab98d3dffe0df8da200f44937732d8173677869794fb0ea3fa7aaf4
7
+ data.tar.gz: a0c2e513345ace615a0532c0f9443cc236f33ec1a17aa5177212162a1b1387353d5167f48641ecd2051e5e1f71b651bd454125976615882127a2ba6dd876d4bf
@@ -123,7 +123,7 @@ class Assignment < Progress
123
123
  end
124
124
 
125
125
  def content=(content)
126
- if exercise.solvable?
126
+ if content.present? && exercise.solvable?
127
127
  self.solution = exercise.single_choice? ? exercise.choice_index_for(content) : content
128
128
  end
129
129
  end
@@ -76,6 +76,14 @@ class ExamRegistration < ApplicationRecord
76
76
  authorization_criterion.meets_criterion?(user, organization)
77
77
  end
78
78
 
79
+ def multiple_options?
80
+ exams.count > 1
81
+ end
82
+
83
+ def ended?
84
+ end_time.past?
85
+ end
86
+
79
87
  private
80
88
 
81
89
  def notify_registree!(registree)
@@ -1,5 +1,5 @@
1
1
  module Mumuki
2
2
  module Domain
3
- VERSION = '9.13.1'
3
+ VERSION = '9.14.0'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mumuki-domain
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.13.1
4
+ version: 9.14.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Franco Leonardo Bulgarelli
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-08-26 00:00:00.000000000 Z
11
+ date: 2021-09-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails