rspec-buildkite-analytics 0.3.5 → 0.3.6

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: d55751f8e88a6ac7ad250c0c1e2b382dcaeb2d23504aa6d110a22a4a61af8d06
4
- data.tar.gz: b21d3d7fe03e1d504870b2d1fba0f188ab94e1f5e1c5c3fa3f11b1536a9f99b1
3
+ metadata.gz: a81e9b877577590dbb59202d72db1ee309a25be50c69e45361a0515cbfed1e5a
4
+ data.tar.gz: 172a76b3343c2f460013c47b3893f7667aa3e965effde4b370fcf058ee0e3dbf
5
5
  SHA512:
6
- metadata.gz: 8bb6efbdc7f9b4f06ab3b0793c9ef5a1c2b41429a755040d0c6b558fbb24b308e59cd862a646b86717bb5bebf4464eec45e3551db043b8332ed37a94b642f789
7
- data.tar.gz: 97089293de5331c1329979fd853ff15297e4460aaec7631867e2031398a31603296e53174da6a398134fe7a54bfa9b1e7082817acb989e6f74978a574afae9fc
6
+ metadata.gz: 471c20607b1dd61c55bfb1244ca8a5d95c3f30b4f3a26fbd9bf1912d11af3d3e7841762b077472dbc5b0fe3dc647771008a6e68cb5a4f85296a1f41b765ae4f2
7
+ data.tar.gz: 16145862ef9c26a3132eead4ea6bf11323effe8b6f5bc32140cce966544d508d8a4d83a64e809814d35c71add64102d8e23f7175f02d9f914839381efddc85b8
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rspec-buildkite-analytics (0.3.5)
4
+ rspec-buildkite-analytics (0.3.6)
5
5
  activesupport (>= 5.2, <= 7.0)
6
6
  rspec-core (~> 3.10)
7
7
  rspec-expectations (~> 3.10)
data/README.md CHANGED
@@ -15,10 +15,7 @@ end
15
15
 
16
16
  Configure your API key:
17
17
  ```ruby
18
- RSpec::Buildkite::Analytics.configure do |config|
19
- config.suite_key = "........"
20
- # other config
21
- end
18
+ RSpec::Buildkite::Analytics.configure(token: "........")
22
19
  ```
23
20
 
24
21
  Run bundler to install the gem and update your `Gemfile.lock`:
@@ -2,6 +2,8 @@ module RSpec::Buildkite::Analytics
2
2
  class Reporter
3
3
  RSpec::Core::Formatters.register self, :example_passed, :example_failed, :example_pending
4
4
 
5
+ attr_reader :output
6
+
5
7
  def initialize(output)
6
8
  @output = output
7
9
  end
@@ -75,7 +75,7 @@ module RSpec::Buildkite::Analytics
75
75
  @session.handle(self, data.data)
76
76
  end
77
77
  end
78
- rescue EOFError
78
+ rescue EOFError, Errno::ECONNRESET
79
79
  if @socket
80
80
  @session.disconnected(self)
81
81
  disconnect
@@ -102,7 +102,7 @@ module RSpec::Buildkite::Analytics
102
102
  raw_data = data.to_json
103
103
  frame = WebSocket::Frame::Outgoing::Client.new(data: raw_data, type: :text, version: @version)
104
104
  @socket.write(frame.to_s)
105
- rescue Errno::EPIPE, OpenSSL::SSL::SSLError => e
105
+ rescue Errno::EPIPE, Errno::ECONNRESET, OpenSSL::SSL::SSLError => e
106
106
  return unless @socket
107
107
  @session.disconnected(self)
108
108
  disconnect
@@ -65,7 +65,7 @@ module RSpec::Buildkite::Analytics
65
65
  private
66
66
 
67
67
  def generate_file_name(example)
68
- file_path_regex = /^(.*?\.rb)/
68
+ file_path_regex = /^(.*?\.(rb|feature))/
69
69
  identifier_file_name = example.id[file_path_regex]
70
70
  location_file_name = example.location[file_path_regex]
71
71
 
@@ -3,7 +3,7 @@
3
3
  module RSpec
4
4
  module Buildkite
5
5
  module Analytics
6
- VERSION = "0.3.5"
6
+ VERSION = "0.3.6"
7
7
  end
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-buildkite-analytics
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.5
4
+ version: 0.3.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Buildkite
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-10-21 00:00:00.000000000 Z
11
+ date: 2021-10-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport