xhash_client 0.3.0 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +59 -0
- data/Gemfile +12 -0
- data/Gemfile.lock +61 -0
- data/LICENSE +21 -0
- data/README.md +2 -0
- data/Rakefile +7 -0
- data/lib/xhash/client/api_client.rb +27 -0
- data/lib/xhash/client/json_api.rb +65 -0
- data/lib/xhash/database_lookup.rb +28 -0
- data/lib/xhash/document_types.rb +15 -0
- data/lib/xhash/error.rb +23 -0
- data/lib/xhash/error_messages.rb +8 -0
- data/lib/xhash/formatters.rb +9 -0
- data/lib/xhash/general.rb +63 -0
- data/lib/xhash/ocr.rb +124 -0
- data/lib/xhash/sat.rb +18 -0
- data/lib/xhash/structs/curp.rb +16 -0
- data/lib/xhash/structs/customer.rb +49 -0
- data/lib/xhash/structs/identification.rb +30 -0
- data/lib/xhash/structs/proof_of_address.rb +15 -0
- data/lib/xhash/structs/rfc.rb +3 -0
- data/lib/xhash/version.rb +3 -0
- data/spec/files/ife_front.png +0 -0
- data/spec/files/ife_reverse.jpg +0 -0
- data/spec/files/telmex.png +0 -0
- data/spec/spec_helper.rb +9 -0
- data/spec/xhash/database_lookup_spec.rb +108 -0
- data/spec/xhash/general_spec.rb +208 -0
- data/spec/xhash/ocr_spec.rb +395 -0
- data/spec/xhash/sat_spec.rb +36 -0
- data/spec/xhash_ruby_spec.rb +11 -0
- data/xhash_client.gemspec +27 -0
- metadata +47 -21
metadata
CHANGED
@@ -1,11 +1,11 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xhash_client
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yellowme
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
date: 2019-10-10 00:00:00.000000000 Z
|
@@ -38,20 +38,6 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: '2.0'
|
41
|
-
- !ruby/object:Gem::Dependency
|
42
|
-
name: activesupport
|
43
|
-
requirement: !ruby/object:Gem::Requirement
|
44
|
-
requirements:
|
45
|
-
- - "~>"
|
46
|
-
- !ruby/object:Gem::Version
|
47
|
-
version: '5.2'
|
48
|
-
type: :runtime
|
49
|
-
prerelease: false
|
50
|
-
version_requirements: !ruby/object:Gem::Requirement
|
51
|
-
requirements:
|
52
|
-
- - "~>"
|
53
|
-
- !ruby/object:Gem::Version
|
54
|
-
version: '5.2'
|
55
41
|
- !ruby/object:Gem::Dependency
|
56
42
|
name: rspec
|
57
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -100,12 +86,44 @@ executables: []
|
|
100
86
|
extensions: []
|
101
87
|
extra_rdoc_files: []
|
102
88
|
files:
|
89
|
+
- ".gitignore"
|
90
|
+
- Gemfile
|
91
|
+
- Gemfile.lock
|
92
|
+
- LICENSE
|
93
|
+
- README.md
|
94
|
+
- Rakefile
|
103
95
|
- lib/xhash.rb
|
96
|
+
- lib/xhash/client/api_client.rb
|
97
|
+
- lib/xhash/client/json_api.rb
|
98
|
+
- lib/xhash/database_lookup.rb
|
99
|
+
- lib/xhash/document_types.rb
|
100
|
+
- lib/xhash/error.rb
|
101
|
+
- lib/xhash/error_messages.rb
|
102
|
+
- lib/xhash/formatters.rb
|
103
|
+
- lib/xhash/general.rb
|
104
|
+
- lib/xhash/ocr.rb
|
105
|
+
- lib/xhash/sat.rb
|
106
|
+
- lib/xhash/structs/curp.rb
|
107
|
+
- lib/xhash/structs/customer.rb
|
108
|
+
- lib/xhash/structs/identification.rb
|
109
|
+
- lib/xhash/structs/proof_of_address.rb
|
110
|
+
- lib/xhash/structs/rfc.rb
|
111
|
+
- lib/xhash/version.rb
|
112
|
+
- spec/files/ife_front.png
|
113
|
+
- spec/files/ife_reverse.jpg
|
114
|
+
- spec/files/telmex.png
|
115
|
+
- spec/spec_helper.rb
|
116
|
+
- spec/xhash/database_lookup_spec.rb
|
117
|
+
- spec/xhash/general_spec.rb
|
118
|
+
- spec/xhash/ocr_spec.rb
|
119
|
+
- spec/xhash/sat_spec.rb
|
120
|
+
- spec/xhash_ruby_spec.rb
|
121
|
+
- xhash_client.gemspec
|
104
122
|
homepage: https://rubygems.org/gems/xhash-ruby
|
105
123
|
licenses:
|
106
124
|
- MIT
|
107
125
|
metadata: {}
|
108
|
-
post_install_message:
|
126
|
+
post_install_message:
|
109
127
|
rdoc_options: []
|
110
128
|
require_paths:
|
111
129
|
- lib
|
@@ -120,9 +138,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
120
138
|
- !ruby/object:Gem::Version
|
121
139
|
version: '0'
|
122
140
|
requirements: []
|
123
|
-
|
124
|
-
|
125
|
-
signing_key:
|
141
|
+
rubygems_version: 3.1.2
|
142
|
+
signing_key:
|
126
143
|
specification_version: 4
|
127
144
|
summary: Ruby library built for Xhash API
|
128
|
-
test_files:
|
145
|
+
test_files:
|
146
|
+
- spec/files/ife_front.png
|
147
|
+
- spec/files/ife_reverse.jpg
|
148
|
+
- spec/files/telmex.png
|
149
|
+
- spec/spec_helper.rb
|
150
|
+
- spec/xhash/database_lookup_spec.rb
|
151
|
+
- spec/xhash/general_spec.rb
|
152
|
+
- spec/xhash/ocr_spec.rb
|
153
|
+
- spec/xhash/sat_spec.rb
|
154
|
+
- spec/xhash_ruby_spec.rb
|