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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: dc0898839314c34c40e417562dee6591d2972a96
4
- data.tar.gz: 587d19739d05918ce9346af1a8adef01a8703207
3
+ metadata.gz: b0ec2cde0f6765017c2e5be9a1407dc2ff9a37ac
4
+ data.tar.gz: d0a258684ef22482643e887b0630e3b0ccdf3a3a
5
5
  SHA512:
6
- metadata.gz: 9c5e9a7b81593a84b9dc420aed0e07436d49950b3424dde6daa53875c9a41e2d55a3640ccaebf6904d2ca51d9d809d09e9fb20429e0613fd0bb5199863642ab1
7
- data.tar.gz: e554fbca86a69f397d14fb6d82b7cefab9f524a96c27623823bae25d2e40bf9c1609b26a5739836d6b4a366ced3824660e31193b93afa035afa6665d67021326
6
+ metadata.gz: 3b62a633d69ab724271c320c777feb96c22525fd64bc08634b9694e2dcbc93eab473240a277d0198fa753f4bc3a7c28487321a7c5e08bf552a695759a9c3c930
7
+ data.tar.gz: 1cceefacea9b6c05627a9b549b3f0fb21df8491ccfe455397404a35eecbf458e1d3fa329e12b0de1b69f0e8339051265f0dc3b0f83bb1cb67f576675c69c7fd4
@@ -1,3 +1,7 @@
1
+ ## v0.7.1, 5 September 2016
2
+
3
+ - Fix creation of live photos through `Onfido::LivePhoto` resource
4
+
1
5
  ## v0.7.0, 8 August 2016
2
6
 
3
7
  - Add support for dynamic API keys
@@ -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("applicants/#{applicant_id}/live_photos"),
9
+ url: url_for("/live_photos"),
9
10
  payload: payload
10
11
  )
11
12
  end
@@ -1,3 +1,3 @@
1
1
  module Onfido
2
- VERSION = '0.7.0'.freeze
2
+ VERSION = '0.7.1'.freeze
3
3
  end
@@ -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.0'
29
+ spec.add_dependency 'rest-client', '~> 1.8'
30
+ spec.add_dependency 'rack', '~> 1.6'
30
31
  end
@@ -22,7 +22,7 @@ class FakeOnfidoAPI < Sinatra::Base
22
22
  json_response(201, 'document.json')
23
23
  end
24
24
 
25
- post '/v2/applicants/:id/live_photos' do
25
+ post '/v2/live_photos' do
26
26
  json_response(201, 'live_photo.json')
27
27
  end
28
28
 
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.0
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-08-08 00:00:00.000000000 Z
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.0
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.0
126
- description: A wrapper for Onfido API
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