mumukit-bridge 3.9.1 → 4.0.1
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 +0 -36
- data/lib/mumukit/bridge/version.rb +1 -1
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ccac864d8b79e76d68f46bc1cd2aa01669373d8a6968e55589ed3dfde7f994cd
|
4
|
+
data.tar.gz: 397cf74627c7c06521714d4b780091d8472156467f8bd042301fe1ca3aa2b262
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 594d5cf01ea684ba7aee0ccb06d390bedb1179625be3924716de887431efe91313bd14972b5fa38bb8d1eb4fdec67c7be80a88954a36df762f0807c4bd43ba0d
|
7
|
+
data.tar.gz: f3d2c90010fbfb8c71b5677046db388adf5e4ec44709ce482d572608bed34ad68722ae36f9e822748e978201097cdbf5b6b5117e97a64403977120b628119480
|
@@ -53,34 +53,6 @@ module Mumukit
|
|
53
53
|
end
|
54
54
|
end
|
55
55
|
|
56
|
-
def importable_info(headers={})
|
57
|
-
@language_json ||= info(headers).merge('url' => test_runner_url)
|
58
|
-
{
|
59
|
-
name: @language_json['name'],
|
60
|
-
comment_type: @language_json['comment_type'],
|
61
|
-
test_runner_url: @language_json['url'],
|
62
|
-
output_content_type: @language_json['output_content_type'],
|
63
|
-
prompt: (@language_json.dig('language', 'prompt') || 'ム') + ' ',
|
64
|
-
extension: @language_json.dig('language', 'extension'),
|
65
|
-
highlight_mode: @language_json.dig('language', 'ace_mode'),
|
66
|
-
visible_success_output: @language_json.dig('language', 'graphic').present?,
|
67
|
-
devicon: @language_json.dig('language', 'icon', 'name'),
|
68
|
-
triable: @language_json.dig('features', 'try').present?,
|
69
|
-
feedback: @language_json.dig('features', 'feedback').present?,
|
70
|
-
queriable: @language_json.dig('features', 'query').present?,
|
71
|
-
stateful_console: @language_json.dig('features', 'stateful').present?,
|
72
|
-
multifile: @language_json.dig('features', 'multifile').present?,
|
73
|
-
test_extension: @language_json.dig('test_framework', 'test_extension'),
|
74
|
-
test_template: @language_json.dig('test_framework', 'template'),
|
75
|
-
layout_js_urls: get_assets_for(:layout, 'js'),
|
76
|
-
layout_html_urls: get_assets_for(:layout, 'html'),
|
77
|
-
layout_css_urls: get_assets_for(:layout, 'css'),
|
78
|
-
editor_js_urls: get_assets_for(:editor, 'js'),
|
79
|
-
editor_html_urls: get_assets_for(:editor, 'html'),
|
80
|
-
editor_css_urls: get_assets_for(:editor, 'css')
|
81
|
-
}
|
82
|
-
end
|
83
|
-
|
84
56
|
def assets(path, headers={})
|
85
57
|
do_get "assets/#{path}", headers
|
86
58
|
end
|
@@ -114,14 +86,6 @@ module Mumukit
|
|
114
86
|
headers: build_headers(json_content_type(headers))).execute
|
115
87
|
end
|
116
88
|
|
117
|
-
def get_assets_for(kind, content_type)
|
118
|
-
absolutize(@language_json.dig("#{kind}_assets_urls", content_type) || [])
|
119
|
-
end
|
120
|
-
|
121
|
-
def absolutize(urls)
|
122
|
-
urls.map { |url| "#{test_runner_url}/#{url}"}
|
123
|
-
end
|
124
|
-
|
125
89
|
def build_headers(headers)
|
126
90
|
self.headers.merge(headers)
|
127
91
|
end
|
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:
|
4
|
+
version: 4.0.1
|
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-07-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -114,7 +114,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
114
|
- !ruby/object:Gem::Version
|
115
115
|
version: '0'
|
116
116
|
requirements: []
|
117
|
-
|
117
|
+
rubyforge_project:
|
118
|
+
rubygems_version: 2.7.7
|
118
119
|
signing_key:
|
119
120
|
specification_version: 4
|
120
121
|
summary: Library for connecting to a Mumuki test runner
|