buildkite-test_collector 2.1.0 → 2.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/Gemfile.lock +1 -1
- data/buildkite.yaml +1 -1
- data/lib/buildkite/test_collector/http_client.rb +10 -1
- data/lib/buildkite/test_collector/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: c3f61975dacef343c33cf6d550fc4dd5d765f02050bd2a8bc86b5e221afa751d
|
4
|
+
data.tar.gz: 340dc7bce50ef727dfea08a331260824aaa640c9e83b344bc620afbf153fbe1d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e692ebc6764114d7a70e854c8daf7acd09110ad78736163a2845538451cf5f6b424a709bbccc89007bdccc3e68fac391bb3d9ec041965167c2a709dd6d68ffd5
|
7
|
+
data.tar.gz: 7cb0d8141ebfa1b43c8bc5ae4de82bccbc3da9cb221566a9a54ca7f54b2eba3908be5fa923dc0d08c688fd41d1941f24e711d747ab7d0ecea44be8658f1a2ca8
|
data/CHANGELOG.md
CHANGED
@@ -1,5 +1,8 @@
|
|
1
1
|
# CHANGELOG
|
2
2
|
|
3
|
+
## v2.2.0
|
4
|
+
- Gzip payload of request to Upload API #183 - @niceking
|
5
|
+
|
3
6
|
## v2.1.0
|
4
7
|
- Major change: deprecates websocket connection in favour of sending HTTP requests to the Upload API. In future, websocket support will be completely removed from Buildkite and only version 2.1+ of this gem will continue to work.
|
5
8
|
|
data/Gemfile.lock
CHANGED
data/buildkite.yaml
CHANGED
@@ -19,16 +19,25 @@ module Buildkite::TestCollector
|
|
19
19
|
contact = Net::HTTP::Post.new(contact_uri.path, {
|
20
20
|
"Authorization" => authorization_header,
|
21
21
|
"Content-Type" => "application/json",
|
22
|
+
"Content-Encoding" => "gzip",
|
22
23
|
})
|
23
24
|
|
24
25
|
data_set = data.map(&:as_hash)
|
25
26
|
|
26
|
-
|
27
|
+
body = {
|
27
28
|
run_env: Buildkite::TestCollector::CI.env,
|
28
29
|
format: "json",
|
29
30
|
data: data_set
|
30
31
|
}.to_json
|
31
32
|
|
33
|
+
compressed_body = StringIO.new
|
34
|
+
|
35
|
+
writer = Zlib::GzipWriter.new(compressed_body)
|
36
|
+
writer.write(body)
|
37
|
+
writer.close
|
38
|
+
|
39
|
+
contact.body = compressed_body.string
|
40
|
+
|
32
41
|
http.request(contact)
|
33
42
|
end
|
34
43
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buildkite-test_collector
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Buildkite
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-04-
|
11
|
+
date: 2023-04-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|