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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b4bebd6dca7811f360f2b8bdc9c5a7ee3d8a99de357efd238696f63bf920d9be
4
- data.tar.gz: 660b771a177a11b55b0e7b5c11b77adacbecd989db9a518fc5e9889141f759ba
3
+ metadata.gz: 03b8e45ebac5e4d266640db473fa71aba8cb6c9a819b5e760c6e728053294463
4
+ data.tar.gz: 5f37ba01f369f0e679ed389f7d1cdf6c79151a01d4c74f2a23b51d46a864963b
5
5
  SHA512:
6
- metadata.gz: 8952141087e4b69e54ef1c2899d3198c178c6f2cf7ae62ffb80392f5761ac433e91e3890724725b19db557177ebc61f33798d34f67d5323e7139cd338516e088
7
- data.tar.gz: '09917482121cc325df1765f50b7f83f7591936b2f9cc2548da46f8d83e8186c30a81b0cab52d201aa0a8233d9781fe6b18676c71be2870213b0369576ab0ad0d'
6
+ metadata.gz: 8225bf1b1508e2ac4d995f6c7e321c5495022441befe47934d3530f88d358073eb25a9779a850d22af0875f327d18fd06e4ffaf8f3c954f3ef14951023a11356
7
+ data.tar.gz: 6d4f3ab03f90c4f1314288454f377aaaea7bdb119ae6be91b1f20ed79679a0e10f152f9ce51a8e68f6988dec2f917b34ef1cd0a41dfddcabcd4cd7bcce68cfe4
@@ -3,19 +3,16 @@ name: Test Buildkit Gem
3
3
 
4
4
  jobs:
5
5
  build:
6
- runs-on: ubuntu-20.04
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: actions/setup-ruby@v1
13
+ - uses: ruby/setup-ruby@v1
14
14
  with:
15
15
  ruby-version: ${{ matrix.ruby }}
16
- - name: bundle install
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'
@@ -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
- http.authorization 'Bearer', @token
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Buildkit
4
- VERSION = '1.4.5'
4
+ VERSION = '1.4.6'
5
5
  end
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.5
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: 2021-04-30 00:00:00.000000000 Z
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.0.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