mumukit-bridge 3.5.0 → 3.5.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 +6 -6
- data/lib/mumukit/bridge/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7f0da5641e73e004830e601984d307dd2a3cef3942db91c575a7ebd0b9b0d1cf
|
4
|
+
data.tar.gz: 2f95f49d3dddf112c1a0f7569bcbb469b083b97265f688f85226ce81674f4ca8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e3f43cb1ccc89c8807b039557d81f1a04e0717831c1d800128a7e40f25573979499b312b0e66761a966525742671863b03e606162a6b9ab9b09b3f80e37a327
|
7
|
+
data.tar.gz: 6f45f0e107dbace2cb8fcc771b2bd00168621e5e8d368b231631aa5445f2eff99751e2f22634485db5fa64d9a7fb3e7f1bb80bdfc490c493090e0093e834eb9f
|
@@ -22,24 +22,24 @@ module Mumukit
|
|
22
22
|
# expectation_results: [{binding:string, inspection:string, result:symbol}],
|
23
23
|
# feedback: string}
|
24
24
|
def run_tests!(request)
|
25
|
-
|
25
|
+
with_server_response request, 'test' do |response|
|
26
26
|
response_type = ResponseType.for_response response
|
27
27
|
response_type.parse response
|
28
28
|
end
|
29
29
|
end
|
30
30
|
|
31
31
|
def run_query!(request)
|
32
|
-
|
32
|
+
with_server_response request, 'query' do |it|
|
33
33
|
{status: it['exit'].to_sym, result: it['out']}
|
34
34
|
end
|
35
35
|
end
|
36
36
|
|
37
37
|
def run_try!(request)
|
38
|
-
|
38
|
+
with_server_response request, 'try' do |it|
|
39
39
|
{
|
40
40
|
status: it['exit'].to_sym,
|
41
41
|
result: it['out'],
|
42
|
-
query_result: it['queryResult'].try do |it
|
42
|
+
query_result: it['queryResult'].try do |it|
|
43
43
|
{ status: it['status'].to_sym,
|
44
44
|
result: it['result'] }
|
45
45
|
end
|
@@ -82,11 +82,11 @@ module Mumukit
|
|
82
82
|
JSON.parse raw_get_to_server(:info, options.merge(content_type: :json))
|
83
83
|
end
|
84
84
|
|
85
|
-
def
|
85
|
+
def with_server_response(request, route, &action)
|
86
86
|
response = post_to_server(request, route)
|
87
87
|
action.call(response)
|
88
88
|
rescue Exception => e
|
89
|
-
{result: e.message, status: :
|
89
|
+
{result: e.message, status: :aborted}
|
90
90
|
end
|
91
91
|
|
92
92
|
def raw_get_to_server(route, options)
|
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.5.
|
4
|
+
version: 3.5.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: 2018-
|
11
|
+
date: 2018-03-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -115,7 +115,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
115
115
|
version: '0'
|
116
116
|
requirements: []
|
117
117
|
rubyforge_project:
|
118
|
-
rubygems_version: 2.7.
|
118
|
+
rubygems_version: 2.7.6
|
119
119
|
signing_key:
|
120
120
|
specification_version: 4
|
121
121
|
summary: Library for connecting to a Mumuki test runner
|