alloy-kyc 0.1.3 → 0.1.4
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 +2 -0
- data/lib/alloy/kyc/backends/remote.rb +6 -1
- data/lib/alloy/kyc/configuration.rb +4 -0
- 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: b36e1b09a6415564260c2013ce28c5f071f38b1e
|
4
|
+
data.tar.gz: a787c8565983f392b2cd29f094c496d5fe42e56e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ae3f103aef921702c64b80e7829a1a810d3814c3247340326901f97ebf05f1c5b4a5e6b52fdadea866c3d32d744b43fcc401c97b4e6804e3626e5bbdb2e0ab88
|
7
|
+
data.tar.gz: 41176f2ad61f7351fc57200b2380b57fa53eb53e4d67d988bf81513a2132516fbee84726fd32dbfcd379031a3e3949755650b8f7214bbeb17ba81d4155bbdd76
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -23,6 +23,8 @@ Alloy::KYC.configure do |config|
|
|
23
23
|
config.application_token = ENV['ALLOY_APPLICATION_TOKEN']
|
24
24
|
config.application_secret = ENV['ALLOY_APPLICATION_SECRET']
|
25
25
|
config.api_endpoint = "https://alloy.co/v1/"
|
26
|
+
config.open_timeout = 1 # default is 2 seconds
|
27
|
+
config.read_timeout = 3 # default is 5 seconds
|
26
28
|
end
|
27
29
|
```
|
28
30
|
|
@@ -6,7 +6,12 @@ module Alloy
|
|
6
6
|
attr_reader :bearer_token
|
7
7
|
|
8
8
|
def conn
|
9
|
-
@conn
|
9
|
+
if @conn.nil?
|
10
|
+
@conn = Faraday.new(url: "#{Alloy::KYC.configuration.api_endpoint}")
|
11
|
+
@conn.options.open_timeout = Alloy::KYC.configuration.open_timeout
|
12
|
+
@conn.options.timeout = Alloy::KYC.configuration.read_timeout
|
13
|
+
end
|
14
|
+
@conn
|
10
15
|
end
|
11
16
|
|
12
17
|
def get_bearer_token
|
@@ -5,12 +5,16 @@ module Alloy
|
|
5
5
|
attr_accessor :application_secret
|
6
6
|
attr_accessor :api_endpoint
|
7
7
|
attr_accessor :backend
|
8
|
+
attr_accessor :open_timeout
|
9
|
+
attr_accessor :read_timeout
|
8
10
|
|
9
11
|
def initialize
|
10
12
|
@application_token = "dpDD6z4olOSI7N4fMCsAlKjFa7reBYhu"
|
11
13
|
@application_secret = "oJm3niQX1Pdy4z675kefEIKBgFn9tQ45"
|
12
14
|
@api_endpoint = "https://sandbox.alloy.co/v1/"
|
13
15
|
@backend = Alloy::KYC::Backends::Remote.new
|
16
|
+
@open_timeout = 2
|
17
|
+
@read_timeout = 5
|
14
18
|
end
|
15
19
|
end
|
16
20
|
end
|
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.4
|
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-
|
12
|
+
date: 2017-09-20 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -173,7 +173,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
173
173
|
version: '0'
|
174
174
|
requirements: []
|
175
175
|
rubyforge_project:
|
176
|
-
rubygems_version: 2.6.
|
176
|
+
rubygems_version: 2.6.13
|
177
177
|
signing_key:
|
178
178
|
specification_version: 4
|
179
179
|
summary: Gem to wrap the Alloy.co API
|