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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 48308a55c6827b26fd901de0b458fe22a83d4164ad499b9598e1d67f48451799
4
- data.tar.gz: 9f7bcf7726a601ece69c9965afea1654197525c0cdabf853326824d6ac6651f6
3
+ metadata.gz: bac16e0174197d9abe24d4e9cc7db03cd0a5bf48f8a5cb8c8169b6a01ee90ba7
4
+ data.tar.gz: f18c59536d0f111e03e757017cb98535f768bcf2922164dc121b4932dfed3166
5
5
  SHA512:
6
- metadata.gz: 8444ee8083ea72dc71ff60dd2c56568e69571edb0bd38b75c8ef47480507097a0d39eb1b5671f6b30fe1f11ce48be248ecfb1d87a8c00547ed57f0c0530230f0
7
- data.tar.gz: 4a211c8cfe984de43b0715cc9699d04165ae3d789afa0b58d64f92c2588c2df5d1e602aecb34855fb703a62639f51125d6f68b93ed0333377c441744a629cd3d
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
@@ -1,3 +1,3 @@
1
1
  module Isaca
2
- VERSION = "1.3.1"
2
+ VERSION = "1.4.0"
3
3
  end
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.3.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-06-24 00:00:00.000000000 Z
11
+ date: 2019-07-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: faraday