gds-api-adapters 1.5.0 → 1.6.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -9,14 +9,18 @@ module GdsApi
9
9
  body = plural_response_base.merge(
10
10
  "results" => slugs.map do |slug|
11
11
  {
12
- "id" => "http://contentapi.test.gov.uk/tags/#{slug}.json",
13
- "web_url" => "http://www.test.gov.uk/browse/#{slug}",
12
+ "id" => "http://contentapi.test.gov.uk/tags/#{CGI.escape(slug)}.json",
13
+ "web_url" => nil,
14
14
  "title" => slug.gsub("-", " ").capitalize,
15
15
  "details" => {
16
16
  "type" => "section",
17
17
  "description" => "#{slug} description"
18
18
  },
19
- "parent" => nil
19
+ "parent" => nil,
20
+ "content_with_tag" => {
21
+ "id" => "http://contentapi.test.gov.uk/with_tag.json?tag=#{CGI.escape(slug)}",
22
+ "web_url" => "http://www.test.gov.uk/browse/#{slug}"
23
+ }
20
24
  }
21
25
  end
22
26
  )
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '1.5.0'
2
+ VERSION = '1.6.0'
3
3
  end
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: gds-api-adapters
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 1.5.0
5
+ version: 1.6.0
6
6
  platform: ruby
7
7
  authors:
8
8
  - James Stewart
@@ -203,7 +203,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
203
203
  requirements:
204
204
  - - ">="
205
205
  - !ruby/object:Gem::Version
206
- hash: 2704844280154427549
206
+ hash: -3981900027952463709
207
207
  segments:
208
208
  - 0
209
209
  version: "0"
@@ -212,7 +212,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
212
212
  requirements:
213
213
  - - ">="
214
214
  - !ruby/object:Gem::Version
215
- hash: 2704844280154427549
215
+ hash: -3981900027952463709
216
216
  segments:
217
217
  - 0
218
218
  version: "0"