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 +4 -4
- data/Gemfile.lock +1 -1
- data/README.md +1 -4
- data/lib/rspec/buildkite/analytics/reporter.rb +2 -0
- data/lib/rspec/buildkite/analytics/socket_connection.rb +2 -2
- data/lib/rspec/buildkite/analytics/uploader.rb +1 -1
- data/lib/rspec/buildkite/analytics/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: a81e9b877577590dbb59202d72db1ee309a25be50c69e45361a0515cbfed1e5a
|
4
|
+
data.tar.gz: 172a76b3343c2f460013c47b3893f7667aa3e965effde4b370fcf058ee0e3dbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 471c20607b1dd61c55bfb1244ca8a5d95c3f30b4f3a26fbd9bf1912d11af3d3e7841762b077472dbc5b0fe3dc647771008a6e68cb5a4f85296a1f41b765ae4f2
|
7
|
+
data.tar.gz: 16145862ef9c26a3132eead4ea6bf11323effe8b6f5bc32140cce966544d508d8a4d83a64e809814d35c71add64102d8e23f7175f02d9f914839381efddc85b8
|
data/Gemfile.lock
CHANGED
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
|
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`:
|
@@ -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
|
|
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.
|
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-
|
11
|
+
date: 2021-10-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|