mumukit-bridge 3.0.0 → 3.1.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: 2d16cf9c5a2c35121bb97bbb9041fc83a9d09f14
4
- data.tar.gz: 64e53425714fcad4288c2184074d04f6e67f777e
3
+ metadata.gz: 04758abd4f9c285f632d3bbcc2bb8c834133e70e
4
+ data.tar.gz: a25b40250ef9b7b9db72f00379d0028cb0f88f9d
5
5
  SHA512:
6
- metadata.gz: c95153f9f0613e748235c1da2550b082b0be1af04ab726c767338ac7057038fef349d6af96c9f2a1d6c9668d937c4e6e3fe9c29f86a1a2c8ffbd967102bb1dce
7
- data.tar.gz: 770ce8622c9839d308e2d91c5a724316d32b8f06cc98e853506fdfb21c9c10bcf23da78c0c270868877e0e6eba9c4e36dc3957b95cab3fa5f62ee7d7af4ff91c
6
+ metadata.gz: f7f2b0e2c8f5be4ec7dfa1eadda90c4fc9e4f9f420f56678835401a3725460bc44094aa1032a86fee61940f7b7fdf8bd698fcda45afa2bde20001636414931fc
7
+ data.tar.gz: 6130f3b67995a6927579bab0a8dbad065b9ec22eea44cc2f0215db00ae6ee580d57ca642cde3b22f6f9a21e969bfbde93e7895eabae6e77eba80a5561c9aaa82
@@ -33,6 +33,19 @@ module Mumukit
33
33
  end
34
34
  end
35
35
 
36
+ def run_try!(request)
37
+ with_sever_response request, 'try' do |it|
38
+ {
39
+ status: it['exit'].to_sym,
40
+ result: it['out'],
41
+ query_result: it['queryResult'].try do |it |
42
+ { status: it['status'].to_sym,
43
+ result: it['result'] }
44
+ end
45
+ }
46
+ end
47
+ end
48
+
36
49
  def info
37
50
  JSON.parse RestClient.get(
38
51
  "#{test_runner_url}/info",
@@ -1,5 +1,5 @@
1
1
  module Mumukit
2
2
  module Bridge
3
- VERSION = '3.0.0'
3
+ VERSION = '3.1.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.0.0
4
+ version: 3.1.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-04-28 00:00:00.000000000 Z
11
+ date: 2017-10-10 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.4.5
118
+ rubygems_version: 2.6.14
119
119
  signing_key:
120
120
  specification_version: 4
121
121
  summary: Library for connecting to a Mumuki test runner