gds-api-adapters 47.1.2 → 47.1.3

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: a17d11273afbf8570787c39195b5a82169afbbc5
4
- data.tar.gz: 75c2fdecf164e1b60cddd4e04d75e1c17f10afb4
3
+ metadata.gz: eb1a7458edcd52899c5df1d5d01388c9306bb6b6
4
+ data.tar.gz: 6bb1d82fb017451eeae8e443833a9be30f6e1bc6
5
5
  SHA512:
6
- metadata.gz: 3b536ed4c51f78eb622c5642ac950ce0dffc5bde4c29ec1e049e9b69241682ad1af4428b9be9d6929da4b8c4bc57fbacc9c30cbc24e3993ff56199ed9a98689e
7
- data.tar.gz: b6f03de36bfd875e3ede56462744d512030df55cfc92f16aad9e589f9e887877cf6f3d4721a0918b3c96490a3fe84bdf7909787fd6b152cf31b1197a898614d8
6
+ metadata.gz: a3bfda8fb9b7c278c8330727f1e5c968c9ae36614f266cfdbb7e8f6827f947371e843e8d475a2add921170f9da346f75162949ba6e9ab77e28942d32b4137862
7
+ data.tar.gz: ddd80ae4a50e4741222b6535e1b9c8c777e9cc4f5530cf81bf1fe2f8c5696d719809b2c7e137b2a92b3c7e3a180357b6ce3655723ae8e5774fb64590090b770a
@@ -42,7 +42,7 @@ class GdsApi::PublishingApiV2 < GdsApi::Base
42
42
  #
43
43
  # @param base_paths [Array]
44
44
  # @param exclude_document_types [Array] (optional)
45
- # @param exclude_publishing_types [Array] (optional)
45
+ # @param exclude_unpublishing_types [Array] (optional)
46
46
  # @return [Hash] a hash, keyed by `base_path` with `content_id` as value
47
47
  # @example
48
48
  #
@@ -50,10 +50,10 @@ class GdsApi::PublishingApiV2 < GdsApi::Base
50
50
  # # => { "/foo" => "51ac4247-fd92-470a-a207-6b852a97f2db", "/bar" => "261bd281-f16c-48d5-82d2-9544019ad9ca" }
51
51
  #
52
52
  # @see https://github.com/alphagov/publishing-api/blob/master/doc/api.md#post-lookup-by-base-path
53
- def lookup_content_ids(base_paths:, exclude_document_types: nil, exclude_publishing_types: nil)
53
+ def lookup_content_ids(base_paths:, exclude_document_types: nil, exclude_unpublishing_types: nil)
54
54
  options = { base_paths: base_paths }
55
55
  options[:exclude_document_types] = exclude_document_types if exclude_document_types
56
- options[:exclude_publishing_types] = exclude_publishing_types if exclude_publishing_types
56
+ options[:exclude_unpublishing_types] = exclude_unpublishing_types if exclude_unpublishing_types
57
57
  response = post_json("#{endpoint}/lookup-by-base-path", options)
58
58
  response.to_hash
59
59
  end
@@ -65,7 +65,7 @@ class GdsApi::PublishingApiV2 < GdsApi::Base
65
65
  #
66
66
  # @param base_path [String]
67
67
  # @param exclude_document_types [Array] (optional)
68
- # @param exclude_publishing_types [Array] (optional)
68
+ # @param exclude_unpublishing_types [Array] (optional)
69
69
  #
70
70
  # @return [UUID] the `content_id` for the `base_path`
71
71
  #
@@ -75,11 +75,11 @@ class GdsApi::PublishingApiV2 < GdsApi::Base
75
75
  # # => "51ac4247-fd92-470a-a207-6b852a97f2db"
76
76
  #
77
77
  # @see https://github.com/alphagov/publishing-api/blob/master/doc/api.md#post-lookup-by-base-path
78
- def lookup_content_id(base_path:, exclude_document_types: nil, exclude_publishing_types: nil)
78
+ def lookup_content_id(base_path:, exclude_document_types: nil, exclude_unpublishing_types: nil)
79
79
  lookups = lookup_content_ids(
80
80
  base_paths: [base_path],
81
81
  exclude_document_types: exclude_document_types,
82
- exclude_publishing_types: exclude_publishing_types
82
+ exclude_unpublishing_types: exclude_unpublishing_types
83
83
  )
84
84
  lookups[base_path]
85
85
  end
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '47.1.2'.freeze
2
+ VERSION = '47.1.3'.freeze
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: 47.1.2
4
+ version: 47.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Stewart
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-07-05 00:00:00.000000000 Z
11
+ date: 2017-07-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: plek