mumuki-java-runner 1.7.0 → 1.8.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/feedback_hook.rb +2 -4
- data/lib/test_hook.rb +7 -1
- data/lib/version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 51675589e9a0a85009d158357980e82c189e04567c7e379ee17fa216db3fae55
|
4
|
+
data.tar.gz: a6c239c501f0f503d5c135d2a3e84ca74afb932b1f8130cbb183ddcf1c3295bd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f216944140cc560263a35800884320f58411f6a533454292201aec0a87fb1c3b7b8c9d962627ad186bf47e0a07cb64d5193025ef93f9c5ad549c30c5f1dd332
|
7
|
+
data.tar.gz: 1b83053ffa210e7121607dde61ef2fd7e2ad850dc701ebc4a520cd5b7ecd488ea050e7614b5d64de504e01dc62b53d49543bb1fd072576b76087d5452af75444
|
data/lib/feedback_hook.rb
CHANGED
@@ -133,9 +133,7 @@ class JavaFeedbackHook < Mumukit::Hook
|
|
133
133
|
symbol_type, _ = parse_symbol symbol
|
134
134
|
return '' if symbol_type == 'class'
|
135
135
|
|
136
|
-
' ' + I18n.t(:at_location,
|
137
|
-
location: localize_symbol(location)
|
138
|
-
})
|
136
|
+
' ' + I18n.t(:at_location, location: localize_symbol(location))
|
139
137
|
end
|
140
138
|
|
141
139
|
def localize_symbol(symbol)
|
@@ -143,7 +141,7 @@ class JavaFeedbackHook < Mumukit::Hook
|
|
143
141
|
i18n_key = "symbol_#{symbol_type}"
|
144
142
|
return "`#{symbol}`" unless I18n.exists? i18n_key
|
145
143
|
|
146
|
-
I18n.t(i18n_key,
|
144
|
+
I18n.t(i18n_key, name: name) + localize_of_type(type)
|
147
145
|
end
|
148
146
|
|
149
147
|
def localize_of_type(type)
|
data/lib/test_hook.rb
CHANGED
@@ -17,7 +17,13 @@ class JavaTestHook < Mumukit::Templates::MultiFileHook
|
|
17
17
|
end
|
18
18
|
|
19
19
|
def transform(examples)
|
20
|
-
examples.map
|
20
|
+
examples.map do |e|
|
21
|
+
[transform_test_title(e[0]), e[1].to_sym, e[2].try {|result| Mumukit::ContentType::Markdown.code result}]
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def transform_test_title(test_name)
|
26
|
+
test_name.gsub('_', ' ')
|
21
27
|
end
|
22
28
|
|
23
29
|
def post_process_file(file, result, status)
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,27 +1,27 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumuki-java-runner
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.8.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:
|
11
|
+
date: 2023-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mumukit
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '2.29'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '2.29'
|
27
27
|
- !ruby/object:Gem::Dependency
|
@@ -30,28 +30,28 @@ dependencies:
|
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '2.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '2.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
42
|
name: rake
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '
|
47
|
+
version: '13.0'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '
|
54
|
+
version: '13.0'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: rspec
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -121,14 +121,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
121
121
|
requirements:
|
122
122
|
- - ">="
|
123
123
|
- !ruby/object:Gem::Version
|
124
|
-
version: '0'
|
124
|
+
version: '3.0'
|
125
125
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
126
126
|
requirements:
|
127
127
|
- - ">="
|
128
128
|
- !ruby/object:Gem::Version
|
129
129
|
version: '0'
|
130
130
|
requirements: []
|
131
|
-
rubygems_version: 3.
|
131
|
+
rubygems_version: 3.4.10
|
132
132
|
signing_key:
|
133
133
|
specification_version: 4
|
134
134
|
summary: Java Runner for Mumuki
|