gds-api-adapters 28.0.0 → 28.0.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 +5 -5
- 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: 606ac6d20d4f73597adec15c851a6baca613eea1
|
4
|
+
data.tar.gz: 9dbcde8b59d5ab75736d10dc5572c00b7070a463
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ac95a5957ec3505424bc8f8ccafaadd7e5bbd32c23a542b386e5d47784310ddcada06a4863a1b17248cf58c63639f58c7fa1f81427c6a53c9001e11aef870abf
|
7
|
+
data.tar.gz: 0fcdd904141557496e677ad2e2f54353988739b7ba24f616f29d5a03ac12007420dbeafeb7437848739e464cabdecb284ab5eefa3bc857ef507fafae8d96c9be
|
@@ -85,22 +85,22 @@ module GdsApi
|
|
85
85
|
assert_publishing_api_publish(content_id, publish_body)
|
86
86
|
end
|
87
87
|
|
88
|
-
def assert_publishing_api_put_content(content_id, attributes_or_matcher =
|
88
|
+
def assert_publishing_api_put_content(content_id, attributes_or_matcher = nil, times = 1)
|
89
89
|
url = PUBLISHING_API_V2_ENDPOINT + "/content/" + content_id
|
90
90
|
assert_publishing_api(:put, url, attributes_or_matcher, times)
|
91
91
|
end
|
92
92
|
|
93
|
-
def assert_publishing_api_publish(content_id, attributes_or_matcher =
|
93
|
+
def assert_publishing_api_publish(content_id, attributes_or_matcher = nil, times = 1)
|
94
94
|
url = PUBLISHING_API_V2_ENDPOINT + "/content/#{content_id}/publish"
|
95
95
|
assert_publishing_api(:post, url, attributes_or_matcher, times)
|
96
96
|
end
|
97
97
|
|
98
|
-
def assert_publishing_api_put_links(content_id, attributes_or_matcher =
|
98
|
+
def assert_publishing_api_put_links(content_id, attributes_or_matcher = nil, times = 1)
|
99
99
|
url = PUBLISHING_API_V2_ENDPOINT + "/links/" + content_id
|
100
100
|
assert_publishing_api(:put, url, attributes_or_matcher, times)
|
101
101
|
end
|
102
102
|
|
103
|
-
def assert_publishing_api_discard_draft(content_id, attributes_or_matcher =
|
103
|
+
def assert_publishing_api_discard_draft(content_id, attributes_or_matcher = nil, times = 1)
|
104
104
|
url = PUBLISHING_API_V2_ENDPOINT + "/content/#{content_id}/discard-draft"
|
105
105
|
assert_publishing_api(:post, url, attributes_or_matcher, times)
|
106
106
|
end
|
@@ -135,7 +135,7 @@ module GdsApi
|
|
135
135
|
end
|
136
136
|
|
137
137
|
def publishing_api_has_fields_for_format(format, items, fields)
|
138
|
-
body = items.map { |item|
|
138
|
+
body = Array(items).map { |item|
|
139
139
|
item.with_indifferent_access.slice(*fields)
|
140
140
|
}
|
141
141
|
|
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: 28.0.
|
4
|
+
version: 28.0.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: 2016-02-
|
11
|
+
date: 2016-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: plek
|