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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d405c67f71fecbd1df086e2b0534bb0f588d1b7dd55a78f4b39d263637e7cf97
4
- data.tar.gz: 3cf752d5d58c60786c1d5141bfc82eecb8301cc4a22e4f89fffa7422f0cf996e
3
+ metadata.gz: 9532f8c06afddd4d2cea538117a9a02c232e7b29531b3591772bf25e7840a337
4
+ data.tar.gz: c9cbc453cab9c3dab6cf98728d5c99ebbfec18dc259f6e1f4303b1dd17e1cd5c
5
5
  SHA512:
6
- metadata.gz: 230a54063ee47c72a5ad55b8e2ec3bd526cb9aad1679a0bdae837fbfa34e43b262b8296c27d40f68fbe0538ade5e38e834e178aea5733adf60bc3cacc5742da6
7
- data.tar.gz: f13cffc861dbb2295cedd2aa13e26b11310e6b48ee05ff7da0f4e98f76f5a98364af14be0d214904ba9403091acd669dff10d3df5db231510f78ba96e303d03e
6
+ metadata.gz: 5c3916a5add7dce60392bc306cbcabc4e59b1192b4891f85a6310a50a49ffe38061c11a4cee830d6dee02292c15c00df24ab82997ccd79780a6992ef1e2a88bb
7
+ data.tar.gz: 03ca112300f86fa5bc2db113cb52117fd0243c401c954835366e0ef940c7df891483313dfd0ab7438600a542ba6dc9fbf40ffffe47e827b46d698284e9c71168
data/lib/mumukit.rb CHANGED
@@ -47,6 +47,7 @@ Mumukit.configure_defaults do |config|
47
47
  config.command_time_limit = 4
48
48
  config.command_size_limit = 1024
49
49
  config.process_expectations_on_empty_content = false
50
+ config.run_test_hook_on_empty_test = false
50
51
  end
51
52
 
52
53
  require 'mumukit/content_type'
@@ -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.blank?
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
@@ -1,3 +1,3 @@
1
1
  module Mumukit
2
- VERSION = '2.22.0'
2
+ VERSION = '2.23.0'
3
3
  end
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.22.0
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-16 00:00:00.000000000 Z
11
+ date: 2018-04-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler