cognito-client 0.5.3 → 0.5.4
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/config/flay.yml +2 -2
- data/lib/cognito/client/commands/create_identity.rb +7 -5
- data/lib/cognito/client/commands/create_identity_assessment.rb +2 -1
- data/lib/cognito/client/commands/create_identity_search.rb +3 -2
- data/lib/cognito/client/params/identity.rb +6 -5
- data/lib/cognito/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 35c44fd920029319fb043a566e96e96c64b254f9
|
4
|
+
data.tar.gz: 130ea2779bad84eb50eb9a8bccb2e68c2ae83238
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab43cc1589e13e7407f6492777c8a9561ddda7507a1a21fbbc40ef68892b3875d46b9529f03a4b40b5e3abd1b1bd3e06f14785fa83035644587a60ed77cd02d0
|
7
|
+
data.tar.gz: dd70f03bd821bf2e81d8b6cac5b2545fe9f01d2babb6c93aa3ba5f33590defed69eadc24630016919912a2db98a6a73b0bb76de48b869d1b506889f8501d3455
|
data/config/flay.yml
CHANGED
@@ -6,16 +6,18 @@ class Cognito
|
|
6
6
|
class CreateIdentity < self
|
7
7
|
include Mixins::CreateBehavior,
|
8
8
|
AbstractType,
|
9
|
-
Anima.new(:connection, :name, :phone_number, :ssn, :birth)
|
9
|
+
Anima.new(:connection, :name, :phone_number, :ssn, :birth, :us_address)
|
10
10
|
|
11
|
-
private :name, :phone_number, :ssn, :birth
|
11
|
+
private :name, :phone_number, :ssn, :birth, :us_address
|
12
12
|
|
13
13
|
OMITTED = Params::Omitted.new
|
14
14
|
|
15
|
-
# ignores :reek:FeatureEnvy:
|
16
|
-
|
17
|
-
|
15
|
+
# ignores :reek:FeatureEnvy:, :reek:LongParameterList:
|
16
|
+
# rubocop:disable ParameterLists, LineLength
|
17
|
+
def initialize(name: OMITTED, phone_number: OMITTED, ssn: OMITTED, birth: OMITTED, us_address: OMITTED, **params)
|
18
|
+
super(params.merge(name: name, phone_number: phone_number, ssn: ssn, birth: birth, us_address: us_address))
|
18
19
|
end
|
20
|
+
# rubocop:enable ParameterLists, LineLength
|
19
21
|
end # CreateIdentity
|
20
22
|
end # Command
|
21
23
|
end # Client
|
@@ -5,7 +5,7 @@ class Cognito
|
|
5
5
|
class CreateIdentitySearch < CreateIdentity
|
6
6
|
include Mixins::CreateBehavior, anima.add(:profile_id)
|
7
7
|
|
8
|
-
private :profile_id, :name, :phone_number, :ssn, :birth
|
8
|
+
private :profile_id, :name, :phone_number, :ssn, :birth, :us_address
|
9
9
|
|
10
10
|
ENDPOINT = '/identity_searches'
|
11
11
|
|
@@ -17,7 +17,8 @@ class Cognito
|
|
17
17
|
name: name,
|
18
18
|
phone_number: phone_number,
|
19
19
|
ssn: ssn,
|
20
|
-
birth: birth
|
20
|
+
birth: birth,
|
21
|
+
us_address: us_address
|
21
22
|
)
|
22
23
|
end
|
23
24
|
|
@@ -4,7 +4,7 @@ class Cognito
|
|
4
4
|
class Client
|
5
5
|
class Params
|
6
6
|
class Identity < self
|
7
|
-
include AbstractType, Anima.new(:name, :phone_number, :ssn, :birth)
|
7
|
+
include AbstractType, Anima.new(:name, :phone_number, :ssn, :birth, :us_address)
|
8
8
|
|
9
9
|
abstract_method :relationships
|
10
10
|
|
@@ -32,10 +32,11 @@ class Cognito
|
|
32
32
|
|
33
33
|
def full_attributes
|
34
34
|
{
|
35
|
-
name:
|
36
|
-
phone:
|
37
|
-
ssn:
|
38
|
-
birth:
|
35
|
+
name: name,
|
36
|
+
phone: phone,
|
37
|
+
ssn: ssn,
|
38
|
+
birth: birth,
|
39
|
+
us_address: us_address
|
39
40
|
}
|
40
41
|
end
|
41
42
|
|
data/lib/cognito/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cognito-client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Connor Jacobsen
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: exe
|
12
12
|
cert_chain: []
|
13
|
-
date: 2017-
|
13
|
+
date: 2017-04-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -242,7 +242,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
242
242
|
version: '0'
|
243
243
|
requirements: []
|
244
244
|
rubyforge_project:
|
245
|
-
rubygems_version: 2.5.1
|
245
|
+
rubygems_version: 2.4.5.1
|
246
246
|
signing_key:
|
247
247
|
specification_version: 4
|
248
248
|
summary: Unofficial Ruby client for the BlockScore Cognito API
|