mumukit 2.33.1 → 2.34.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9beefd9e88deef1875e5ba15e634b0064ad895f0e5d198466c60b6e4f583a343
|
4
|
+
data.tar.gz: 92dd2f7e10a670859430c4a68f6a4e6fb1b6878f8c37dd55ecb5db809361740a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d1005af685f7b05bd81b3ff292aee75a816eb366f419cbb56dd572af877dac6f92477764ba2ab29cf8cc1f40d7e2d20f00a33651409c4798664114a10b29352e
|
7
|
+
data.tar.gz: aad024612d60dd94e3bdb2497b48579fd1641c0dea1364f256fa4c00d9ccf060dd6cf37db9c224d60265cc17f2dc9b9f70e90477dfb118fda2e73a8ae5bb7c67
|
data/lib/mumukit.rb
CHANGED
data/lib/mumukit/runtime/info.rb
CHANGED
@@ -19,6 +19,7 @@ module Mumukit::RuntimeInfo
|
|
19
19
|
stateful: Mumukit.config.stateful,
|
20
20
|
multifile: Mumukit.config.multifile,
|
21
21
|
preprocessor: Mumukit.config.preprocessor_enabled,
|
22
|
+
settings: Mumukit.config.settings,
|
22
23
|
|
23
24
|
sandboxed: any_hook_include?([:test, :query], Mumukit::Templates::WithIsolatedEnvironment),
|
24
25
|
structured: any_hook_include?([:test], Mumukit::Templates::WithStructuredResults) || Mumukit.config.structured
|
@@ -1,5 +1,3 @@
|
|
1
|
-
require 'mumukit/inspection'
|
2
|
-
|
3
1
|
module Mumukit
|
4
2
|
class Templates::ExpectationsHook < Mumukit::Hook
|
5
3
|
SOURCE_EXPECTATION_EVALUATORS = {
|
@@ -21,8 +19,8 @@ module Mumukit
|
|
21
19
|
private
|
22
20
|
|
23
21
|
def compile_expectations(request)
|
24
|
-
expectations = {ast: [], source: [], exceptions: []}
|
25
|
-
request[:expectations].each do |it|
|
22
|
+
expectations = {ast: [], source: [], exceptions: [], custom: request[:custom_expectations] }
|
23
|
+
request[:expectations].to_a.each do |it|
|
26
24
|
fill_expectations it.deep_symbolize_keys, expectations
|
27
25
|
end
|
28
26
|
expectations
|
@@ -40,7 +38,7 @@ module Mumukit
|
|
40
38
|
end
|
41
39
|
|
42
40
|
def compile_expectation(expectation)
|
43
|
-
|
41
|
+
Mulang::Expectation.parse(expectation).as_v2.to_h
|
44
42
|
end
|
45
43
|
|
46
44
|
def compile_source_expectation(expectation)
|
@@ -62,7 +60,7 @@ module Mumukit
|
|
62
60
|
end
|
63
61
|
|
64
62
|
def self.parse(expectation)
|
65
|
-
parsed =
|
63
|
+
parsed = Mulang::Expectation.parse(expectation)
|
66
64
|
evaluator = parse_evaluator(parsed.inspection)
|
67
65
|
new parsed, evaluator
|
68
66
|
end
|
@@ -18,6 +18,7 @@ module Mumukit
|
|
18
18
|
def compile_mulang_analysis(request, expectations)
|
19
19
|
mulang_code(request).analysis(
|
20
20
|
expectations: expectations[:ast],
|
21
|
+
customExpectations: expectations[:custom],
|
21
22
|
smellsSet: {
|
22
23
|
tag: 'AllSmells',
|
23
24
|
exclude: (expectations[:exceptions] + default_smell_exceptions)
|
data/lib/mumukit/version.rb
CHANGED
metadata
CHANGED
@@ -1,29 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumukit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.34.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: 2019-
|
11
|
+
date: 2019-09-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '1.7'
|
20
|
+
- - "<"
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '3'
|
20
23
|
type: :development
|
21
24
|
prerelease: false
|
22
25
|
version_requirements: !ruby/object:Gem::Requirement
|
23
26
|
requirements:
|
24
|
-
- - "
|
27
|
+
- - ">="
|
25
28
|
- !ruby/object:Gem::Version
|
26
29
|
version: '1.7'
|
30
|
+
- - "<"
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '3'
|
27
33
|
- !ruby/object:Gem::Dependency
|
28
34
|
name: rake
|
29
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -212,28 +218,14 @@ dependencies:
|
|
212
218
|
requirements:
|
213
219
|
- - "~>"
|
214
220
|
- !ruby/object:Gem::Version
|
215
|
-
version: '
|
216
|
-
type: :runtime
|
217
|
-
prerelease: false
|
218
|
-
version_requirements: !ruby/object:Gem::Requirement
|
219
|
-
requirements:
|
220
|
-
- - "~>"
|
221
|
-
- !ruby/object:Gem::Version
|
222
|
-
version: '4.0'
|
223
|
-
- !ruby/object:Gem::Dependency
|
224
|
-
name: mumukit-inspection
|
225
|
-
requirement: !ruby/object:Gem::Requirement
|
226
|
-
requirements:
|
227
|
-
- - "~>"
|
228
|
-
- !ruby/object:Gem::Version
|
229
|
-
version: '3.1'
|
221
|
+
version: '5.0'
|
230
222
|
type: :runtime
|
231
223
|
prerelease: false
|
232
224
|
version_requirements: !ruby/object:Gem::Requirement
|
233
225
|
requirements:
|
234
226
|
- - "~>"
|
235
227
|
- !ruby/object:Gem::Version
|
236
|
-
version: '
|
228
|
+
version: '5.0'
|
237
229
|
- !ruby/object:Gem::Dependency
|
238
230
|
name: mumukit-core
|
239
231
|
requirement: !ruby/object:Gem::Requirement
|
@@ -373,7 +365,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
373
365
|
- !ruby/object:Gem::Version
|
374
366
|
version: '0'
|
375
367
|
requirements: []
|
376
|
-
rubygems_version: 3.0.
|
368
|
+
rubygems_version: 3.0.6
|
377
369
|
signing_key:
|
378
370
|
specification_version: 4
|
379
371
|
summary: Mumuki Test Server Development Kit
|