gds-api-adapters 31.3.0 → 31.4.0

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: a632947b8c77bcd0da0efeda49532671e6fa3a4a
4
- data.tar.gz: 714693cbc81510f7ef84d351c0ca54662a51642a
3
+ metadata.gz: f1d2d6fa7d1e06178938f8bfc2dfc9c2dff6cce9
4
+ data.tar.gz: a353fc5d44e6190d2b33ea88279992122081edd5
5
5
  SHA512:
6
- metadata.gz: f05bd5433cb0e009a2c86d70d935e198d1ea44c9b9d75d64254a2732506646ee7f5f89eb7c78acc1ef5e887c2bc1f1a2e399a344c055b293992d237c64d73af2
7
- data.tar.gz: c89931fdd2639f70dba68bcc8c8f4acbd955242e3d5c039993c700967dc2a03522bfe6d6331a2865dbe470b78b63b87b7aec88c66882d0a05cfe3d0c2a094c8b
6
+ metadata.gz: d4ceec5bd237d900a3a3d4eec48212afd6f8665b1ed4efe26babbb481ba2e18b89b120fb9c1c279ba98f1359785e3c2a5fe2276387d28ccd413c3b22dd7baf1d
7
+ data.tar.gz: 30304753613699ff2c9f81ca7be4dd0bd89016f8b20eafb5b2b627cf71aebb822a03fb5a64b63aaf9d061180c69763d69bba312fdfb75c0df4732186ec5b8358
@@ -121,7 +121,7 @@ class GdsApi::PublishingApiV2 < GdsApi::Base
121
121
  # @param locale [String] (optional) The content item locale.
122
122
  #
123
123
  # @see https://github.com/alphagov/publishing-api/blob/master/doc/publishing-api-syntactic-usage.md#post-v2contentcontent_idunpublish
124
- def unpublish(content_id, type:, explanation: nil, alternative_path: nil, discard_drafts: false, previous_version: nil, locale: nil)
124
+ def unpublish(content_id, type:, explanation: nil, alternative_path: nil, discard_drafts: false, allow_draft: false, previous_version: nil, locale: nil)
125
125
  params = {
126
126
  type: type
127
127
  }
@@ -130,6 +130,7 @@ class GdsApi::PublishingApiV2 < GdsApi::Base
130
130
  params.merge!(alternative_path: alternative_path) if alternative_path
131
131
  params.merge!(previous_version: previous_version) if previous_version
132
132
  params.merge!(discard_drafts: discard_drafts) if discard_drafts
133
+ params.merge!(allow_draft: allow_draft) if allow_draft
133
134
  params.merge!(locale: locale) if locale
134
135
 
135
136
  post_json!(unpublish_url(content_id), params)
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '31.3.0'
2
+ VERSION = '31.4.0'
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: 31.3.0
4
+ version: 31.4.0
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-07-01 00:00:00.000000000 Z
11
+ date: 2016-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: plek