gds-api-adapters 41.0.0 → 41.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/lib/gds_api/email_alert_api.rb +6 -0
- data/lib/gds_api/test_helpers/email_alert_api.rb +6 -0
- 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: 7992dadadafedd2f4a78b3f3aeccddcb1e15a6be
|
|
4
|
+
data.tar.gz: 4fcac2729f4e7fb28b84f0a5771315b36c097d1b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 913d52a000766f5c91b25cf960947175627189dec6f4a9c54598cb7ce76b0027127d00457e09fc971a01fbaa51ad4dc762fefb613bf3c5250d1cf0b7064fb4cb
|
|
7
|
+
data.tar.gz: b74de893e395a9201f9611fbafcad6490574f7b69685788700485adf18075cf8496a43b57f7e77987c6bd5df94477c5f8e848d95b8da757fd9b12cb906a39c7c
|
|
@@ -13,6 +13,9 @@ class GdsApi::EmailAlertApi < GdsApi::Base
|
|
|
13
13
|
tags = attributes["tags"]
|
|
14
14
|
links = attributes["links"]
|
|
15
15
|
document_type = attributes["document_type"]
|
|
16
|
+
email_document_supertype = attributes["email_document_supertype"]
|
|
17
|
+
government_document_supertype = attributes["government_document_supertype"]
|
|
18
|
+
gov_delivery_id = attributes["gov_delivery_id"]
|
|
16
19
|
|
|
17
20
|
if tags && links
|
|
18
21
|
message = "please provide either tags or links (or neither), but not both"
|
|
@@ -23,6 +26,9 @@ class GdsApi::EmailAlertApi < GdsApi::Base
|
|
|
23
26
|
params[:tags] = tags if tags
|
|
24
27
|
params[:links] = links if links
|
|
25
28
|
params[:document_type] = document_type if document_type
|
|
29
|
+
params[:email_document_supertype] = email_document_supertype if email_document_supertype
|
|
30
|
+
params[:government_document_supertype] = government_document_supertype if government_document_supertype
|
|
31
|
+
params[:gov_delivery_id] = gov_delivery_id if gov_delivery_id
|
|
26
32
|
|
|
27
33
|
search_subscriber_list(params)
|
|
28
34
|
rescue GdsApi::HTTPNotFound
|
|
@@ -100,11 +100,17 @@ module GdsApi
|
|
|
100
100
|
tags = attributes["tags"]
|
|
101
101
|
links = attributes["links"]
|
|
102
102
|
document_type = attributes["document_type"]
|
|
103
|
+
email_document_supertype = attributes["email_document_supertype"]
|
|
104
|
+
government_document_supertype = attributes["government_document_supertype"]
|
|
105
|
+
gov_delivery_id = attributes["gov_delivery_id"]
|
|
103
106
|
|
|
104
107
|
params = {}
|
|
105
108
|
params[:tags] = tags if tags
|
|
106
109
|
params[:links] = links if links
|
|
107
110
|
params[:document_type] = document_type if document_type
|
|
111
|
+
params[:email_document_supertype] = email_document_supertype if email_document_supertype
|
|
112
|
+
params[:government_document_supertype] = government_document_supertype if government_document_supertype
|
|
113
|
+
params[:gov_delivery_id] = gov_delivery_id if gov_delivery_id
|
|
108
114
|
|
|
109
115
|
query = Rack::Utils.build_nested_query(params)
|
|
110
116
|
end
|
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: 41.
|
|
4
|
+
version: 41.1.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: 2017-03-
|
|
11
|
+
date: 2017-03-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: plek
|