gds-api-adapters 85.0.0 → 85.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
  SHA256:
3
- metadata.gz: d0e7c159e27c8d969ceda2b447b8fcf1fe39528236bd924ee7dd33c97e27b6ea
4
- data.tar.gz: c19e0660b7cf3e5ea2bd59ea39b940d45cd475230f45805f6f886606ab039e76
3
+ metadata.gz: 2b0dc3a7a3430d48165ca6e1b8720675dc9a1e5a94e8180d881d10f55af0c3a1
4
+ data.tar.gz: d12927fcfda065d8f8e9a51fbf01bcca3a4a8dd9e8b77550ed7cba34cb3b5145
5
5
  SHA512:
6
- metadata.gz: 765fd1eda340f5b5f38935d7502ef13429c69794044176e282e4884d7c5623a60d3b98c5931205ad198d490c5f42d9ee3b2fe17c68664cf819e617dfc68c9af3
7
- data.tar.gz: 1f57b304c744502c45f6c4640bc294c42d33c20034204b27dd260aa277711163ada24e28ce7a843a6f97efa35f298fa6e5582e3b9e338f13501e5d1b17ad8a9e
6
+ metadata.gz: 7d3833134e981234ae2b3a9abc1c433b1f7e51c96fbc0b733f0e0ec325b515dea0513ae9fabcb7767c9a4a93117066429061aecd1a25a4d3ff50777655bfdaf7
7
+ data.tar.gz: d0774cdaa3d94aa927aa54c451434eb6036e2c4973864ee770186943f7fb106bbbf21e98756f11a274147c5e7568f22193781263fa20423876a3fb680ec983bd
@@ -11,8 +11,8 @@ class GdsApi::EmailAlertApi < GdsApi::Base
11
11
  # @param attributes [Hash] document_type, links, tags used to search existing subscriber lists
12
12
  def find_or_create_subscriber_list(attributes)
13
13
  present_fields = [attributes["content_id"], attributes["links"], attributes["tags"]].compact.count
14
- if present_fields > 1
15
- message = "please provide content_id, tags, or links (or none), but not more than one of them"
14
+ if (present_fields > 1) && (attributes["tags"])
15
+ message = "Invalid attributes provided. Valid attributes are content_id only, tags only, links only, content_id AND links, or none."
16
16
  raise ArgumentError, message
17
17
  end
18
18
 
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = "85.0.0".freeze
2
+ VERSION = "85.0.1".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: 85.0.0
4
+ version: 85.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-12-05 00:00:00.000000000 Z
11
+ date: 2023-01-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: addressable
@@ -417,7 +417,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
417
417
  - !ruby/object:Gem::Version
418
418
  version: '0'
419
419
  requirements: []
420
- rubygems_version: 3.3.26
420
+ rubygems_version: 3.4.5
421
421
  signing_key:
422
422
  specification_version: 4
423
423
  summary: Adapters to work with GDS APIs