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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 9f05e53379537fddc6c7a1f8466c93d0cc620eb3f480f1f3611dc99588d65b96
4
- data.tar.gz: f999445f1581e5d8767897c1692bc2e3c601c214e262a72f37fc1ac7d858a358
3
+ metadata.gz: 7f0da5641e73e004830e601984d307dd2a3cef3942db91c575a7ebd0b9b0d1cf
4
+ data.tar.gz: 2f95f49d3dddf112c1a0f7569bcbb469b083b97265f688f85226ce81674f4ca8
5
5
  SHA512:
6
- metadata.gz: d05d145fbf1e48ad34f816f150e9e5f00250e67750e5b470a41f96eca6453c3f397df53a53728071557dc16b5bf4ad7e1b32c7bfe46e54cd5e5a9e232b458022
7
- data.tar.gz: 204bb4441d6fe5935e6aec79153aa5b89b9385974970352b2b840b42869d2de975996b3620925e90fd1cf2e32ba7e29b0f114ade6deb6199e350a595fdf925e5
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
- with_sever_response request, 'test' do |response|
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
- with_sever_response request, 'query' do |it|
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
- with_sever_response request, 'try' do |it|
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 with_sever_response(request, route, &action)
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: :errored}
89
+ {result: e.message, status: :aborted}
90
90
  end
91
91
 
92
92
  def raw_get_to_server(route, options)
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Bridge
3
- VERSION = '3.5.0'
3
+ VERSION = '3.5.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.5.0
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-01-31 00:00:00.000000000 Z
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.4
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