isaca 1.3.1 → 1.4.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/isaca/requests/report_consent.rb +7 -3
- data/lib/isaca/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: bac16e0174197d9abe24d4e9cc7db03cd0a5bf48f8a5cb8c8169b6a01ee90ba7
|
4
|
+
data.tar.gz: f18c59536d0f111e03e757017cb98535f768bcf2922164dc121b4932dfed3166
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 03f4cf74efa90604d3dfb80a534d3b28b63bf440b843433b1469d10b4c561cab04a681b7c6d27e8c4f5808a333dfb755d39b47d71e5ff956d71860b4d344d616
|
7
|
+
data.tar.gz: 05fa90333f8e3c302b496e513276224a83b5db8693c149a0531aac40216f769577116a99b04300b7ed06e020ff75ec72feac386540ac11389447101cbfbb0b83
|
@@ -6,14 +6,15 @@ module Isaca
|
|
6
6
|
# and only submit this request when you have validated the acceptance of the privacy policy.
|
7
7
|
#
|
8
8
|
# @param imis_id [String] The ISACA ID of the user reporting consent
|
9
|
+
# @param email [String] The email of the user reporting consent
|
9
10
|
# @param options [Hash] Optional. If not provided, marketing consent will default to NO [0].
|
10
11
|
#
|
11
12
|
# == Options
|
12
13
|
# [marketing] Consent for marketing. Acceptable values are 0 [for NO] and 1 [for YES].
|
13
14
|
#
|
14
15
|
# @return [Faraday::Response] Returns a response object
|
15
|
-
def self.get(imis_id, options={})
|
16
|
-
self.send_request(imis_id, {marketing: 0}.merge(options))
|
16
|
+
def self.get(imis_id, email, options={})
|
17
|
+
self.send_request(imis_id, email, {marketing: 0}.merge(options))
|
17
18
|
end
|
18
19
|
|
19
20
|
private
|
@@ -21,17 +22,20 @@ module Isaca
|
|
21
22
|
# Method used to send request -- exists to ease testing
|
22
23
|
#
|
23
24
|
# @param imis_id [String] The ISACA ID of the user reporting consent
|
25
|
+
# @param email [String] The email of the user reporting consent
|
24
26
|
# @param options [Hash] Optional. If not provided, marketing consent will default to NO [0].
|
25
27
|
#
|
26
28
|
# == Options
|
27
29
|
# [marketing] Consent for marketing. Acceptable values are 0 [for NO] and 1 [for YES].
|
28
30
|
#
|
29
31
|
# @return [Faraday::Response] Returns a response object
|
30
|
-
def self.send_request(imis_id, options={})
|
32
|
+
def self.send_request(imis_id, email, options={})
|
31
33
|
Isaca::Request.get do |request|
|
32
34
|
request.path = request.path + '/ReportConsent'
|
33
35
|
request.params['MarketingConsent'] = options[:marketing]
|
34
36
|
request.params['iMISID'] = imis_id
|
37
|
+
request.params['Source'] = Isaca.configuration.user_agent
|
38
|
+
request.params['Email'] = email
|
35
39
|
end
|
36
40
|
end
|
37
41
|
end
|
data/lib/isaca/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: isaca
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.4.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Matt Orahood
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-
|
11
|
+
date: 2019-07-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: faraday
|