gds-api-adapters 26.3.0 → 26.3.1
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/publishing_api_v2.rb +6 -3
- data/lib/gds_api/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 28d2b20efe3657e43b513e3c43dc9533a2ef5413
|
4
|
+
data.tar.gz: 6c031a36be576bf3101d65cf4ed62b3667ebba2f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: dc7a2c55870b748f631a943998af7ea6d588f03ea30a3c29dd575e74b7fc1314b2453cfa9f015bd29294dd7963983a418293b3e296360ee979b2bd7811627619
|
7
|
+
data.tar.gz: c71c2e06c2f7a6e63242b629f34e96d20f30f65d7cd5af7333898f6f814898bf665a20b1017aab61ab3607ef3f2a24af138a6fcca70e0191a3b0d421287b9074
|
@@ -28,13 +28,16 @@ module GdsApi
|
|
28
28
|
stub_request(:post, url).to_return(status: 200, headers: {"Content-Type" => "application/json; charset=utf-8"})
|
29
29
|
end
|
30
30
|
|
31
|
-
def stub_publishing_api_put_content_links_and_publish(body, content_id = nil,
|
31
|
+
def stub_publishing_api_put_content_links_and_publish(body, content_id = nil, publish_body = nil)
|
32
32
|
content_id ||= body[:content_id]
|
33
|
-
|
33
|
+
if publish_body.nil?
|
34
|
+
publish_body = { update_type: body.fetch(:update_type) }
|
35
|
+
publish_body[:locale] = body[:locale] if body[:locale]
|
36
|
+
end
|
34
37
|
stubs = []
|
35
38
|
stubs << stub_publishing_api_put_content(content_id, body.except(:links))
|
36
39
|
stubs << stub_publishing_api_put_links(content_id, body.slice(:links)) unless body.slice(:links).empty?
|
37
|
-
stubs << stub_publishing_api_publish(content_id,
|
40
|
+
stubs << stub_publishing_api_publish(content_id, publish_body)
|
38
41
|
stubs
|
39
42
|
end
|
40
43
|
|
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: 26.3.
|
4
|
+
version: 26.3.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Stewart
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-12-
|
11
|
+
date: 2015-12-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: plek
|