veryfi 1.0.1 → 1.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.github/workflows/release.yml +6 -3
- data/Gemfile.lock +27 -46
- data/README.md +11 -8
- data/coverage/coverage-badge.png +0 -0
- data/lib/veryfi/version.rb +1 -1
- data/veryfi.gemspec +47 -4
- metadata +10 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4472be74f0d0747a19409756b9506f2b0d693d1a8efb3e590641e8611f67193a
|
4
|
+
data.tar.gz: 71a003d3dd55815e8c5afd65f25e8237ad9de70dae7a6225c61f90cc862f7824
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 84868b55237428f35b52f6e17fc8dcea553b59ad3e423f73fe697ec49609f5a66799a1eb69ac058561c77230796e24c94b3147e80d8a778e2155d60d9ec59113
|
7
|
+
data.tar.gz: 6d368b5cb4b1886dc9b9111cc4c76b54532e838ea2ee4d43d04435375b7b77abd5c18db2d2fbd8f39224a3ad7f19835879758c387cbec8145b513e01be06d4e8
|
@@ -1,14 +1,17 @@
|
|
1
1
|
name: Release
|
2
2
|
on:
|
3
|
-
|
4
|
-
|
3
|
+
workflow_dispatch:
|
4
|
+
branches:
|
5
|
+
- main
|
5
6
|
|
6
7
|
jobs:
|
7
8
|
publish:
|
8
9
|
runs-on: ubuntu-latest
|
9
10
|
|
10
11
|
steps:
|
11
|
-
-
|
12
|
+
- name: Configure safe directory
|
13
|
+
run: sudo git config --global --add safe.directory /github/workspace
|
14
|
+
- uses: actions/checkout@v3
|
12
15
|
- name: Set up Ruby
|
13
16
|
uses: ruby/setup-ruby@v1
|
14
17
|
with:
|
data/Gemfile.lock
CHANGED
@@ -1,18 +1,18 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
veryfi (1.0.
|
4
|
+
veryfi (1.0.4)
|
5
5
|
base64 (~> 0.1)
|
6
|
-
faraday (
|
6
|
+
faraday (>= 1.7, < 3.0)
|
7
7
|
openssl (>= 2.2, < 3.1)
|
8
8
|
|
9
9
|
GEM
|
10
10
|
remote: https://rubygems.org/
|
11
11
|
specs:
|
12
|
-
addressable (2.8.
|
13
|
-
public_suffix (>= 2.0.2, <
|
12
|
+
addressable (2.8.1)
|
13
|
+
public_suffix (>= 2.0.2, < 6.0)
|
14
14
|
ast (2.4.2)
|
15
|
-
base64 (0.
|
15
|
+
base64 (0.2.0)
|
16
16
|
bundler-audit (0.9.1)
|
17
17
|
bundler (>= 1.2.0, < 3)
|
18
18
|
thor (~> 1.0)
|
@@ -21,60 +21,41 @@ GEM
|
|
21
21
|
rexml
|
22
22
|
diff-lcs (1.5.0)
|
23
23
|
docile (1.4.0)
|
24
|
-
faraday (
|
25
|
-
|
26
|
-
faraday-
|
27
|
-
faraday-excon (~> 1.1)
|
28
|
-
faraday-httpclient (~> 1.0)
|
29
|
-
faraday-multipart (~> 1.0)
|
30
|
-
faraday-net_http (~> 1.0)
|
31
|
-
faraday-net_http_persistent (~> 1.0)
|
32
|
-
faraday-patron (~> 1.0)
|
33
|
-
faraday-rack (~> 1.0)
|
34
|
-
faraday-retry (~> 1.0)
|
24
|
+
faraday (2.7.12)
|
25
|
+
base64
|
26
|
+
faraday-net_http (>= 2.0, < 3.1)
|
35
27
|
ruby2_keywords (>= 0.0.4)
|
36
|
-
faraday-
|
37
|
-
faraday-em_synchrony (1.0.0)
|
38
|
-
faraday-excon (1.1.0)
|
39
|
-
faraday-httpclient (1.0.1)
|
40
|
-
faraday-multipart (1.0.4)
|
41
|
-
multipart-post (~> 2)
|
42
|
-
faraday-net_http (1.0.1)
|
43
|
-
faraday-net_http_persistent (1.2.0)
|
44
|
-
faraday-patron (1.0.0)
|
45
|
-
faraday-rack (1.0.0)
|
46
|
-
faraday-retry (1.0.3)
|
28
|
+
faraday-net_http (3.0.2)
|
47
29
|
hashdiff (1.0.1)
|
48
30
|
method_source (1.0.0)
|
49
|
-
|
50
|
-
openssl (3.0.0)
|
31
|
+
openssl (3.0.2)
|
51
32
|
parallel (1.22.1)
|
52
|
-
parser (3.
|
33
|
+
parser (3.2.0.0)
|
53
34
|
ast (~> 2.4.1)
|
54
35
|
pry (0.14.1)
|
55
36
|
coderay (~> 1.1)
|
56
37
|
method_source (~> 1.0)
|
57
|
-
public_suffix (
|
38
|
+
public_suffix (5.0.1)
|
58
39
|
rainbow (3.1.1)
|
59
40
|
rake (13.0.6)
|
60
|
-
regexp_parser (2.
|
41
|
+
regexp_parser (2.6.1)
|
61
42
|
rexml (3.2.5)
|
62
|
-
rspec (3.
|
63
|
-
rspec-core (~> 3.
|
64
|
-
rspec-expectations (~> 3.
|
65
|
-
rspec-mocks (~> 3.
|
66
|
-
rspec-core (3.
|
67
|
-
rspec-support (~> 3.
|
68
|
-
rspec-expectations (3.
|
43
|
+
rspec (3.12.0)
|
44
|
+
rspec-core (~> 3.12.0)
|
45
|
+
rspec-expectations (~> 3.12.0)
|
46
|
+
rspec-mocks (~> 3.12.0)
|
47
|
+
rspec-core (3.12.0)
|
48
|
+
rspec-support (~> 3.12.0)
|
49
|
+
rspec-expectations (3.12.1)
|
69
50
|
diff-lcs (>= 1.2.0, < 2.0)
|
70
|
-
rspec-support (~> 3.
|
51
|
+
rspec-support (~> 3.12.0)
|
71
52
|
rspec-its (1.3.0)
|
72
53
|
rspec-core (>= 3.0.0)
|
73
54
|
rspec-expectations (>= 3.0.0)
|
74
|
-
rspec-mocks (3.
|
55
|
+
rspec-mocks (3.12.1)
|
75
56
|
diff-lcs (>= 1.2.0, < 2.0)
|
76
|
-
rspec-support (~> 3.
|
77
|
-
rspec-support (3.
|
57
|
+
rspec-support (~> 3.12.0)
|
58
|
+
rspec-support (3.12.0)
|
78
59
|
rubocop (0.93.1)
|
79
60
|
parallel (~> 1.10)
|
80
61
|
parser (>= 2.7.1.5)
|
@@ -84,14 +65,14 @@ GEM
|
|
84
65
|
rubocop-ast (>= 0.6.0)
|
85
66
|
ruby-progressbar (~> 1.7)
|
86
67
|
unicode-display_width (>= 1.4.0, < 2.0)
|
87
|
-
rubocop-ast (1.
|
68
|
+
rubocop-ast (1.24.1)
|
88
69
|
parser (>= 3.1.1.0)
|
89
70
|
rubocop-rspec (1.44.1)
|
90
71
|
rubocop (~> 0.87)
|
91
72
|
rubocop-ast (>= 0.7.1)
|
92
73
|
ruby-progressbar (1.11.0)
|
93
74
|
ruby2_keywords (0.0.5)
|
94
|
-
simplecov (0.
|
75
|
+
simplecov (0.22.0)
|
95
76
|
docile (~> 1.1)
|
96
77
|
simplecov-html (~> 0.11)
|
97
78
|
simplecov_json_formatter (~> 0.1)
|
@@ -101,7 +82,7 @@ GEM
|
|
101
82
|
thor (1.2.1)
|
102
83
|
unicode-display_width (1.8.0)
|
103
84
|
vcr (6.1.0)
|
104
|
-
webmock (3.
|
85
|
+
webmock (3.18.1)
|
105
86
|
addressable (>= 2.8.0)
|
106
87
|
crack (>= 0.3.2)
|
107
88
|
hashdiff (>= 0.4.0, < 2.0.0)
|
data/README.md
CHANGED
@@ -1,15 +1,19 @@
|
|
1
1
|
# Veryfi SDK for Ruby
|
2
2
|
|
3
|
-
|
3
|
+
<img src="https://user-images.githubusercontent.com/30125790/212157461-58bdc714-2f89-44c2-8e4d-d42bee74854e.png#gh-dark-mode-only" width="200">
|
4
|
+
<img src="https://user-images.githubusercontent.com/30125790/212157486-bfd08c5d-9337-4b78-be6f-230dc63838ba.png#gh-light-mode-only" width="200">
|
4
5
|
|
5
6
|
[![Version](https://img.shields.io/gem/v/veryfi)](https://rubygems.org/gems/veryfi)
|
6
7
|
[![Test](https://github.com/veryfi/veryfi-ruby/actions/workflows/test.yml/badge.svg?branch=main)](https://github.com/veryfi/veryfi-ruby/actions/workflows/test.yml)
|
7
|
-
|
8
8
|
[![Coverage](https://raw.githubusercontent.com/veryfi/veryfi-ruby/main/coverage/coverage-badge.png)](https://raw.githubusercontent.com/veryfi/veryfi-ruby/main/coverage/coverage-badge.png)
|
9
9
|
|
10
|
+
**veryfi-ruby** is a Ruby gem for communicating with the [Veryfi OCR API](https://veryfi.com/api/)
|
11
|
+
|
12
|
+
[Documentation](https://veryfi.github.io/veryfi-ruby/)
|
13
|
+
|
10
14
|
## Table of Contents
|
11
15
|
|
12
|
-
- [
|
16
|
+
- [Top](#veryfi-sdk-for-ruby)
|
13
17
|
- [Table of Contents](#table-of-contents)
|
14
18
|
- [Example](#example)
|
15
19
|
- [Installation](#installation)
|
@@ -22,7 +26,6 @@
|
|
22
26
|
- [Quality tools](#quality-tools)
|
23
27
|
- [Develop](#develop)
|
24
28
|
|
25
|
-
**veryfi-ruby** is a Ruby gem for communicating with the [Veryfi OCR API](https://veryfi.com/api/)
|
26
29
|
|
27
30
|
## Example
|
28
31
|
|
@@ -267,7 +270,7 @@ bin/setup
|
|
267
270
|
## Release
|
268
271
|
|
269
272
|
1. Change version in `lib/veryfi/version.rb`
|
270
|
-
2. Run bundle - this should update `Gemfile.lock`
|
271
|
-
3. Commit changes
|
272
|
-
4. On Github go to `Actions` -> `Release` -> and click
|
273
|
-
5.
|
273
|
+
2. Run `bundle` - this should update `Gemfile.lock`
|
274
|
+
3. Commit changes, push to a new Github branch, and merge
|
275
|
+
4. On Github go to `Actions` -> `Release` -> and click `Run workflow` to trigger a new release
|
276
|
+
5. Release workflow will publish gem to [Rubygems](https://rubygems.org/gems/veryfi)
|
data/coverage/coverage-badge.png
CHANGED
Binary file
|
data/lib/veryfi/version.rb
CHANGED
data/veryfi.gemspec
CHANGED
@@ -14,9 +14,52 @@ Gem::Specification.new do |spec|
|
|
14
14
|
|
15
15
|
spec.homepage = "https://rubygems.org/gems/veryfi"
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
17
|
+
# Affected by git permissions issue
|
18
|
+
# spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
19
|
+
# f.match(%r{^(test|spec|features)/})
|
20
|
+
# end
|
21
|
+
|
22
|
+
spec.files = [
|
23
|
+
".github/workflows/release.yml",
|
24
|
+
".github/workflows/test.yml",
|
25
|
+
".gitignore",
|
26
|
+
".rspec",
|
27
|
+
".rubocop.yml",
|
28
|
+
".ruby-version",
|
29
|
+
".semaphore/semaphore.yml",
|
30
|
+
"Gemfile",
|
31
|
+
"Gemfile.lock",
|
32
|
+
"README.md",
|
33
|
+
"bin/autospec",
|
34
|
+
"bin/bundle-audit",
|
35
|
+
"bin/ci",
|
36
|
+
"bin/console",
|
37
|
+
"bin/quality",
|
38
|
+
"bin/release",
|
39
|
+
"bin/rspec",
|
40
|
+
"bin/rubocop",
|
41
|
+
"bin/setup",
|
42
|
+
"coverage/coverage-badge.png",
|
43
|
+
"docs/.gitignore",
|
44
|
+
"docs/404.html",
|
45
|
+
"docs/_config.yml",
|
46
|
+
"docs/_includes/footer.html",
|
47
|
+
"docs/_includes/header.html",
|
48
|
+
"docs/index.markdown",
|
49
|
+
"lib/.keep",
|
50
|
+
"lib/veryfi.rb",
|
51
|
+
"lib/veryfi/api/document.rb",
|
52
|
+
"lib/veryfi/api/document_tag.rb",
|
53
|
+
"lib/veryfi/api/line_item.rb",
|
54
|
+
"lib/veryfi/api/tag.rb",
|
55
|
+
"lib/veryfi/client.rb",
|
56
|
+
"lib/veryfi/error.rb",
|
57
|
+
"lib/veryfi/request.rb",
|
58
|
+
"lib/veryfi/signature.rb",
|
59
|
+
"lib/veryfi/version.rb",
|
60
|
+
"veryfi.gemspec"
|
61
|
+
]
|
62
|
+
|
20
63
|
spec.bindir = "exe"
|
21
64
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
65
|
spec.require_paths = ["lib"]
|
@@ -25,7 +68,7 @@ Gem::Specification.new do |spec|
|
|
25
68
|
spec.add_dependency "base64", "~> 0.1"
|
26
69
|
spec.add_dependency "openssl", ">= 2.2", "< 3.1"
|
27
70
|
|
28
|
-
spec.add_dependency "faraday", "
|
71
|
+
spec.add_dependency "faraday", ">= 1.7", "< 3.0"
|
29
72
|
|
30
73
|
spec.add_development_dependency "bundler", "~> 2.2"
|
31
74
|
spec.add_development_dependency "bundler-audit", "~> 0.9"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: veryfi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Veryfi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-12-18 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: base64
|
@@ -48,16 +48,22 @@ dependencies:
|
|
48
48
|
name: faraday
|
49
49
|
requirement: !ruby/object:Gem::Requirement
|
50
50
|
requirements:
|
51
|
-
- - "
|
51
|
+
- - ">="
|
52
52
|
- !ruby/object:Gem::Version
|
53
53
|
version: '1.7'
|
54
|
+
- - "<"
|
55
|
+
- !ruby/object:Gem::Version
|
56
|
+
version: '3.0'
|
54
57
|
type: :runtime
|
55
58
|
prerelease: false
|
56
59
|
version_requirements: !ruby/object:Gem::Requirement
|
57
60
|
requirements:
|
58
|
-
- - "
|
61
|
+
- - ">="
|
59
62
|
- !ruby/object:Gem::Version
|
60
63
|
version: '1.7'
|
64
|
+
- - "<"
|
65
|
+
- !ruby/object:Gem::Version
|
66
|
+
version: '3.0'
|
61
67
|
- !ruby/object:Gem::Dependency
|
62
68
|
name: bundler
|
63
69
|
requirement: !ruby/object:Gem::Requirement
|