gds-api-adapters 81.0.3 → 81.0.4

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: 0b11bd7eb4a668b5790fdb64c024873a3b0b3df0ade81e8b9f3b5544d96a9398
4
- data.tar.gz: 39cae6d431d650c0ad17462036a8f3a7934699699fd70637de826a99a0a43e41
3
+ metadata.gz: 66c70fc3c5113cb579afbccfbca8acc7254ad94f5364bc649dd965e43c06b0be
4
+ data.tar.gz: 9d06eab53ce1687a7cea9488d69d5a5625b34c0ce1a76f56e4cc30f5d1130e7a
5
5
  SHA512:
6
- metadata.gz: 371d714c774758917e44223f938a2cd39ae0cc9111b4fd492c4532b8c6b8a615d0d6183a396401336a8facd428d5112a9ff5d029da03c42af45545f1dc7ba4fd
7
- data.tar.gz: 2004337b8f10dafb2130d6e1b50dfd65bd78b74640319b78bccea1ddb82882c09c358930ec9d789d9f9a6e35036cc9f95f72cbd964f9f711af3f7911fd18ce0b
6
+ metadata.gz: ba545b1ba297060debce12f44352d074c945985bdda877f150d436a460946b09134554c08b487c7be640894c4496c3aded73bddd67ca734226a9d480cba7eea5
7
+ data.tar.gz: 6f82e7bf9eeb166d9353e6104fb9a03fd9c8be1cd17f43eeb750f5e0aa763209b36ddc69c3184b61bb7e066fe02152d161b98ec0ff9cd20989e5206ee0b64db6
@@ -98,7 +98,7 @@ module GdsApi
98
98
  parameters
99
99
  end
100
100
 
101
- def stub_local_links_manager_has_a_local_authority(authority_slug, country_name: "England", local_custodian_code: nil)
101
+ def stub_local_links_manager_has_a_local_authority(authority_slug, country_name: "England", snac: "00AG", local_custodian_code: nil)
102
102
  response = {
103
103
  "local_authorities" => [
104
104
  {
@@ -107,6 +107,7 @@ module GdsApi
107
107
  "country_name" => country_name,
108
108
  "tier" => "unitary",
109
109
  "slug" => authority_slug,
110
+ "snac" => snac,
110
111
  },
111
112
  ],
112
113
  }
@@ -122,7 +123,7 @@ module GdsApi
122
123
  end
123
124
  end
124
125
 
125
- def stub_local_links_manager_has_a_district_and_county_local_authority(district_slug, county_slug, local_custodian_code: nil)
126
+ def stub_local_links_manager_has_a_district_and_county_local_authority(district_slug, county_slug, district_snac: "00AG", county_snac: "00LC", local_custodian_code: nil)
126
127
  response = {
127
128
  "local_authorities" => [
128
129
  {
@@ -131,6 +132,7 @@ module GdsApi
131
132
  "country_name" => "England",
132
133
  "tier" => "district",
133
134
  "slug" => district_slug,
135
+ "snac" => district_snac,
134
136
  },
135
137
  {
136
138
  "name" => county_slug.capitalize,
@@ -138,6 +140,7 @@ module GdsApi
138
140
  "country_name" => "England",
139
141
  "tier" => "county",
140
142
  "slug" => county_slug,
143
+ "snac" => county_snac,
141
144
  },
142
145
  ],
143
146
  }
@@ -177,7 +180,7 @@ module GdsApi
177
180
  .to_return(body: {}.to_json, status: 404)
178
181
  end
179
182
 
180
- def stub_local_links_manager_has_a_local_authority_without_homepage(authority_slug, country_name: "England", local_custodian_code: nil)
183
+ def stub_local_links_manager_has_a_local_authority_without_homepage(authority_slug, country_name: "England", snac: "00AG", local_custodian_code: nil)
181
184
  response = {
182
185
  "local_authorities" => [
183
186
  {
@@ -186,6 +189,7 @@ module GdsApi
186
189
  "country_name" => country_name,
187
190
  "tier" => "unitary",
188
191
  "slug" => authority_slug,
192
+ "snac" => snac,
189
193
  },
190
194
  ],
191
195
  }
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = "81.0.3".freeze
2
+ VERSION = "81.0.4".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: 81.0.3
4
+ version: 81.0.4
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-08-01 00:00:00.000000000 Z
11
+ date: 2022-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable