onfido 0.8.3 → 0.8.4

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
- SHA256:
3
- metadata.gz: 54ef7de51857895f39c1b960c7959828ff7d36a502a13a1a62db5f76d811ce64
4
- data.tar.gz: 495241aeaaa859d1b2b8aed6a250df2519d9df5a2a7624741949156aa9ea7cce
2
+ SHA1:
3
+ metadata.gz: 9b8943db59807d0aca9c9e8caa5b5509878432d6
4
+ data.tar.gz: 0c12bf449f543db534205f3944ee69251408b025
5
5
  SHA512:
6
- metadata.gz: 5d86bab77e16c80dc43fa0269d427814ab3fad06701b95eacfba17794409acd9abe29ccced71388c4a2ecf678268c6b50d952fe90e0abf93188eb3ae6e1a910a
7
- data.tar.gz: 7f40677b7801251f9ef247e10c2d0a796e6ce9120d864874bc49eb3d0eca27cc73de0a8e64b479f607011e0d4d8d7d48ab6ad97b9dce30705fa19cacc4f9588d
6
+ metadata.gz: d7eeae37b53e98a3d46e4e8a4fa4ec20ff0dc0d77fdf79be49f7c1d2a9f50466d61503a00db7fef9d3c7b39216095ab6e2340f4577d989b6e305c8167cbd7d0c
7
+ data.tar.gz: 64e81f488051a276972cb3476e540bb6fae1d2a9b19699a6512b7184b66fc7a808ed8ccb13f34cf767b12cfb434501084e08bb6bb18661454a8277f37724dc9d
@@ -22,7 +22,7 @@ Style/Documentation:
22
22
  Style/SignalException:
23
23
  EnforcedStyle: only_raise
24
24
 
25
- Style/FileName:
25
+ Naming/FileName:
26
26
  Exclude:
27
27
  - Gemfile
28
28
 
@@ -6,9 +6,10 @@ matrix:
6
6
  - rvm: rbx-2
7
7
 
8
8
  rvm:
9
- - 2.0
10
- - 2.1
11
9
  - 2.2
10
+ - 2.3
11
+ - 2.4
12
+ - 2.5
12
13
  - jruby
13
14
  - rbx-2
14
15
 
@@ -1,6 +1,11 @@
1
+ ## v0.8.4, 29 January 2018
2
+
3
+ - Replace use of `method_missing` with explicitly-defined accessors when accessing
4
+ resources from an `Onfido::API` instance (@hmac)
5
+
1
6
  ## v0.8.3, 16 January 2018
2
7
 
3
- Add support for `Onfido::SdkToken` resource
8
+ - Add support for `Onfido::SdkToken` resource (@robotmay)
4
9
 
5
10
  ## v0.8.2, 21 April 2017
6
11
 
data/README.md CHANGED
@@ -12,7 +12,7 @@ This gem supports both `v1` and `v2` of the Onfido API. Refer to Onfido's [API d
12
12
  Add this line to your application's Gemfile:
13
13
 
14
14
  ```ruby
15
- gem 'onfido', '~> 0.8.3'
15
+ gem 'onfido', '~> 0.8.4'
16
16
  ```
17
17
 
18
18
  ## Configuration
@@ -4,19 +4,40 @@ module Onfido
4
4
  @api_key = options[:api_key]
5
5
  end
6
6
 
7
- def method_missing(method, *args)
8
- klass = method.to_s.split('_').collect(&:capitalize).join
9
- Object.const_get("Onfido::#{klass}").new(@api_key)
10
- rescue NameError
11
- super
12
- end
13
-
14
- def respond_to_missing?(method, include_private = false)
15
- klass = method.to_s.capitalize
16
- Object.const_get("Onfido::#{klass}")
17
- true
18
- rescue NameError
19
- super
7
+ def applicant
8
+ Onfido::Applicant.new(@api_key)
9
+ end
10
+
11
+ def check
12
+ Onfido::Check.new(@api_key)
13
+ end
14
+
15
+ def document
16
+ Onfido::Document.new(@api_key)
17
+ end
18
+
19
+ def live_photo
20
+ Onfido::LivePhoto.new(@api_key)
21
+ end
22
+
23
+ def report
24
+ Onfido::Report.new(@api_key)
25
+ end
26
+
27
+ def report_type_group
28
+ Onfido::ReportTypeGroup.new(@api_key)
29
+ end
30
+
31
+ def sdk_token
32
+ Onfido::SdkToken.new(@api_key)
33
+ end
34
+
35
+ def webhook
36
+ Onfido::Webhook.new(@api_key)
37
+ end
38
+
39
+ def address
40
+ Onfido::Address.new(@api_key)
20
41
  end
21
42
  end
22
43
  end
@@ -1,3 +1,3 @@
1
1
  module Onfido
2
- VERSION = '0.8.3'.freeze
2
+ VERSION = '0.8.4'.freeze
3
3
  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.8.3
4
+ version: 0.8.4
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: 2018-01-16 00:00:00.000000000 Z
12
+ date: 2018-01-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -232,7 +232,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
232
232
  version: '0'
233
233
  requirements: []
234
234
  rubyforge_project:
235
- rubygems_version: 2.7.4
235
+ rubygems_version: 2.6.13
236
236
  signing_key:
237
237
  specification_version: 4
238
238
  summary: A wrapper for Onfido API