build_metrics_logger 0.0.5 → 0.0.7

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 +3 -4
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 5b4588c4d857579721a2c83aabcb4b739525dfd2
4
- data.tar.gz: cbe1f6e19ef79b546a733629d4f6b21e67bd0dd5
3
+ metadata.gz: 0e4de574bd4123d1d2c8526e2a590717657c0c0d
4
+ data.tar.gz: 1f95496b6c4f7266fb107e779a4ead72d6ec52ae
5
5
  SHA512:
6
- metadata.gz: e8ce61f5c4d071d29594ce7e5a0a68bec8c9312f47a896bf305deb8ad15516e7233c06a9e5a5a4629d36e032a8d1cac7d1e4622c462343bd3049960aaf4a31af
7
- data.tar.gz: 4554dd932584327cb4368d435fcc57d7da495ab6f3aa811f900be13f94ec6059ee3cb051ba9e639049c12c09f809faf64c58a7207808ae40b7038f2a2df6e1a9
6
+ metadata.gz: 1a2e984337521a5bf98815db97c9447e83a6d85f60d7e9f0fc511900d98e06f6d1a122f490ebaad89e825ec500f29a13877a6486e0f25120cd3711fcce93723a
7
+ data.tar.gz: cc81ada1c4869329705fb4a18491f1ec6a4b116cd4b82755934069a091b900c9f59a5f0b4e1b0bd13486e4ac746c288ef58ef0c3c616c7fa58d0b1bff9233462
@@ -7,14 +7,13 @@ class BuildMetricsLogger
7
7
  @build_id = ENV.fetch('BUILD_METRICS_LOGGER_ID')
8
8
  puts "Token: #{@token}"
9
9
  puts "ID: #{@build_id}"
10
- puts ENV.fetch('IS_LOCAL')
11
10
  end
12
11
 
13
12
  def start(notification)
14
13
  # "**Running before the entire suite**"
15
14
  end
16
15
 
17
- def stop(notification)
16
+ def dump_summary(notification)
18
17
  # "**Running after the entire suite finishes**"
19
18
  suite_finished(notification)
20
19
  end
@@ -32,7 +31,7 @@ class BuildMetricsLogger
32
31
  end
33
32
 
34
33
  def example_finished(notification)
35
- if notification.example.metadata[:e2e] == true && ENV.fetch('IS_LOCAL', 'true') == 'false'
34
+ if notification.example.metadata[:e2e] == true #&& ENV.fetch('IS_LOCAL', 'true') == 'false'
36
35
  id = notification.example.id.to_s
37
36
  description = notification.example.full_description.to_s
38
37
  location = notification.example.location.to_s
@@ -48,7 +47,7 @@ class BuildMetricsLogger
48
47
  end
49
48
 
50
49
  def suite_finished(notification)
51
- if notification.examples[0].metadata[:e2e] == true && ENV.fetch('IS_LOCAL', 'true') == 'false'
50
+ if notification.examples[0].metadata[:e2e] == true #&& ENV.fetch('IS_LOCAL', 'true') == 'false'
52
51
  time = notification.duration
53
52
  passed = notification.failure_count == 0 ? true : false
54
53
  build_data = [time, passed]
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.5
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ben Nelson