mumukit 2.22.0 → 2.23.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mumukit.rb +1 -0
- data/lib/mumukit/server/test_server.rb +5 -1
- data/lib/mumukit/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9532f8c06afddd4d2cea538117a9a02c232e7b29531b3591772bf25e7840a337
|
4
|
+
data.tar.gz: c9cbc453cab9c3dab6cf98728d5c99ebbfec18dc259f6e1f4303b1dd17e1cd5c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5c3916a5add7dce60392bc306cbcabc4e59b1192b4891f85a6310a50a49ffe38061c11a4cee830d6dee02292c15c00df24ab82997ccd79780a6992ef1e2a88bb
|
7
|
+
data.tar.gz: 03ca112300f86fa5bc2db113cb52117fd0243c401c954835366e0ef940c7df891483313dfd0ab7438600a542ba6dc9fbf40ffffe47e827b46d698284e9c71168
|
data/lib/mumukit.rb
CHANGED
@@ -58,7 +58,7 @@ class Mumukit::Server::TestServer
|
|
58
58
|
end
|
59
59
|
|
60
60
|
def run_tests!(request)
|
61
|
-
return ['', :passed] if request.test
|
61
|
+
return ['', :passed] if should_skip_tests?(request.test)
|
62
62
|
|
63
63
|
compile_and_run runtime.test_hook, request
|
64
64
|
end
|
@@ -102,6 +102,10 @@ class Mumukit::Server::TestServer
|
|
102
102
|
request.expectations.nil? || (request.content.nil? && !Mumukit.config.process_expectations_on_empty_content)
|
103
103
|
end
|
104
104
|
|
105
|
+
def should_skip_tests?(tests)
|
106
|
+
tests.blank? && !Mumukit.config.run_test_hook_on_empty_test
|
107
|
+
end
|
108
|
+
|
105
109
|
def respond_to(request)
|
106
110
|
yield preprocess request.tap { |r| validate_request! r }
|
107
111
|
rescue Mumukit::RequestValidationError => e
|
data/lib/mumukit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumukit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.23.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: 2018-04-
|
11
|
+
date: 2018-04-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|