cognito-client 0.5.2 → 0.5.3
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/.gitignore +2 -0
- data/circleci.sh +2 -2
- data/cognito.gemspec +1 -1
- data/config/flay.yml +2 -2
- data/config/rubocop.yml +2 -0
- data/lib/cognito/client/commands/create_identity.rb +4 -4
- data/lib/cognito/client/commands/create_identity_assessment.rb +3 -1
- data/lib/cognito/client/commands/create_identity_search.rb +4 -2
- data/lib/cognito/client/params/identity.rb +4 -2
- data/lib/cognito/client/resource/identity_search.rb +5 -0
- data/lib/cognito/version.rb +1 -1
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0131065ce58c573d482b4a8c3771c67b724ebc90
|
4
|
+
data.tar.gz: 42a45e5669377f73b1d8cf611a88904ca222f7f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c89dc6b126beba347a3f80df29421bf78d86be7191e0b96333570cb9d25a4e007d310235cdad1a2279e4b1601e22d2c34a5633722b6da17acfc289afeabe1d0
|
7
|
+
data.tar.gz: f6d1e1338c882e078e493c48df5129b4c9f241aec273708f3640c8d51b4400ebce8ee43ddb6a8bf960171da2939cfe0b1a6c3c56a644c3ee3b8e0817ec74ed43
|
data/.gitignore
CHANGED
data/circleci.sh
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
#!/bin/bash
|
2
|
-
RUBY_VERSIONS=(2.
|
2
|
+
RUBY_VERSIONS=(2.3.3 2.4.1)
|
3
3
|
CIRCLE_NODE_RUBY_VERSION="${RUBY_VERSIONS[$CIRCLE_NODE_INDEX]}"
|
4
4
|
NUM_RUBIES=${#RUBY_VERSIONS[@]}
|
5
|
-
METRICS_BUILD_RUBY_VERSION="2.3.
|
5
|
+
METRICS_BUILD_RUBY_VERSION="2.3.3"
|
6
6
|
|
7
7
|
if [ "$CIRCLE_NODE_TOTAL" -le "$NUM_RUBIES" ]; then
|
8
8
|
echo "Cannot test $NUM_RUBIES ruby versions and metrics on $CIRCLE_NODE_TOTAL containers"
|
data/cognito.gemspec
CHANGED
@@ -30,5 +30,5 @@ Gem::Specification.new do |spec|
|
|
30
30
|
spec.add_dependency 'ice_nine', '~> 0.11.2'
|
31
31
|
|
32
32
|
spec.add_runtime_dependency 'http', '~> 2.0', '>= 2.0.3'
|
33
|
-
spec.add_runtime_dependency 'addressable', '~> 2.4', '
|
33
|
+
spec.add_runtime_dependency 'addressable', '~> 2.4', '= 2.4.0'
|
34
34
|
end
|
data/config/flay.yml
CHANGED
data/config/rubocop.yml
CHANGED
@@ -6,15 +6,15 @@ class Cognito
|
|
6
6
|
class CreateIdentity < self
|
7
7
|
include Mixins::CreateBehavior,
|
8
8
|
AbstractType,
|
9
|
-
Anima.new(:connection, :name, :phone_number)
|
9
|
+
Anima.new(:connection, :name, :phone_number, :ssn, :birth)
|
10
10
|
|
11
|
-
private :name, :phone_number
|
11
|
+
private :name, :phone_number, :ssn, :birth
|
12
12
|
|
13
13
|
OMITTED = Params::Omitted.new
|
14
14
|
|
15
15
|
# ignores :reek:FeatureEnvy:
|
16
|
-
def initialize(name: OMITTED, phone_number: OMITTED, **params)
|
17
|
-
super(params.merge(name: name, phone_number: phone_number))
|
16
|
+
def initialize(name: OMITTED, phone_number: OMITTED, ssn: OMITTED, birth: OMITTED, **params)
|
17
|
+
super(params.merge(name: name, phone_number: phone_number, ssn: ssn, birth: birth))
|
18
18
|
end
|
19
19
|
end # CreateIdentity
|
20
20
|
end # Command
|
@@ -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
|
8
|
+
private :profile_id, :name, :phone_number, :ssn, :birth
|
9
9
|
|
10
10
|
ENDPOINT = '/identity_searches'
|
11
11
|
|
@@ -15,7 +15,9 @@ class Cognito
|
|
15
15
|
Params::IdentitySearch.call(
|
16
16
|
profile_id: profile_id,
|
17
17
|
name: name,
|
18
|
-
phone_number: phone_number
|
18
|
+
phone_number: phone_number,
|
19
|
+
ssn: ssn,
|
20
|
+
birth: birth
|
19
21
|
)
|
20
22
|
end
|
21
23
|
|
@@ -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)
|
7
|
+
include AbstractType, Anima.new(:name, :phone_number, :ssn, :birth)
|
8
8
|
|
9
9
|
abstract_method :relationships
|
10
10
|
|
@@ -33,7 +33,9 @@ class Cognito
|
|
33
33
|
def full_attributes
|
34
34
|
{
|
35
35
|
name: name,
|
36
|
-
phone: phone
|
36
|
+
phone: phone,
|
37
|
+
ssn: ssn,
|
38
|
+
birth: birth
|
37
39
|
}
|
38
40
|
end
|
39
41
|
|
@@ -26,6 +26,8 @@ class Cognito
|
|
26
26
|
attribute :city
|
27
27
|
attribute :subdivision
|
28
28
|
attribute :postal_code
|
29
|
+
attribute :country_code
|
30
|
+
attribute :usage
|
29
31
|
end # USAddress
|
30
32
|
|
31
33
|
class PartialName < self
|
@@ -40,6 +42,9 @@ class Cognito
|
|
40
42
|
register_type :ssn
|
41
43
|
|
42
44
|
attribute :number
|
45
|
+
attribute :area
|
46
|
+
attribute :group
|
47
|
+
attribute :serial
|
43
48
|
end # SSN
|
44
49
|
|
45
50
|
class Phone < self
|
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.3
|
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:
|
13
|
+
date: 2017-03-24 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: bundler
|
@@ -151,7 +151,7 @@ dependencies:
|
|
151
151
|
- - "~>"
|
152
152
|
- !ruby/object:Gem::Version
|
153
153
|
version: '2.4'
|
154
|
-
- -
|
154
|
+
- - '='
|
155
155
|
- !ruby/object:Gem::Version
|
156
156
|
version: 2.4.0
|
157
157
|
type: :runtime
|
@@ -161,7 +161,7 @@ dependencies:
|
|
161
161
|
- - "~>"
|
162
162
|
- !ruby/object:Gem::Version
|
163
163
|
version: '2.4'
|
164
|
-
- -
|
164
|
+
- - '='
|
165
165
|
- !ruby/object:Gem::Version
|
166
166
|
version: 2.4.0
|
167
167
|
description:
|