yoti_sandbox 1.2.0 → 1.2.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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b28e95307ea6fccc695c859deaf4511bd06e56db00da5ee3064663e45f3548a3
|
4
|
+
data.tar.gz: f99002f1962e15be43e1eff62b594af8fdfb45beb43148df8bf648758ba6c299
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5b459b8d299a31fe540ec5cdc38264ac1d11dafa0313cce0c82befd9816f76b184f0a2db7c3733a1435e889719441975e28d90840e5bdeceac6ea4663403845e
|
7
|
+
data.tar.gz: bab62a807f2afe3693c09536438e1203c0a586ee924f3de55137520eb9bd6c802fe77194fe441bc1abb3b17179cc03c39084a07fa8204de2519202f9b1870eae
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'json'
|
4
|
+
|
3
5
|
module Yoti
|
4
6
|
module Sandbox
|
5
7
|
module DocScan
|
@@ -22,7 +24,7 @@ module Yoti
|
|
22
24
|
super(report)
|
23
25
|
|
24
26
|
Validation.assert_is_a(Hash, document_fields, 'document_fields')
|
25
|
-
document_fields.each { |_k, v| Validation.
|
27
|
+
document_fields.each { |_k, v| Validation.assert_respond_to(:to_json, v, 'document_fields value') }
|
26
28
|
@document_fields = document_fields
|
27
29
|
end
|
28
30
|
|
@@ -42,13 +44,13 @@ module Yoti
|
|
42
44
|
|
43
45
|
#
|
44
46
|
# @param [String] key
|
45
|
-
# @param [
|
47
|
+
# @param [#to_json] value
|
46
48
|
#
|
47
49
|
# @return [self]
|
48
50
|
#
|
49
51
|
def with_document_field(key, value)
|
50
52
|
Validation.assert_is_a(String, key, 'key')
|
51
|
-
Validation.
|
53
|
+
Validation.assert_respond_to(:to_json, value, 'value')
|
52
54
|
@document_fields[key] = value
|
53
55
|
self
|
54
56
|
end
|
@@ -1,5 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true
|
2
2
|
|
3
|
+
require 'json'
|
4
|
+
|
3
5
|
module Yoti
|
4
6
|
module Sandbox
|
5
7
|
module DocScan
|
@@ -45,7 +47,7 @@ module Yoti
|
|
45
47
|
#
|
46
48
|
def initialize(document_fields)
|
47
49
|
Validation.assert_is_a(Hash, document_fields, 'document_fields')
|
48
|
-
document_fields.each { |_k, v| Validation.
|
50
|
+
document_fields.each { |_k, v| Validation.assert_respond_to(:to_json, v, 'document_fields value') }
|
49
51
|
@document_fields = document_fields
|
50
52
|
end
|
51
53
|
|
@@ -67,13 +69,13 @@ module Yoti
|
|
67
69
|
|
68
70
|
#
|
69
71
|
# @param [String] key
|
70
|
-
# @param [
|
72
|
+
# @param [#to_json] value
|
71
73
|
#
|
72
74
|
# @return [self]
|
73
75
|
#
|
74
76
|
def with_document_field(key, value)
|
75
77
|
Validation.assert_is_a(String, key, 'key')
|
76
|
-
Validation.
|
78
|
+
Validation.assert_respond_to(:to_json, value, 'value')
|
77
79
|
@document_fields[key] = value
|
78
80
|
self
|
79
81
|
end
|
data/yoti_sandbox.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: yoti_sandbox
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yoti
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-
|
11
|
+
date: 2020-08-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yoti
|
@@ -175,7 +175,7 @@ homepage: https://github.com/getyoti/yoti-ruby-sdk-sandbox
|
|
175
175
|
licenses:
|
176
176
|
- MIT
|
177
177
|
metadata: {}
|
178
|
-
post_install_message:
|
178
|
+
post_install_message:
|
179
179
|
rdoc_options: []
|
180
180
|
require_paths:
|
181
181
|
- lib
|
@@ -191,7 +191,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
191
191
|
version: '0'
|
192
192
|
requirements: []
|
193
193
|
rubygems_version: 3.0.6
|
194
|
-
signing_key:
|
194
|
+
signing_key:
|
195
195
|
specification_version: 4
|
196
196
|
summary: Yoti Ruby Sandbox SDK for back-end integration.
|
197
197
|
test_files: []
|