gds-api-adapters 82.0.0 → 83.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gds_api/imminence.rb +0 -5
- data/lib/gds_api/test_helpers/asset_manager.rb +1 -1
- data/lib/gds_api/test_helpers/content_store.rb +1 -1
- data/lib/gds_api/test_helpers/imminence.rb +1 -1
- data/lib/gds_api/test_helpers/licence_application.rb +1 -1
- data/lib/gds_api/test_helpers/link_checker_api.rb +1 -1
- data/lib/gds_api/test_helpers/local_links_manager.rb +1 -1
- data/lib/gds_api/test_helpers/locations_api.rb +1 -1
- data/lib/gds_api/test_helpers/mapit.rb +1 -1
- data/lib/gds_api/test_helpers/publishing_api.rb +2 -2
- data/lib/gds_api/test_helpers/router.rb +1 -1
- data/lib/gds_api/test_helpers/search.rb +1 -1
- data/lib/gds_api/test_helpers/support.rb +1 -1
- data/lib/gds_api/test_helpers/support_api.rb +1 -1
- data/lib/gds_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 921ed76df07dc2083415048acc0ddff80db26c5f3295691d81f7560f5d55d458
|
4
|
+
data.tar.gz: 21c0741d4e870e768a95b129c09a77d35cdd1f47c9bbdc9684d12192ebc3d5e5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c94e219206c289f6ee340ed3c4384c936201fb93d867547546f4ca984f7fdafa6c69e3b677870b8c0d5003c50aaaa44da8e729bdc57820ef47b1a7a68eed0f7b
|
7
|
+
data.tar.gz: 600b41211a2911bcde2d6d9e0f218b015f66e02322a608b02bc19dc4a12b049837e20baf230c12bb6d58ac65e72fc9be75d1dd1910196d8092fd29b4420fb55b
|
data/lib/gds_api/imminence.rb
CHANGED
@@ -35,11 +35,6 @@ class GdsApi::Imminence < GdsApi::Base
|
|
35
35
|
get_json(url)
|
36
36
|
end
|
37
37
|
|
38
|
-
def areas_for_type(type)
|
39
|
-
url = "#{@endpoint}/areas/#{type}.json"
|
40
|
-
get_json(url)
|
41
|
-
end
|
42
|
-
|
43
38
|
# @private
|
44
39
|
def self.extract_location_hash(location)
|
45
40
|
# Deal with all known location formats:
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module GdsApi
|
2
2
|
module TestHelpers
|
3
3
|
module AssetManager
|
4
|
-
ASSET_MANAGER_ENDPOINT = Plek.
|
4
|
+
ASSET_MANAGER_ENDPOINT = Plek.find("asset-manager")
|
5
5
|
|
6
6
|
def stub_any_asset_manager_call
|
7
7
|
stub_request(:any, %r{\A#{ASSET_MANAGER_ENDPOINT}}).to_return(status: 200)
|
@@ -8,7 +8,7 @@ module GdsApi
|
|
8
8
|
include ContentItemHelpers
|
9
9
|
|
10
10
|
def content_store_endpoint(draft: false)
|
11
|
-
draft ? Plek.
|
11
|
+
draft ? Plek.find("draft-content-store") : Plek.find("content-store")
|
12
12
|
end
|
13
13
|
|
14
14
|
# Stubs a content item in the content store.
|
@@ -5,7 +5,7 @@ module GdsApi
|
|
5
5
|
module Imminence
|
6
6
|
# Generally true. If you are initializing the client differently,
|
7
7
|
# you could redefine/override the constant or stub directly.
|
8
|
-
IMMINENCE_API_ENDPOINT = Plek.
|
8
|
+
IMMINENCE_API_ENDPOINT = Plek.find("imminence")
|
9
9
|
|
10
10
|
def stub_imminence_has_places(latitude, longitude, details)
|
11
11
|
query_hash = { "lat" => latitude, "lng" => longitude, "limit" => "5" }
|
@@ -5,7 +5,7 @@ module GdsApi
|
|
5
5
|
module LicenceApplication
|
6
6
|
# Generally true. If you are initializing the client differently,
|
7
7
|
# you could redefine/override the constant or stub directly.
|
8
|
-
LICENCE_APPLICATION_ENDPOINT = Plek.
|
8
|
+
LICENCE_APPLICATION_ENDPOINT = Plek.find("licensify")
|
9
9
|
|
10
10
|
def stub_licence_exists(identifier, licence)
|
11
11
|
licence = licence.to_json unless licence.is_a?(String)
|
@@ -3,7 +3,7 @@ require "gds_api/test_helpers/json_client_helper"
|
|
3
3
|
module GdsApi
|
4
4
|
module TestHelpers
|
5
5
|
module LinkCheckerApi
|
6
|
-
LINK_CHECKER_API_ENDPOINT = Plek.
|
6
|
+
LINK_CHECKER_API_ENDPOINT = Plek.find("link-checker-api")
|
7
7
|
|
8
8
|
def link_checker_api_link_report_hash(uri:, status: :ok, checked: nil, errors: [], warnings: [], problem_summary: nil, suggested_fix: nil)
|
9
9
|
{
|
@@ -3,7 +3,7 @@ require "gds_api/test_helpers/json_client_helper"
|
|
3
3
|
module GdsApi
|
4
4
|
module TestHelpers
|
5
5
|
module LocalLinksManager
|
6
|
-
LOCAL_LINKS_MANAGER_ENDPOINT = Plek.
|
6
|
+
LOCAL_LINKS_MANAGER_ENDPOINT = Plek.find("local-links-manager")
|
7
7
|
|
8
8
|
def stub_local_links_manager_has_a_link(authority_slug:, lgsl:, lgil:, url:, country_name: "England", status: "ok", snac: "00AG", local_custodian_code: nil)
|
9
9
|
response = {
|
@@ -8,8 +8,8 @@ module GdsApi
|
|
8
8
|
module PublishingApi
|
9
9
|
include ContentItemHelpers
|
10
10
|
|
11
|
-
PUBLISHING_API_V2_ENDPOINT = "#{Plek.
|
12
|
-
PUBLISHING_API_ENDPOINT = Plek.
|
11
|
+
PUBLISHING_API_V2_ENDPOINT = "#{Plek.find('publishing-api')}/v2".freeze
|
12
|
+
PUBLISHING_API_ENDPOINT = Plek.find("publishing-api")
|
13
13
|
|
14
14
|
# Stub a PUT /v2/content/:content_id request with the given content id and request body.
|
15
15
|
# if no response_hash is given, a default response as follows is created:
|
@@ -3,7 +3,7 @@ require "gds_api/test_helpers/json_client_helper"
|
|
3
3
|
module GdsApi
|
4
4
|
module TestHelpers
|
5
5
|
module Router
|
6
|
-
ROUTER_API_ENDPOINT = Plek.
|
6
|
+
ROUTER_API_ENDPOINT = Plek.find("router-api")
|
7
7
|
|
8
8
|
def stub_router_has_route(path, route, bearer_token = ENV["ROUTER_API_BEARER_TOKEN"])
|
9
9
|
stub_get_route(path, bearer_token).to_return(
|
@@ -1,7 +1,7 @@
|
|
1
1
|
module GdsApi
|
2
2
|
module TestHelpers
|
3
3
|
module Support
|
4
|
-
SUPPORT_ENDPOINT = Plek.
|
4
|
+
SUPPORT_ENDPOINT = Plek.find("support")
|
5
5
|
|
6
6
|
def stub_support_foi_request_creation(request_details = nil)
|
7
7
|
post_stub = stub_http_request(:post, "#{SUPPORT_ENDPOINT}/foi_requests")
|
@@ -4,7 +4,7 @@ require "plek"
|
|
4
4
|
module GdsApi
|
5
5
|
module TestHelpers
|
6
6
|
module SupportApi
|
7
|
-
SUPPORT_API_ENDPOINT = Plek.
|
7
|
+
SUPPORT_API_ENDPOINT = Plek.find("support-api")
|
8
8
|
|
9
9
|
def stub_support_api_problem_report_creation(request_details = nil)
|
10
10
|
post_stub = stub_http_request(:post, "#{SUPPORT_API_ENDPOINT}/anonymous-feedback/problem-reports")
|
data/lib/gds_api/version.rb
CHANGED
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:
|
4
|
+
version: 83.0.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: 2022-
|
11
|
+
date: 2022-10-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|