onfido 0.6.0 → 0.6.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/onfido/api.rb +1 -1
- data/lib/onfido/version.rb +1 -1
- data/spec/onfido/api_spec.rb +15 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c63f7c25eb6a4d6a774be396edf561175a9ab3f1
|
4
|
+
data.tar.gz: b1dadefd0aaf4971077671d52b816b699e7217f1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 77a4f0fe6dbd99bb4c93c57cfb8bce13a2c4172fc767cdb446cb6694357fbef51b639cd1cfc7cd3120b2890634b701a249704dcfc93333e3c39fcf30724a1c32
|
7
|
+
data.tar.gz: ea7725d553e7ad385c24d8ba1e52ba3b5b08b9bc10c11ac871de5df87d3c8f066b976b7f82efbde071eb84d494a2dd3e79ae2f184730da8a7b1297c1963893e2
|
data/CHANGELOG.md
CHANGED
data/lib/onfido/api.rb
CHANGED
data/lib/onfido/version.rb
CHANGED
@@ -0,0 +1,15 @@
|
|
1
|
+
describe Onfido::API do
|
2
|
+
subject(:api) { described_class.new }
|
3
|
+
|
4
|
+
describe 'given a single-word resource' do
|
5
|
+
specify { expect(api.address).to be_a(Onfido::Address) }
|
6
|
+
end
|
7
|
+
|
8
|
+
describe 'given a multi-word resource' do
|
9
|
+
specify { expect(api.live_photo).to be_a(Onfido::LivePhoto) }
|
10
|
+
end
|
11
|
+
|
12
|
+
describe 'given an unknown resource' do
|
13
|
+
specify { expect { api.blood_test }.to raise_error(NameError) }
|
14
|
+
end
|
15
|
+
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.6.
|
4
|
+
version: 0.6.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-07-
|
12
|
+
date: 2016-07-15 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -166,6 +166,7 @@ files:
|
|
166
166
|
- spec/integrations/live_photo_spec.rb
|
167
167
|
- spec/integrations/report_spec.rb
|
168
168
|
- spec/integrations/webhook_spec.rb
|
169
|
+
- spec/onfido/api_spec.rb
|
169
170
|
- spec/onfido/connection_error_spec.rb
|
170
171
|
- spec/onfido/request_error_spec.rb
|
171
172
|
- spec/onfido/resource_spec.rb
|
@@ -220,6 +221,7 @@ test_files:
|
|
220
221
|
- spec/integrations/live_photo_spec.rb
|
221
222
|
- spec/integrations/report_spec.rb
|
222
223
|
- spec/integrations/webhook_spec.rb
|
224
|
+
- spec/onfido/api_spec.rb
|
223
225
|
- spec/onfido/connection_error_spec.rb
|
224
226
|
- spec/onfido/request_error_spec.rb
|
225
227
|
- spec/onfido/resource_spec.rb
|