onfido 1.1.0 → 1.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/CHANGELOG.md +7 -1
- data/README.md +2 -2
- data/lib/onfido/resources/address.rb +1 -4
- data/lib/onfido/version.rb +1 -1
- data/spec/integrations/exceptions_spec.rb +6 -7
- metadata +3 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 5402f96702de9c0251f8c92ac14739b1cf54ad9a5336cf63c7088e4cc45dc0ae
|
4
|
+
data.tar.gz: 89c7091cf1059f7eb4db9d96ae6c8ace2ca7176961524ba886b12ba3969cf462
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6dce59eeee514ce3371b8c03367f7e2c772d26dfe57231b4f49c13a3073ca233b4089798ee7e3a7e451b2e0b7e64d035f7ee4307bb902876b160053107652664
|
7
|
+
data.tar.gz: 92dd31829e491e612556caaf098dba388d701dfade3e755625e2199d2fbb58eaa5f621f1bdc9b8a8c95adf4753b22bb740430933e7c6b4789ed9ff8388485d44
|
data/CHANGELOG.md
CHANGED
@@ -1,7 +1,13 @@
|
|
1
|
-
## v1.1.
|
1
|
+
## v1.1.1, 12 March 2021
|
2
|
+
|
3
|
+
- Send the postcode in the query string for the address picker endpoint
|
4
|
+
|
5
|
+
## v1.1.0, 14 Aug 2020
|
2
6
|
|
3
7
|
- Add User-Agent header
|
4
8
|
- Add support for CA region
|
9
|
+
- Add extractions endpoint
|
10
|
+
- Add webhook deletion endpoint
|
5
11
|
|
6
12
|
## v1.0.0, 13 Jan 2020
|
7
13
|
|
data/README.md
CHANGED
@@ -16,7 +16,7 @@ Refer to Onfido's [API documentation](https://documentation.onfido.com) for deta
|
|
16
16
|
Add this line to your application's Gemfile:
|
17
17
|
|
18
18
|
```ruby
|
19
|
-
gem 'onfido', '~> 1.1.
|
19
|
+
gem 'onfido', '~> 1.1.1'
|
20
20
|
```
|
21
21
|
|
22
22
|
## Configuration
|
@@ -156,7 +156,7 @@ Onfido allows you to set up and view your webhook endpoints via the API, as well
|
|
156
156
|
as through the dashboard.
|
157
157
|
|
158
158
|
```ruby
|
159
|
-
onfido.webhook.create(url: "https://webhook.url", events: ['report.completed, check.completed']) # => Registers a webhook endpoint
|
159
|
+
onfido.webhook.create(url: "https://webhook.url", events: ['report.completed', 'check.completed']) # => Registers a webhook endpoint
|
160
160
|
onfido.webhook.find('<WEBHOOK_ID>') # => Finds a single webhook endpoint
|
161
161
|
onfido.webhook.all # => Returns all webhook endpoints
|
162
162
|
```
|
data/lib/onfido/version.rb
CHANGED
@@ -1,7 +1,6 @@
|
|
1
1
|
describe Onfido::Resource do
|
2
2
|
let(:resource) { described_class.new }
|
3
3
|
let(:api_key) { 'some_key' }
|
4
|
-
let(:payload) { { postcode: 'SE1 4NG' } }
|
5
4
|
|
6
5
|
before { allow(Onfido).to receive(:api_key).and_return(api_key) }
|
7
6
|
|
@@ -9,7 +8,7 @@ describe Onfido::Resource do
|
|
9
8
|
it 'raises a custom error' do
|
10
9
|
path = '4xx_response'
|
11
10
|
|
12
|
-
expect { resource.get(path: path
|
11
|
+
expect { resource.get(path: path) }.
|
13
12
|
to raise_error(Onfido::RequestError, 'Something went wrong')
|
14
13
|
end
|
15
14
|
end
|
@@ -18,7 +17,7 @@ describe Onfido::Resource do
|
|
18
17
|
it 'raises a custom error' do
|
19
18
|
path = 'unexpected_error_format'
|
20
19
|
|
21
|
-
expect { resource.get(path: path
|
20
|
+
expect { resource.get(path: path) }.
|
22
21
|
to raise_error(Onfido::RequestError, /response code was 400/)
|
23
22
|
end
|
24
23
|
end
|
@@ -27,7 +26,7 @@ describe Onfido::Resource do
|
|
27
26
|
it 'raises a server error' do
|
28
27
|
path = 'unparseable_response'
|
29
28
|
|
30
|
-
expect { resource.get(path: path
|
29
|
+
expect { resource.get(path: path) }.
|
31
30
|
to raise_error(Onfido::ServerError, /response code was 504/)
|
32
31
|
end
|
33
32
|
end
|
@@ -40,7 +39,7 @@ describe Onfido::Resource do
|
|
40
39
|
end
|
41
40
|
|
42
41
|
it 'raises a ConnectionError' do
|
43
|
-
expect { resource.get(path: Onfido.endpoint
|
42
|
+
expect { resource.get(path: Onfido.endpoint) }.
|
44
43
|
to raise_error(Onfido::ConnectionError, /Could not connect/)
|
45
44
|
end
|
46
45
|
end
|
@@ -53,7 +52,7 @@ describe Onfido::Resource do
|
|
53
52
|
end
|
54
53
|
|
55
54
|
it 'raises a ConnectionError' do
|
56
|
-
expect { resource.get(path: Onfido.endpoint
|
55
|
+
expect { resource.get(path: Onfido.endpoint) }.
|
57
56
|
to raise_error(Onfido::ConnectionError, /connection to the server/)
|
58
57
|
end
|
59
58
|
end
|
@@ -66,7 +65,7 @@ describe Onfido::Resource do
|
|
66
65
|
end
|
67
66
|
|
68
67
|
it 'raises a ConnectionError' do
|
69
|
-
expect { resource.get(path: Onfido.endpoint
|
68
|
+
expect { resource.get(path: Onfido.endpoint) }.
|
70
69
|
to raise_error(Onfido::ConnectionError, /SSL certificate/)
|
71
70
|
end
|
72
71
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: onfido
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Onfido
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-03-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|
@@ -218,8 +218,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
218
218
|
- !ruby/object:Gem::Version
|
219
219
|
version: '0'
|
220
220
|
requirements: []
|
221
|
-
|
222
|
-
rubygems_version: 2.4.5.5
|
221
|
+
rubygems_version: 3.0.3
|
223
222
|
signing_key:
|
224
223
|
specification_version: 4
|
225
224
|
summary: A wrapper for Onfido API
|