onfido 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/onfido/resources/live_photo.rb +2 -1
- data/lib/onfido/version.rb +1 -1
- data/onfido.gemspec +3 -2
- data/spec/support/fake_onfido_api.rb +1 -1
- metadata +21 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b0ec2cde0f6765017c2e5be9a1407dc2ff9a37ac
|
4
|
+
data.tar.gz: d0a258684ef22482643e887b0630e3b0ccdf3a3a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b62a633d69ab724271c320c777feb96c22525fd64bc08634b9694e2dcbc93eab473240a277d0198fa753f4bc3a7c28487321a7c5e08bf552a695759a9c3c930
|
7
|
+
data.tar.gz: 1cceefacea9b6c05627a9b549b3f0fb21df8491ccfe455397404a35eecbf458e1d3fa329e12b0de1b69f0e8339051265f0dc3b0f83bb1cb67f576675c69c7fd4
|
data/CHANGELOG.md
CHANGED
@@ -3,9 +3,10 @@ module Onfido
|
|
3
3
|
# with open-uri the file can be a link or an actual file
|
4
4
|
|
5
5
|
def create(applicant_id, payload)
|
6
|
+
payload[:applicant_id] = applicant_id
|
6
7
|
payload[:file] = open(payload.fetch(:file), 'r')
|
7
8
|
post(
|
8
|
-
url: url_for("
|
9
|
+
url: url_for("/live_photos"),
|
9
10
|
payload: payload
|
10
11
|
)
|
11
12
|
end
|
data/lib/onfido/version.rb
CHANGED
data/onfido.gemspec
CHANGED
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ['Pericles Theodorou', 'Grey Baker']
|
10
10
|
spec.email = ['periclestheo@gmail.com', 'grey@gocardless.com']
|
11
11
|
spec.summary = %q{A wrapper for Onfido API}
|
12
|
-
spec.description = %q{A wrapper for Onfido API}
|
12
|
+
spec.description = %q{A thin wrapper for Onfido's API. This gem supports both v1 and v2 of the Onfido API. Refer to Onfido's API documentation for details of the expected requests and responses for both.}
|
13
13
|
spec.homepage = 'http://github.com/hvssle/onfido'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
@@ -26,5 +26,6 @@ Gem::Specification.new do |spec|
|
|
26
26
|
spec.add_development_dependency 'rspec-its', '~> 1.2'
|
27
27
|
spec.add_development_dependency 'sinatra', '~> 1.4'
|
28
28
|
|
29
|
-
spec.add_dependency 'rest-client', '~> 1.8
|
29
|
+
spec.add_dependency 'rest-client', '~> 1.8'
|
30
|
+
spec.add_dependency 'rack', '~> 1.6'
|
30
31
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onfido
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pericles Theodorou
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2016-
|
12
|
+
date: 2016-09-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -115,15 +115,31 @@ dependencies:
|
|
115
115
|
requirements:
|
116
116
|
- - "~>"
|
117
117
|
- !ruby/object:Gem::Version
|
118
|
-
version: 1.8
|
118
|
+
version: '1.8'
|
119
119
|
type: :runtime
|
120
120
|
prerelease: false
|
121
121
|
version_requirements: !ruby/object:Gem::Requirement
|
122
122
|
requirements:
|
123
123
|
- - "~>"
|
124
124
|
- !ruby/object:Gem::Version
|
125
|
-
version: 1.8
|
126
|
-
|
125
|
+
version: '1.8'
|
126
|
+
- !ruby/object:Gem::Dependency
|
127
|
+
name: rack
|
128
|
+
requirement: !ruby/object:Gem::Requirement
|
129
|
+
requirements:
|
130
|
+
- - "~>"
|
131
|
+
- !ruby/object:Gem::Version
|
132
|
+
version: '1.6'
|
133
|
+
type: :runtime
|
134
|
+
prerelease: false
|
135
|
+
version_requirements: !ruby/object:Gem::Requirement
|
136
|
+
requirements:
|
137
|
+
- - "~>"
|
138
|
+
- !ruby/object:Gem::Version
|
139
|
+
version: '1.6'
|
140
|
+
description: A thin wrapper for Onfido's API. This gem supports both v1 and v2 of
|
141
|
+
the Onfido API. Refer to Onfido's API documentation for details of the expected
|
142
|
+
requests and responses for both.
|
127
143
|
email:
|
128
144
|
- periclestheo@gmail.com
|
129
145
|
- grey@gocardless.com
|