build_metrics_logger 0.0.8 → 0.0.9

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/build_metrics_logger.rb +2 -2
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d4b716a7a204e4f11f6d383e58ca394b595b9e1a
4
- data.tar.gz: 651692c7ac7f1388d3bd8462c97d3978a11e17c3
3
+ metadata.gz: 3bb2bbd5c61351293f0efb00d5599b3fcb9c4485
4
+ data.tar.gz: 78a14a1610de697a4c2041ec99e26c9240e40ec9
5
5
  SHA512:
6
- metadata.gz: 9f931dfb42a78aea72c94eae3685b9a330a0aa735ef9686ab31cdbe06d02e19d4601e03c3eb01bedcbfd928b37db4fc2cea325c307951e94447deb8364415bc0
7
- data.tar.gz: 075b0636564c1231b1903d9a1a5d14a00d6065c05740d2ee1481d97b73a5a4ea5ed7aa1a89fc62a9589e1d6f8e2bc34f7c427c0e4831d7da0df8eaf4272b5854
6
+ metadata.gz: ea2cfc8da96c64c106a77ec011a35caa5ede19816c00c01c71da89567208faf748ff204abf3067df894076260bfa3416529312eb63a4bcd2bd9b5f48e2c3515c
7
+ data.tar.gz: 18011ab380fd8e38d93a17259da722bfbdc42ff9846bf7c53e0843ff2b21cf8f4723c82f10db2e5e95bd07810256a3ed80f33f26bf255b1ecf928f461e5459e5
@@ -39,7 +39,7 @@ class BuildMetricsLogger
39
39
  # prev_result = notification.example.metadata[:last_run_status].to_s
40
40
  time = notification.example.execution_result.run_time.to_s
41
41
  exception = notification.example.execution_result.exception.to_s.empty? ? "nil" : notification.example.execution_result.exception.to_s
42
- test_data = [id, description, location, passed, time, exception]
42
+ test_data = {id: id, description: description, location: location, passed: passed, time: time, exception: exception}
43
43
  if @token
44
44
  log_example_result(test_data)
45
45
  end
@@ -50,7 +50,7 @@ class BuildMetricsLogger
50
50
  if notification.examples[0].metadata[:e2e] == true #&& ENV.fetch('IS_LOCAL', 'true') == 'false'
51
51
  time = notification.duration
52
52
  passed = notification.failure_count == 0 ? true : false
53
- build_data = [time, passed]
53
+ build_data = {time: time, passed: passed}
54
54
  if @token
55
55
  log_build_result(build_data)
56
56
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: build_metrics_logger
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.8
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Nelson