gds-api-adapters 28.0.1 → 28.0.2

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
  SHA1:
3
- metadata.gz: 606ac6d20d4f73597adec15c851a6baca613eea1
4
- data.tar.gz: 9dbcde8b59d5ab75736d10dc5572c00b7070a463
3
+ metadata.gz: ae2b8c300b0806e2a61911133d3de290e84777c1
4
+ data.tar.gz: 622bec9c3dd19e774be56f68ef7579b8b9108e9b
5
5
  SHA512:
6
- metadata.gz: ac95a5957ec3505424bc8f8ccafaadd7e5bbd32c23a542b386e5d47784310ddcada06a4863a1b17248cf58c63639f58c7fa1f81427c6a53c9001e11aef870abf
7
- data.tar.gz: 0fcdd904141557496e677ad2e2f54353988739b7ba24f616f29d5a03ac12007420dbeafeb7437848739e464cabdecb284ab5eefa3bc857ef507fafae8d96c9be
6
+ metadata.gz: bb6cfca105105e40265f46308c80f912b0de71d69d80c040d236cbfda866f4fa4f65f5bb2c6110749ba97fe7221e914a602cd6a808d46404f2e3197e4ca3ad3c
7
+ data.tar.gz: 7c8daf926635bb741e6ffbc62448d406fedaa2382fb9e4be0a1de41686052e2772f13b9813a65e967673f8c03fae833d90516e4d194fbf446ca65035f7fdcc82
@@ -154,6 +154,12 @@ module GdsApi
154
154
  stub_request(:get, url).to_return(status: 200, body: item.to_json, headers: {})
155
155
  end
156
156
 
157
+ def publishing_api_has_links(links)
158
+ links = links.with_indifferent_access
159
+ url = PUBLISHING_API_V2_ENDPOINT + "/links/" + links[:content_id]
160
+ stub_request(:get, url).to_return(status: 200, body: links.to_json, headers: {})
161
+ end
162
+
157
163
  private
158
164
  def stub_publishing_api_put(content_id, body, resource_path, override_response_hash = {})
159
165
  response_hash = {status: 200, body: '{}', headers: {"Content-Type" => "application/json; charset=utf-8"}}
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '28.0.1'
2
+ VERSION = '28.0.2'
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: 28.0.1
4
+ version: 28.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Stewart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-02-12 00:00:00.000000000 Z
11
+ date: 2016-02-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: plek