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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b60bfc8b08abdd2f8eb2a9cee89671cc43030338
4
- data.tar.gz: d1f0f6440c86dd3bb0118e17ecffacb8fd9801ac
3
+ metadata.gz: c974670d0a31754cae8c6436b49eaef75943234d
4
+ data.tar.gz: 0b1a9193002ae0de909edce4890495300be6e7b9
5
5
  SHA512:
6
- metadata.gz: 7e4271569a6ca6b246998583390aff6e492cbe9c7a3446a2592219e71cf738ba59e2d82627023a3a81a594aedf7ee766c45e3cadb2015885404233dfb31bf2bb
7
- data.tar.gz: 42f237ed56518768a7de520ad6e461a02659b1fc9696f103421df0e29786d6c736bfa5e1cba7bc61d7d2fdc352f379bca569d7234a30b23e4478fa0dba70fdaa
6
+ metadata.gz: 80579f2511193fede6de8ff9a040705381e2fb792e69358aa5339e020ea62a03ef57c56b8569ff740fdf0b7fcc550bb1d069b0b542da71567cd5e37928a65f47
7
+ data.tar.gz: e19ff492ff1a4a964abf1865cf8441f065357e110c3fa181ba1ffda4a1178fca7a019577863ab7ee29e476e0d4106c27fcdcdedf9a1842265cd063cb143c5313
@@ -1,3 +1,6 @@
1
+ * April 26, 2017 - 0.1.2
2
+ Allow clients to use path prefixes.
3
+
1
4
  * April 11, 2017 - 0.1.1
2
5
  Adding Tom Copeland to authors
3
6
 
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("/oauth/bearer")
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("/evaluations", params)
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
@@ -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("/evaluations/#{self.evaluation_token}", 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("/evaluations/#{self.evaluation_token}")
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
 
@@ -1,5 +1,5 @@
1
1
  module Alloy
2
2
  module KYC
3
- VERSION = "0.1.1"
3
+ VERSION = "0.1.2"
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.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-11 00:00:00.000000000 Z
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.5.1
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