gds-api-adapters 83.0.0 → 84.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: 921ed76df07dc2083415048acc0ddff80db26c5f3295691d81f7560f5d55d458
4
- data.tar.gz: 21c0741d4e870e768a95b129c09a77d35cdd1f47c9bbdc9684d12192ebc3d5e5
3
+ metadata.gz: ebd8c9876a6c89de5d0fdae4fcee5466c37e79e64d6841b02bb52ec581876166
4
+ data.tar.gz: 64702ddd905480c111b7da1da758825d15d79d351dc9c4c14fd62308f16ab374
5
5
  SHA512:
6
- metadata.gz: c94e219206c289f6ee340ed3c4384c936201fb93d867547546f4ca984f7fdafa6c69e3b677870b8c0d5003c50aaaa44da8e729bdc57820ef47b1a7a68eed0f7b
7
- data.tar.gz: 600b41211a2911bcde2d6d9e0f218b015f66e02322a608b02bc19dc4a12b049837e20baf230c12bb6d58ac65e72fc9be75d1dd1910196d8092fd29b4420fb55b
6
+ metadata.gz: 177b9edcbb43ea4b9c5b0bd3df452e69a14458af851cb7339524a10c6f5a6d8439db588a9725350a9424ea336dfd2f464763be036112790be9d15ce48d98bde7
7
+ data.tar.gz: c0ed5d8e02c058ca2c848ccf0e9235f664e7e263a0df3d5fa242a07b4c47953d28f3651e1f64567d07cfbd8286dc96a27695862fb13a0ed5577305a62874a9a4
@@ -30,11 +30,6 @@ class GdsApi::Imminence < GdsApi::Base
30
30
  get_raw("#{@endpoint}/places/#{type}.kml").body
31
31
  end
32
32
 
33
- def areas_for_postcode(postcode)
34
- url = "#{@endpoint}/areas/#{uri_encode(postcode)}.json"
35
- get_json(url)
36
- end
37
-
38
33
  # @private
39
34
  def self.extract_location_hash(location)
40
35
  # Deal with all known location formats:
@@ -12,21 +12,6 @@ module GdsApi
12
12
  stub_imminence_places_request(details["slug"], query_hash, details["details"])
13
13
  end
14
14
 
15
- def stub_imminence_has_areas_for_postcode(postcode, areas)
16
- results = {
17
- "_response_info" => { "status" => "ok" },
18
- "total" => areas.size,
19
- "startIndex" => 1,
20
- "pageSize" => areas.size,
21
- "currentPage" => 1,
22
- "pages" => 1,
23
- "results" => areas,
24
- }
25
-
26
- stub_request(:get, %r{\A#{IMMINENCE_API_ENDPOINT}/areas/#{postcode}\.json})
27
- .to_return(body: results.to_json)
28
- end
29
-
30
15
  def stub_imminence_has_places_for_postcode(places, slug, postcode, limit)
31
16
  query_hash = { "postcode" => postcode, "limit" => limit }
32
17
  stub_imminence_places_request(slug, query_hash, places)
@@ -4,7 +4,7 @@ require "gds_api/test_helpers/json_client_helper"
4
4
  module GdsApi
5
5
  module TestHelpers
6
6
  module Search
7
- SEARCH_ENDPOINT = Plek.find("search")
7
+ SEARCH_ENDPOINT = Plek.find("search-api")
8
8
 
9
9
  def stub_any_search_post(index: nil)
10
10
  if index
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = "83.0.0".freeze
2
+ VERSION = "84.0.0".freeze
3
3
  end
data/lib/gds_api.rb CHANGED
@@ -179,7 +179,7 @@ module GdsApi
179
179
  #
180
180
  # @return [GdsApi::Search]
181
181
  def self.search(options = {})
182
- GdsApi::Search.new(Plek.find("search"), options)
182
+ GdsApi::Search.new(Plek.find("search-api"), options)
183
183
  end
184
184
 
185
185
  # Creates a GdsApi::Support adapter
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: 83.0.0
4
+ version: 84.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-10-03 00:00:00.000000000 Z
11
+ date: 2022-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable