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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 04758abd4f9c285f632d3bbcc2bb8c834133e70e
4
- data.tar.gz: a25b40250ef9b7b9db72f00379d0028cb0f88f9d
3
+ metadata.gz: a89ec6a51d5f14fe6935b3d3e9a9a6c64c01da55
4
+ data.tar.gz: 9780cd4ce2ca540d3a33195d6e7187925e5a262a
5
5
  SHA512:
6
- metadata.gz: f7f2b0e2c8f5be4ec7dfa1eadda90c4fc9e4f9f420f56678835401a3725460bc44094aa1032a86fee61940f7b7fdf8bd698fcda45afa2bde20001636414931fc
7
- data.tar.gz: 6130f3b67995a6927579bab0a8dbad065b9ec22eea44cc2f0215db00ae6ee580d57ca642cde3b22f6f9a21e969bfbde93e7895eabae6e77eba80a5561c9aaa82
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",
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Bridge
3
- VERSION = '3.1.0'
3
+ VERSION = '3.2.0'
4
4
  end
5
5
  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: 3.1.0
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-10 00:00:00.000000000 Z
11
+ date: 2017-10-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler