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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 802756c8ae75e39cc9aea4289274ae28003070861e78a32879c73207c69fb5cb
4
- data.tar.gz: 6de061ff1f2dd184f24a0da0b0ceea5e02e5352e97f292fefb9722bc6ad8198e
3
+ metadata.gz: ccac864d8b79e76d68f46bc1cd2aa01669373d8a6968e55589ed3dfde7f994cd
4
+ data.tar.gz: 397cf74627c7c06521714d4b780091d8472156467f8bd042301fe1ca3aa2b262
5
5
  SHA512:
6
- metadata.gz: db5815f15f5d4d23df36d9b9060e85a9d3ae12f8ba4fe52610dfe7fd8f075f285ea379cc1c009c037b5c8ec0303fbb26c6cf47148b70286dc07584572cb59120
7
- data.tar.gz: 5c278c794a709b104c9b3bcec659f7579825269f9ddb1c6728f971847b09e5971b27e90d6e83a55afa394d19174336777170fd1800ecb222bdc7aea6c4e0854c
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
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Bridge
3
- VERSION = '3.9.1'
3
+ VERSION = '4.0.1'
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.9.1
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-05-29 00:00:00.000000000 Z
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
- rubygems_version: 3.0.3
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