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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf9e8eb8bb0df9e3b8db684062c228b0a52bc3c3
4
- data.tar.gz: 5bc113dd4fa04946f642df2d9800b2aa5ebeb2e6
3
+ metadata.gz: b36e1b09a6415564260c2013ce28c5f071f38b1e
4
+ data.tar.gz: a787c8565983f392b2cd29f094c496d5fe42e56e
5
5
  SHA512:
6
- metadata.gz: 8e9d0be345cfef36740743019660cdef7d7b0f806f4ad30935a7f63d7b82e3b2862f5c4258733801dabdbc8ea6ec457a784f424f491bcf039a5a4ccabe38f98d
7
- data.tar.gz: 7f0baf36cfd28d094eee27cab05401a414486b6187cb8fcfe4666d2cc39cb36d10e79a184144948493e755afe6f84845190ac77b8b69f6a86cf7b965842f35ec
6
+ metadata.gz: ae3f103aef921702c64b80e7829a1a810d3814c3247340326901f97ebf05f1c5b4a5e6b52fdadea866c3d32d744b43fcc401c97b4e6804e3626e5bbdb2e0ab88
7
+ data.tar.gz: 41176f2ad61f7351fc57200b2380b57fa53eb53e4d67d988bf81513a2132516fbee84726fd32dbfcd379031a3e3949755650b8f7214bbeb17ba81d4155bbdd76
@@ -1,3 +1,6 @@
1
+ * Sep 20, 2017 - 0.1.4
2
+ Add support for read and open timeouts
3
+
1
4
  * May 25, 2017 - 0.1.3
2
5
  Add support for manual review and denials
3
6
 
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 ||= Faraday.new(url: "#{Alloy::KYC.configuration.api_endpoint}")
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
@@ -1,5 +1,5 @@
1
1
  module Alloy
2
2
  module KYC
3
- VERSION = "0.1.3"
3
+ VERSION = "0.1.4"
4
4
  end
5
5
  end
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.3
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-05-25 00:00:00.000000000 Z
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.11
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