buildkit 1.4.5 → 1.4.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/ci.yml +4 -7
- data/lib/buildkit/client.rb +6 -1
- data/lib/buildkit/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 03b8e45ebac5e4d266640db473fa71aba8cb6c9a819b5e760c6e728053294463
|
4
|
+
data.tar.gz: 5f37ba01f369f0e679ed389f7d1cdf6c79151a01d4c74f2a23b51d46a864963b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8225bf1b1508e2ac4d995f6c7e321c5495022441befe47934d3530f88d358073eb25a9779a850d22af0875f327d18fd06e4ffaf8f3c954f3ef14951023a11356
|
7
|
+
data.tar.gz: 6d4f3ab03f90c4f1314288454f377aaaea7bdb119ae6be91b1f20ed79679a0e10f152f9ce51a8e68f6988dec2f917b34ef1cd0a41dfddcabcd4cd7bcce68cfe4
|
data/.github/workflows/ci.yml
CHANGED
@@ -3,19 +3,16 @@ name: Test Buildkit Gem
|
|
3
3
|
|
4
4
|
jobs:
|
5
5
|
build:
|
6
|
-
runs-on: ubuntu-
|
6
|
+
runs-on: ubuntu-latest
|
7
7
|
strategy:
|
8
8
|
matrix:
|
9
|
-
ruby: [ '2.5', '2.6', '2.7', '3.0' ]
|
9
|
+
ruby: [ '2.5', '2.6', '2.7', '3.0', '3.1' ]
|
10
10
|
name: Ruby ${{ matrix.ruby }}
|
11
11
|
steps:
|
12
12
|
- uses: actions/checkout@v2
|
13
|
-
- uses:
|
13
|
+
- uses: ruby/setup-ruby@v1
|
14
14
|
with:
|
15
15
|
ruby-version: ${{ matrix.ruby }}
|
16
|
-
|
17
|
-
run: |
|
18
|
-
gem install bundler
|
19
|
-
bundle install --jobs 4 --retry 3
|
16
|
+
bundler-cache: true # 'bundle install' and cache
|
20
17
|
- name: Run rspec
|
21
18
|
run: 'bundle exec rspec spec'
|
data/lib/buildkit/client.rb
CHANGED
@@ -147,6 +147,7 @@ module Buildkit
|
|
147
147
|
|
148
148
|
response.concat @last_response.data
|
149
149
|
|
150
|
+
break if @last_response.headers[:link].nil?
|
150
151
|
link_header = parse_link_header(@last_response.headers[:link])
|
151
152
|
break if link_header[:next].nil?
|
152
153
|
|
@@ -169,7 +170,11 @@ module Buildkit
|
|
169
170
|
http.headers[:accept] = 'application/json'
|
170
171
|
http.headers[:content_type] = 'application/json'
|
171
172
|
http.headers[:user_agent] = "Buildkit v#{Buildkit::VERSION}"
|
172
|
-
|
173
|
+
if Gem::Version.new(Faraday::VERSION) >= Gem::Version.new("1.7.1")
|
174
|
+
http.request :authorization, 'Bearer', @token
|
175
|
+
else
|
176
|
+
http.authorization 'Bearer', @token
|
177
|
+
end
|
173
178
|
end
|
174
179
|
end
|
175
180
|
|
data/lib/buildkit/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: buildkit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jean Boussier
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2022-02-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: sawyer
|
@@ -90,7 +90,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
90
|
- !ruby/object:Gem::Version
|
91
91
|
version: '0'
|
92
92
|
requirements: []
|
93
|
-
rubygems_version: 3.
|
93
|
+
rubygems_version: 3.2.20
|
94
94
|
signing_key:
|
95
95
|
specification_version: 4
|
96
96
|
summary: Ruby toolkit for working with the Buildkite API
|