mumuki-domain 7.11.0 → 7.11.1

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: 17efbb5ea487285cf39720f0f3bcaab94641669a8f0ba83c78b8931c8ff949b2
4
- data.tar.gz: a6213b8093643e8112ffc85609fbae72c871c343f9374e17ba024ee1b9eb73c3
3
+ metadata.gz: f0741bd4448950db1d082d665156e2c44f6dffbdf5446b2bcdb292645b541e7f
4
+ data.tar.gz: b1fc47e3b26d394b05a74b3e79956c2f76374604f4cdce281c72590f3d11190c
5
5
  SHA512:
6
- metadata.gz: 821da987d9bc224d803554e8f44f54c200f5dcc9fd38ad90a793e5fb640ad946cf059276a534d8004a84386f2ef75fa448b666b4054049b48dbfb8e76bcce32e
7
- data.tar.gz: 4b92ea6a719cd03dc2b3c9e338cdb470b86a22f9764b0dff4a61f9a5173bee1d389de9d7396cf55b78cf23d63222ecaca6be6ccf14e2cc83d7de0cabc57a090b
6
+ metadata.gz: 4d3162dfff77952888d226889a51a88a12058634253dfd2a64154701c3be0322a0d374e050a94ccfca6ef614062c8f9ebc97817e75b5e19eeea14ef6d8aa5f82
7
+ data.tar.gz: 7361c7ed82288dcc41ec41294811130cfc4f9cd8ba38761087589001ed2d3ea13b0b64d4e1906918442b7f63aad2c13dada768a2a59fba5121285c9d6f10090d
@@ -27,8 +27,10 @@ class Mumuki::Domain::Submission::Base
27
27
  results
28
28
  end
29
29
 
30
- def dry_run!(assignment, evaluation)
31
- evaluation.evaluate! assignment, self
30
+ # By default evaluation strategy is ignored.
31
+ # Subclasses may override this behaviour
32
+ def dry_run!(assignment, _evaluation)
33
+ evaluate! assignment
32
34
  end
33
35
 
34
36
  def with_client_result(result)
@@ -1,6 +1,10 @@
1
1
  class Mumuki::Domain::Submission::Solution < Mumuki::Domain::Submission::PersistentSubmission
2
2
  attr_accessor :content
3
3
 
4
+ def dry_run!(assignment, evaluation)
5
+ evaluation.evaluate! assignment, self
6
+ end
7
+
4
8
  def try_evaluate!(assignment)
5
9
  assignment
6
10
  .run_tests!({client_result: client_result}.compact.merge(content: content))
@@ -1,5 +1,5 @@
1
1
  module Mumuki
2
2
  module Domain
3
- VERSION = '7.11.0'
3
+ VERSION = '7.11.1'
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: 7.11.0
4
+ version: 7.11.1
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: 2020-10-30 00:00:00.000000000 Z
11
+ date: 2020-11-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails