res 1.2.14 → 1.2.15

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: a567a719ccb725cad63612bd1506f95c4f3b0a94
4
- data.tar.gz: a10a44f08ec311eee8ead3df06120f788c4c5fbb
3
+ metadata.gz: bb325ccb7a5fa559ad489de668061c41a26e3da2
4
+ data.tar.gz: d35d36429fc71916209daf25ec53894dd3f63ba9
5
5
  SHA512:
6
- metadata.gz: 574bed53782d6f28a39e05def7f8ef162c3949d326b42e40dbc985e1e95574377eead50e48b2cd5229bfd8d72617ff617a0c0ee252b60c124364697f4374de05
7
- data.tar.gz: 01d35a1d48006a5b6b5a53df7ddae4a2c9ebe302a41b3b4170697db26345a43ec41f353fbf2e40879b84c62be478d85a68f141528aa8c5149f79489a0f8e4af5
6
+ metadata.gz: 06c6991af82847648892ce6eb9a2537d7497fef75ef2e94cb975321749f964dcb2b9908fc358f68a69941b96da01690cd1029a2c6cc60bfc8acb396f2975953c
7
+ data.tar.gz: f2f4ec664f39e504d9eb3dd2bbc9a052aaaae2bb9434185cdbff3b970c212c1258e55e02291dbf0ad982a9d2100e617ef70dc2b26450627a481d77bfa9932f48
@@ -30,7 +30,7 @@ module Res
30
30
  f.each_line do |line|
31
31
 
32
32
  if line.match('INSTRUMENTATION_STATUS_CODE: (.*)$')
33
- case Regexp.last_match[1]
33
+ case Regexp.last_match[1].strip
34
34
  when '1'
35
35
  # Skip if this is just the 'pre-run' test
36
36
  next
@@ -20,6 +20,7 @@ module Res
20
20
  def submit_results(ir, args = nil)
21
21
  status = "failed"
22
22
  status = "passed" if ir.tests.count == ir.count(:passed)
23
+ results = Hash[ir.tests.map { |t| [t[:name], t[:status]] }]
23
24
 
24
25
  if ir.values.has_key?('#type') && ir.values['#type'] == 'multiple'
25
26
  measures = {}
@@ -41,6 +42,7 @@ module Res
41
42
  :started => ir.results.first[:started],
42
43
  :finished => ir.results.last[:finished],
43
44
  :status => status,
45
+ :results => results,
44
46
  :measures => measures
45
47
  }
46
48
 
data/lib/res/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Res
2
- VERSION = '1.2.14'
2
+ VERSION = '1.2.15'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: res
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.14
4
+ version: 1.2.15
5
5
  platform: ruby
6
6
  authors:
7
7
  - BBC
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2016-10-25 00:00:00.000000000 Z
13
+ date: 2016-10-26 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: json