gds-api-adapters 81.0.3 → 81.0.4
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/test_helpers/local_links_manager.rb +7 -3
- 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: 66c70fc3c5113cb579afbccfbca8acc7254ad94f5364bc649dd965e43c06b0be
|
4
|
+
data.tar.gz: 9d06eab53ce1687a7cea9488d69d5a5625b34c0ce1a76f56e4cc30f5d1130e7a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
}
|
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: 81.0.
|
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-
|
11
|
+
date: 2022-08-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: addressable
|