gds-api-adapters 54.1.2 → 54.1.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: af4b22c477df01731432933f022e91fc50d013cce16ae1a0480c85e8260d7445
4
- data.tar.gz: 473ca900c1bf0869669bc38f2544a266faf3728fb236f1b2b4527939ec84cab9
3
+ metadata.gz: e3c6033a1522858e59e85dee2e9a6f317fb940bad4f41607ae38f182fce3ef08
4
+ data.tar.gz: 69ec414b46de2bec1c7486077335df7de1b40634877ee5532cb093893e719c86
5
5
  SHA512:
6
- metadata.gz: c36afced6f25b2cd79a80d60b367163067dbc6705ee941dd5b28dc151a02f58c7667acfc034cd0a2c119670faea072c884e4554fce2004c6d2e0a9fdab4877b8
7
- data.tar.gz: 9e619cca79bad8616cf9171699106aaa6d0ce20f4e5914f3ded54384920910119a6267bcaa48cb5fb9aa0f9e4d5b29b0937f6b6863282f685c1b1e461696fdab
6
+ metadata.gz: 7119e56d592a0ced2a11ee4032c84d42c9e4b38185ea40446d584b25e9f6a988e4b6d844eb54ead0cf803260ad35ddf306c927232d1a9524d6f44a9ac11142fe
7
+ data.tar.gz: 062036bf1fc099a1ee65a39a1ee7fea82f24eb4979f56400563aee663749f96478c50dc5a7a648d14f2c1beff2ab7a8069a0c5e2ef2b0d76297362bfcd725efa
@@ -22,7 +22,7 @@ module GdsApi
22
22
  "_response_info" => { "status" => "not found" }
23
23
  }
24
24
 
25
- stub_request(:get, "#{ASSET_MANAGER_ENDPOINT}/assets/#{id}")
25
+ stub_request(:any, "#{ASSET_MANAGER_ENDPOINT}/assets/#{id}")
26
26
  .to_return(body: response.to_json, status: 404)
27
27
  end
28
28
 
@@ -10,6 +10,7 @@ module GdsApi
10
10
  include ContentItemHelpers
11
11
 
12
12
  PUBLISHING_API_V2_ENDPOINT = Plek.current.find('publishing-api') + '/v2'
13
+ PUBLISHING_API_ENDPOINT = Plek.current.find('publishing-api')
13
14
 
14
15
  # Stub a PUT /v2/content/:content_id request with the given content id and request body.
15
16
  # if no response_hash is given, a default response as follows is created:
@@ -166,6 +167,7 @@ module GdsApi
166
167
  # Stub any version 2 request to the publishing API to return a 503 response
167
168
  def publishing_api_isnt_available
168
169
  stub_request(:any, /#{PUBLISHING_API_V2_ENDPOINT}\/.*/).to_return(status: 503)
170
+ stub_request(:any, /#{PUBLISHING_API_ENDPOINT}\/.*/).to_return(status: 503)
169
171
  end
170
172
 
171
173
  # Assert that a draft was saved and published, and links were updated.
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '54.1.2'.freeze
2
+ VERSION = '54.1.3'.freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gds-api-adapters
3
3
  version: !ruby/object:Gem::Version
4
- version: 54.1.2
4
+ version: 54.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-11-05 00:00:00.000000000 Z
11
+ date: 2018-11-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable