gds-api-adapters 63.3.0 → 63.4.0

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: a3bd75606812cc9007166b0c56129634b6ec041dbfc0a0994c3472e66ab8c8a6
4
- data.tar.gz: a6e6e8c9345e040f1309202e2bb84f0052a343fda9ed882e990b697d4f7118e6
3
+ metadata.gz: a2d2ac699458ff698449cf7f1b853386a53cfc5f7c6cfa27b035619f4519a317
4
+ data.tar.gz: b0602b61f003e2783b1c1316c94b211b33f141286d5f198c0536f2ba05d77156
5
5
  SHA512:
6
- metadata.gz: 4bbdc41d879b0a5515821488e07a45cc4c81ddc012db0c90c0a5279c101d89b4818de14585c67cfeac9b204fd2c46b620270ae5af3057ccf9715278e0ab846c8
7
- data.tar.gz: 35e305250af06c85bf248716b5ea3fc90429305ea05c561a0e13af86f0723266da1bc2e50dddf6473b33acd47fc88b6cfe14a268fe4f17f5a29169aa33292f93
6
+ metadata.gz: a82622969113834480c212952fddb7dc006092be6e59a328426f3a2bc3425ca49887d7652088c65e3e8722bc3a60137e337382f0f2a8cecfb08aa814aed788d8
7
+ data.tar.gz: b6aa5456c1c18ee1facaff816f5bac337f057cf441688bd20cfb0d33fd4d326706a57b4c0feae4e8304e2a436feb693c67a12b0afaf54f98cc823030e6bb92e9
@@ -174,20 +174,19 @@ module GdsApi
174
174
  stub_request(:post, %r{\A#{PUBLISHING_API_V2_ENDPOINT}/content/.*/discard-draft})
175
175
  end
176
176
 
177
- # Stub any version 2 request to the publishing API
177
+ # Stub any request to the publishing API
178
178
  def stub_any_publishing_api_call
179
- stub_request(:any, %r{\A#{PUBLISHING_API_V2_ENDPOINT}})
179
+ stub_request(:any, %r{\A#{PUBLISHING_API_ENDPOINT}})
180
180
  end
181
181
 
182
- # Stub any version 2 request to the publishing API to return a 404 response
182
+ # Stub any request to the publishing API to return a 404 response
183
183
  def stub_any_publishing_api_call_to_return_not_found
184
- stub_request(:any, %r{\A#{PUBLISHING_API_V2_ENDPOINT}})
184
+ stub_request(:any, %r{\A#{PUBLISHING_API_ENDPOINT}})
185
185
  .to_return(status: 404, headers: { "Content-Type" => "application/json; charset=utf-8" })
186
186
  end
187
187
 
188
- # Stub any version 2 request to the publishing API to return a 503 response
188
+ # Stub any request to the publishing API to return a 503 response
189
189
  def stub_publishing_api_isnt_available
190
- stub_request(:any, /#{PUBLISHING_API_V2_ENDPOINT}\/.*/).to_return(status: 503)
191
190
  stub_request(:any, /#{PUBLISHING_API_ENDPOINT}\/.*/).to_return(status: 503)
192
191
  end
193
192
 
@@ -641,6 +640,10 @@ module GdsApi
641
640
  stub_publishing_api_unreserve_path_with_code(base_path, publishing_app, 422)
642
641
  end
643
642
 
643
+ def stub_any_publishing_api_unreserve_path
644
+ stub_request(:delete, %r{\A#{PUBLISHING_API_ENDPOINT}/paths/})
645
+ end
646
+
644
647
  # Stub a PUT /publish-intent/:base_path request with the given base_path
645
648
  # and request body.
646
649
  #
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = "63.3.0".freeze
2
+ VERSION = "63.4.0".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: 63.3.0
4
+ version: 63.4.0
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: 2020-01-16 00:00:00.000000000 Z
11
+ date: 2020-02-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable