gds-api-adapters 56.0.0 → 57.0.0

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: 711e3cac1f92b9ec958cddcaa8d5d33cd22d5da600fe301f364aca15cbbad924
4
- data.tar.gz: b8c32528299910a131982ac14de2254dd8bb328d04e01f3f19e2c231c9aceebc
3
+ metadata.gz: f36c0d0a2843439216308fc49f375f43c5032a1d9e09a3284d5cc42a5a898325
4
+ data.tar.gz: 86c0b7345ad52da99d8ae24470e1e0e7740986b2c8c445039933fc98517df246
5
5
  SHA512:
6
- metadata.gz: cbbe240bbb229854cced2b41e489bdf518c5bc1816899f366178f2494af1eb498bdab28672840c311e837a45e35c15097b8d357a0cfb587fca80d658d6e94ef6
7
- data.tar.gz: 8b333ce86b7db2ba07f1fa12d18437742eb312239b1e65ec4c63bb090b6c30920a741e65e58664b9cd4645430cd697e2cb9186bf3e2f7e6360dee41c7596c5f5
6
+ metadata.gz: 4e7277dcd24bcb07c3a247c7ae1ab52061770f5b595187a2af83341a7a3de63f66a6fc0983a5a064685043173a5ea6c4b000cab6e26d76c2b1487a4d145da72d
7
+ data.tar.gz: d9742ba90208ef268123dced1cabd54daf4aecea228b4571d765a7b14dfc245b63a8684b6fa570f4476b476d30815deeb7b48b5fb264fcdc9cf7f0df89f51ae4
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '56.0.0'.freeze
2
+ VERSION = '57.0.0'.freeze
3
3
  end
data/lib/gds_api.rb CHANGED
@@ -76,9 +76,15 @@ module GdsApi
76
76
 
77
77
  # Creates a GdsApi::LinkCheckerApi adapter
78
78
  #
79
+ # This will set a bearer token if a LINK_CHECKER_API_BEARER_TOKEN environment
80
+ # variable is set
81
+ #
79
82
  # @return [GdsApi::LinkCheckerApi]
80
83
  def self.link_checker_api(options = {})
81
- GdsApi::LinkCheckerApi.new(Plek.find('link-checker-api'), options)
84
+ GdsApi::LinkCheckerApi.new(
85
+ Plek.find('link-checker-api'),
86
+ { bearer_token: ENV['LINK_CHECKER_API_BEARER_TOKEN'] }.merge(options)
87
+ )
82
88
  end
83
89
 
84
90
  # Creates a GdsApi::LocalLinksManager adapter
@@ -169,9 +175,15 @@ module GdsApi
169
175
 
170
176
  # Creates a GdsApi::SupportApi adapter
171
177
  #
178
+ # This will set a bearer token if a SUPPORT_API_BEARER_TOKEN environment
179
+ # variable is set
180
+ #
172
181
  # @return [GdsApi::SupportApi]
173
182
  def self.support_api(options = {})
174
- GdsApi::SupportApi.new(Plek.find('support-api'), options)
183
+ GdsApi::SupportApi.new(
184
+ Plek.find('support-api'),
185
+ { bearer_token: ENV['SUPPORT_API_BEARER_TOKEN'] }.merge(options),
186
+ )
175
187
  end
176
188
 
177
189
  # Creates a GdsApi::Worldwide adapter for accessing Whitehall APIs on a
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gds-api-adapters
3
3
  version: !ruby/object:Gem::Version
4
- version: 56.0.0
4
+ version: 57.0.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev