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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 870281543131945956db07f68ed9a45f187029ed
4
- data.tar.gz: 3a599a9b46c1d2a861767b048df49c7bb7ee6fdc
3
+ metadata.gz: 606ac6d20d4f73597adec15c851a6baca613eea1
4
+ data.tar.gz: 9dbcde8b59d5ab75736d10dc5572c00b7070a463
5
5
  SHA512:
6
- metadata.gz: ab77593360e531b34edbcff5020f106485e8c0a30f7b1dfabb5a979ce991784315bf7647c8ff9aae4ffacfcc7a960ddf9c1abb735f9ec62b7babdd34ad80f9f6
7
- data.tar.gz: 5bec49b0359722e2086413af210d188d8b97a28c7f7e21f1ee98edf219eb7c96a0a1fa1d51cbd94ac35059230e21bfb310165ffb95b309a1a00730e0d0ad76f9
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 = {}, times = 1)
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 = {}, times = 1)
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 = {}, times = 1)
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 = {}, times = 1)
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
 
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '28.0.0'
2
+ VERSION = '28.0.1'
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.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-10 00:00:00.000000000 Z
11
+ date: 2016-02-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: plek