mumukit-bridge 3.1.0 → 3.2.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/bridge/runner.rb +20 -0
- data/lib/mumukit/bridge/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a89ec6a51d5f14fe6935b3d3e9a9a6c64c01da55
|
4
|
+
data.tar.gz: 9780cd4ce2ca540d3a33195d6e7187925e5a262a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7364305f6b02a66496c3e3f4fd98e7fafff9c6311bb932a2a22a892ee685b62ec5fadbbb9411cac4cd99b7b8a8fce3ecdbc7d6dcda1ec53e635b5aae67146afe
|
7
|
+
data.tar.gz: fef44c3f31d9b643f4faabd39865f66564c8b5f74a14cf3e22380a0a08785116d3d8de5bb4be2460007d82923d07a2d98e2a2d0b5ef987dd46f438477378ba94
|
@@ -46,6 +46,26 @@ module Mumukit
|
|
46
46
|
end
|
47
47
|
end
|
48
48
|
|
49
|
+
def importable_info
|
50
|
+
@language_json ||= info.merge('url' => test_runner_url)
|
51
|
+
{
|
52
|
+
name: @language_json['name'],
|
53
|
+
comment_type: @language_json['comment_type'],
|
54
|
+
test_runner_url: @language_json['url'],
|
55
|
+
output_content_type: @language_json['output_content_type'],
|
56
|
+
prompt: (@language_json.dig('language', 'prompt') || 'ム') + ' ',
|
57
|
+
extension: @language_json.dig('language', 'extension'),
|
58
|
+
highlight_mode: @language_json.dig('language', 'ace_mode'),
|
59
|
+
visible_success_output: @language_json.dig('language', 'graphic').present?,
|
60
|
+
devicon: @language_json.dig('language', 'icon', 'name'),
|
61
|
+
triable: @language_json.dig('features', 'try').present?,
|
62
|
+
feedback: @language_json.dig('features', 'feedback').present?,
|
63
|
+
queriable: @language_json.dig('features', 'query').present?,
|
64
|
+
stateful_console: @language_json.dig('features', 'stateful').present?,
|
65
|
+
test_extension: @language_json.dig('test_framework', 'test_extension')
|
66
|
+
}
|
67
|
+
end
|
68
|
+
|
49
69
|
def info
|
50
70
|
JSON.parse RestClient.get(
|
51
71
|
"#{test_runner_url}/info",
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mumukit-bridge
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.2.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: 2017-10-
|
11
|
+
date: 2017-10-24 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|