alloy-kyc 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -0
- data/README.md +1 -0
- data/lib/alloy/kyc/backends/remote.rb +2 -2
- data/lib/alloy/kyc/configuration.rb +1 -1
- data/lib/alloy/kyc/evaluation.rb +2 -2
- data/lib/alloy/kyc/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: c974670d0a31754cae8c6436b49eaef75943234d
|
4
|
+
data.tar.gz: 0b1a9193002ae0de909edce4890495300be6e7b9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 80579f2511193fede6de8ff9a040705381e2fb792e69358aa5339e020ea62a03ef57c56b8569ff740fdf0b7fcc550bb1d069b0b542da71567cd5e37928a65f47
|
7
|
+
data.tar.gz: e19ff492ff1a4a964abf1865cf8441f065357e110c3fa181ba1ffda4a1178fca7a019577863ab7ee29e476e0d4106c27fcdcdedf9a1842265cd063cb143c5313
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -22,6 +22,7 @@ Configure the gem using your issued Alloy credentials in an initializer file. Fo
|
|
22
22
|
Alloy::KYC.configure do |config|
|
23
23
|
config.application_token = ENV['ALLOY_APPLICATION_TOKEN']
|
24
24
|
config.application_secret = ENV['ALLOY_APPLICATION_SECRET']
|
25
|
+
config.api_endpoint = "https://alloy.co/v1/"
|
25
26
|
end
|
26
27
|
```
|
27
28
|
|
@@ -11,7 +11,7 @@ module Alloy
|
|
11
11
|
|
12
12
|
def get_bearer_token
|
13
13
|
conn.basic_auth(Alloy::KYC.configuration.application_token, Alloy::KYC.configuration.application_secret)
|
14
|
-
response = conn.post("
|
14
|
+
response = conn.post("oauth/bearer")
|
15
15
|
token_info = JSON.parse(response.body)
|
16
16
|
@bearer_token = BearerToken.new(token_info["access_token"], token_info["expires_in"])
|
17
17
|
end
|
@@ -28,7 +28,7 @@ module Alloy
|
|
28
28
|
|
29
29
|
# domain methods
|
30
30
|
def create_evaluation(params)
|
31
|
-
post("
|
31
|
+
post("evaluations", params)
|
32
32
|
end
|
33
33
|
|
34
34
|
def submit_oow_responses(path, responses)
|
@@ -9,7 +9,7 @@ module Alloy
|
|
9
9
|
def initialize
|
10
10
|
@application_token = "dpDD6z4olOSI7N4fMCsAlKjFa7reBYhu"
|
11
11
|
@application_secret = "oJm3niQX1Pdy4z675kefEIKBgFn9tQ45"
|
12
|
-
@api_endpoint = "https://sandbox.alloy.co/v1"
|
12
|
+
@api_endpoint = "https://sandbox.alloy.co/v1/"
|
13
13
|
@backend = Alloy::KYC::Backends::Remote.new
|
14
14
|
end
|
15
15
|
end
|
data/lib/alloy/kyc/evaluation.rb
CHANGED
@@ -33,12 +33,12 @@ module Alloy
|
|
33
33
|
# name_first: "Charles",
|
34
34
|
# name_last: "Hearn"}
|
35
35
|
def submit_oow_responses(responses)
|
36
|
-
response = Alloy::KYC.configuration.backend.submit_oow_responses("
|
36
|
+
response = Alloy::KYC.configuration.backend.submit_oow_responses("evaluations/#{self.evaluation_token}", responses)
|
37
37
|
self.class.new(JSON.parse(response.body))
|
38
38
|
end
|
39
39
|
|
40
40
|
def fork
|
41
|
-
response = Alloy::KYC.configuration.backend.fork_evaluation("
|
41
|
+
response = Alloy::KYC.configuration.backend.fork_evaluation("evaluations/#{self.evaluation_token}")
|
42
42
|
self.class.new(JSON.parse(response.body))
|
43
43
|
end
|
44
44
|
|
data/lib/alloy/kyc/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: alloy-kyc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Doug Ramsay
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: exe
|
11
11
|
cert_chain: []
|
12
|
-
date: 2017-04-
|
12
|
+
date: 2017-04-26 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -171,7 +171,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
171
171
|
version: '0'
|
172
172
|
requirements: []
|
173
173
|
rubyforge_project:
|
174
|
-
rubygems_version: 2.
|
174
|
+
rubygems_version: 2.6.11
|
175
175
|
signing_key:
|
176
176
|
specification_version: 4
|
177
177
|
summary: Gem to wrap the Alloy.co API
|