veriff 0.1.0

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.
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 18137dfe0da5d540baec7b5c5d8c533ec3733bb49cb233991c6075918383a1ae
4
+ data.tar.gz: 0ee20bb30f2929f6898291eccda51906f5fe6e4c375e09e83cc754419a9f114c
5
+ SHA512:
6
+ metadata.gz: 24e01aacf098fcb456f268cbaa82e38aa75cbf2bc576c7b314c3b8f36464ef07dbb01592b67cae8c34daf67b5f1969528ee793d6e0d4fb983c3582fb4b8c2117
7
+ data.tar.gz: f40711fb0faa3c3574e8d1db30b072650f8066c2eb1b594d6b7d578b00e18d6b1b55bcdaa1c858afb952b1d8c752228f584db568906d5d3c5b297e75c2f730be
@@ -0,0 +1,12 @@
1
+ /.bundle/
2
+ /.yardoc
3
+ /_yardoc/
4
+ /coverage/
5
+ /doc/
6
+ /pkg/
7
+ /spec/reports/
8
+ /tmp/
9
+ /.idea/
10
+
11
+ # rspec failure tracking
12
+ .rspec_status
data/.rspec ADDED
@@ -0,0 +1,3 @@
1
+ --format documentation
2
+ --color
3
+ --require spec_helper
@@ -0,0 +1,7 @@
1
+ Style/Documentation:
2
+ Enabled: false
3
+ Metrics/LineLength:
4
+ Max: 100
5
+ Metrics/BlockLength:
6
+ Exclude:
7
+ - 'spec/**/*'
@@ -0,0 +1 @@
1
+ veriff_ruby
@@ -0,0 +1 @@
1
+ ruby-2.6.3
@@ -0,0 +1,7 @@
1
+ ---
2
+ sudo: false
3
+ language: ruby
4
+ cache: bundler
5
+ rvm:
6
+ - 2.6.3
7
+ before_install: gem install bundler -v 2.0.2
@@ -0,0 +1,74 @@
1
+ # Contributor Covenant Code of Conduct
2
+
3
+ ## Our Pledge
4
+
5
+ In the interest of fostering an open and welcoming environment, we as
6
+ contributors and maintainers pledge to making participation in our project and
7
+ our community a harassment-free experience for everyone, regardless of age, body
8
+ size, disability, ethnicity, gender identity and expression, level of experience,
9
+ nationality, personal appearance, race, religion, or sexual identity and
10
+ orientation.
11
+
12
+ ## Our Standards
13
+
14
+ Examples of behavior that contributes to creating a positive environment
15
+ include:
16
+
17
+ * Using welcoming and inclusive language
18
+ * Being respectful of differing viewpoints and experiences
19
+ * Gracefully accepting constructive criticism
20
+ * Focusing on what is best for the community
21
+ * Showing empathy towards other community members
22
+
23
+ Examples of unacceptable behavior by participants include:
24
+
25
+ * The use of sexualized language or imagery and unwelcome sexual attention or
26
+ advances
27
+ * Trolling, insulting/derogatory comments, and personal or political attacks
28
+ * Public or private harassment
29
+ * Publishing others' private information, such as a physical or electronic
30
+ address, without explicit permission
31
+ * Other conduct which could reasonably be considered inappropriate in a
32
+ professional setting
33
+
34
+ ## Our Responsibilities
35
+
36
+ Project maintainers are responsible for clarifying the standards of acceptable
37
+ behavior and are expected to take appropriate and fair corrective action in
38
+ response to any instances of unacceptable behavior.
39
+
40
+ Project maintainers have the right and responsibility to remove, edit, or
41
+ reject comments, commits, code, wiki edits, issues, and other contributions
42
+ that are not aligned to this Code of Conduct, or to ban temporarily or
43
+ permanently any contributor for other behaviors that they deem inappropriate,
44
+ threatening, offensive, or harmful.
45
+
46
+ ## Scope
47
+
48
+ This Code of Conduct applies both within project spaces and in public spaces
49
+ when an individual is representing the project or its community. Examples of
50
+ representing a project or community include using an official project e-mail
51
+ address, posting via an official social media account, or acting as an appointed
52
+ representative at an online or offline event. Representation of a project may be
53
+ further defined and clarified by project maintainers.
54
+
55
+ ## Enforcement
56
+
57
+ Instances of abusive, harassing, or otherwise unacceptable behavior may be
58
+ reported by contacting the project team at wojtek@codegarden.online. All
59
+ complaints will be reviewed and investigated and will result in a response that
60
+ is deemed necessary and appropriate to the circumstances. The project team is
61
+ obligated to maintain confidentiality with regard to the reporter of an incident.
62
+ Further details of specific enforcement policies may be posted separately.
63
+
64
+ Project maintainers who do not follow or enforce the Code of Conduct in good
65
+ faith may face temporary or permanent repercussions as determined by other
66
+ members of the project's leadership.
67
+
68
+ ## Attribution
69
+
70
+ This Code of Conduct is adapted from the [Contributor Covenant][homepage], version 1.4,
71
+ available at [http://contributor-covenant.org/version/1/4][version]
72
+
73
+ [homepage]: http://contributor-covenant.org
74
+ [version]: http://contributor-covenant.org/version/1/4/
data/Gemfile ADDED
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ source 'https://rubygems.org'
4
+
5
+ # Specify your gem's dependencies in veriff.gemspec
6
+ gemspec
@@ -0,0 +1,45 @@
1
+ PATH
2
+ remote: .
3
+ specs:
4
+ veriff (0.1.0)
5
+ httparty (~> 0.17, >= 0.17.3)
6
+
7
+ GEM
8
+ remote: https://rubygems.org/
9
+ specs:
10
+ diff-lcs (1.3)
11
+ httparty (0.17.3)
12
+ mime-types (~> 3.0)
13
+ multi_xml (>= 0.5.2)
14
+ mime-types (3.3.1)
15
+ mime-types-data (~> 3.2015)
16
+ mime-types-data (3.2019.1009)
17
+ multi_xml (0.6.0)
18
+ rake (10.5.0)
19
+ rspec (3.8.0)
20
+ rspec-core (~> 3.8.0)
21
+ rspec-expectations (~> 3.8.0)
22
+ rspec-mocks (~> 3.8.0)
23
+ rspec-core (3.8.2)
24
+ rspec-support (~> 3.8.0)
25
+ rspec-expectations (3.8.4)
26
+ diff-lcs (>= 1.2.0, < 2.0)
27
+ rspec-support (~> 3.8.0)
28
+ rspec-mocks (3.8.1)
29
+ diff-lcs (>= 1.2.0, < 2.0)
30
+ rspec-support (~> 3.8.0)
31
+ rspec-support (3.8.2)
32
+ timecop (0.9.1)
33
+
34
+ PLATFORMS
35
+ ruby
36
+
37
+ DEPENDENCIES
38
+ bundler (~> 2.0)
39
+ rake (~> 10.0)
40
+ rspec (~> 3.0)
41
+ timecop (~> 0.9)
42
+ veriff!
43
+
44
+ BUNDLED WITH
45
+ 2.0.2
@@ -0,0 +1,21 @@
1
+ The MIT License (MIT)
2
+
3
+ Copyright (c) 2019 Wojtek Widenka
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in
13
+ all copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21
+ THE SOFTWARE.
@@ -0,0 +1,55 @@
1
+ # Veriff
2
+
3
+ Simple wrapper on Veriff.com API.
4
+
5
+ ## Installation
6
+
7
+ Add this line to your application's Gemfile:
8
+
9
+ ```ruby
10
+ gem 'veriff'
11
+ ```
12
+
13
+ And then execute:
14
+
15
+ $ bundle
16
+
17
+ Or install it yourself as:
18
+
19
+ $ gem install veriff
20
+
21
+ ## Usage
22
+
23
+ Configure:
24
+
25
+ ```ruby
26
+ Veriff.configure do |config|
27
+ config.api_key = YOUR_API_KEY
28
+ config.api_secret = YOUR_API_SECRET
29
+ end
30
+ ```
31
+
32
+ Use:
33
+
34
+ ```ruby
35
+ session = Veriff::Session.create
36
+ url = session.url
37
+ ```
38
+
39
+ ## Development
40
+
41
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
42
+
43
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
44
+
45
+ ## Contributing
46
+
47
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/veriff. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
48
+
49
+ ## License
50
+
51
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
52
+
53
+ ## Code of Conduct
54
+
55
+ Everyone interacting in the Veriff project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/[USERNAME]/veriff/blob/master/CODE_OF_CONDUCT.md).
@@ -0,0 +1,8 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'bundler/gem_tasks'
4
+ require 'rspec/core/rake_task'
5
+
6
+ RSpec::Core::RakeTask.new(:spec)
7
+
8
+ task default: :spec
@@ -0,0 +1,15 @@
1
+ #!/usr/bin/env ruby
2
+ # frozen_string_literal: true
3
+
4
+ require 'bundler/setup'
5
+ require 'veriff'
6
+
7
+ # You can add fixtures and/or initialization code here to make experimenting
8
+ # with your gem easier. You can also use a different console, if you like.
9
+
10
+ # (If you use this, don't forget to add pry to your Gemfile!)
11
+ # require "pry"
12
+ # Pry.start
13
+
14
+ require 'irb'
15
+ IRB.start(__FILE__)
@@ -0,0 +1,8 @@
1
+ #!/usr/bin/env bash
2
+ set -euo pipefail
3
+ IFS=$'\n\t'
4
+ set -vx
5
+
6
+ bundle install
7
+
8
+ # Do any other automated setup that you need to do here
@@ -0,0 +1,40 @@
1
+ # frozen_string_literal: true
2
+
3
+ require 'httparty'
4
+ require 'veriff/parser'
5
+
6
+ require 'veriff/version'
7
+
8
+ require 'veriff/configuration'
9
+ require 'veriff/security'
10
+
11
+ require 'veriff/model'
12
+ require 'veriff/media_holder'
13
+ require 'veriff/attempt'
14
+ require 'veriff/media'
15
+ require 'veriff/person'
16
+ require 'veriff/session'
17
+ require 'veriff/timestamp'
18
+ require 'veriff/decision'
19
+
20
+ require 'veriff/webhook'
21
+ require 'veriff/webhooks/invalid_signature_error'
22
+ require 'veriff/webhooks/event'
23
+ require 'veriff/webhooks/decision'
24
+
25
+
26
+ module Veriff
27
+ include HTTParty
28
+ extend Configuration
29
+ extend Security
30
+
31
+ base_uri configuration.base_uri
32
+ parser(Veriff::Parser)
33
+ raise_on(400...600)
34
+
35
+ headers(
36
+ 'CONTENT-TYPE' => 'application/json',
37
+ 'X-AUTH-CLIENT' => -> { configuration.api_key },
38
+ 'X-SIGNATURE' => ->(options) { generate_signature(options) }
39
+ )
40
+ end
@@ -0,0 +1,7 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Veriff
4
+ class Attempt < Model
5
+ include MediaHolder
6
+ end
7
+ end
@@ -0,0 +1,23 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Veriff
4
+ module Configuration
5
+ DEFAULT_CONFIG = {
6
+ base_uri: 'https://api.veriff.me/v1'
7
+ }.freeze
8
+
9
+ def configuration
10
+ @configuration ||= OpenStruct.new(DEFAULT_CONFIG)
11
+ end
12
+
13
+ def configure
14
+ yield(configuration)
15
+ reload_config
16
+ end
17
+
18
+ def reload_config
19
+ base_uri configuration.base_uri
20
+ true
21
+ end
22
+ end
23
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Veriff
4
+ class Decision < Model
5
+ def person
6
+ @person ||= OpenStruct.new(@data_hash[:person])
7
+ end
8
+
9
+ def document
10
+ @document ||= OpenStruct.new(@data_hash[:document])
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,14 @@
1
+ # frozen_string_literal: true
2
+ require 'stringio'
3
+
4
+ module Veriff
5
+ class Media < Model
6
+ def file
7
+ StringIO.new(Veriff.get("/media/#{id}", signature: id).body)
8
+ end
9
+
10
+ def timestamp
11
+ @timestamp ||= Timestamp.new(@data_hash[:timestamp])
12
+ end
13
+ end
14
+ end
@@ -0,0 +1,33 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Veriff
4
+ module MediaHolder
5
+ def images
6
+ fetch_media
7
+ @images
8
+ end
9
+
10
+ def videos
11
+ fetch_media
12
+ @videos
13
+ end
14
+
15
+ def media
16
+ images | videos
17
+ end
18
+
19
+ private
20
+
21
+ def fetch_media
22
+ return unless @images.nil?
23
+
24
+ response = Veriff.get(
25
+ "/#{self.class.api_collection_name}/#{id}/media",
26
+ signature: id
27
+ ).parsed_response
28
+
29
+ @images = response[:images].map { |image| Media.new(image) }
30
+ @videos = response[:videos].map { |video| Media.new(video) }
31
+ end
32
+ end
33
+ end
@@ -0,0 +1,22 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Veriff
4
+ class Model
5
+ def initialize(data_hash)
6
+ data_hash.fetch(:id)
7
+ @data_hash = data_hash
8
+ end
9
+
10
+ def respond_to_missing?(method_name, include_private = false)
11
+ @data_hash.key?(method_name) || super
12
+ end
13
+
14
+ def method_missing(method_name, *_args)
15
+ @data_hash.key?(method_name) ? @data_hash[method_name] : super
16
+ end
17
+
18
+ def self.api_collection_name
19
+ "#{name.gsub('Veriff::', '').downcase}s"
20
+ end
21
+ end
22
+ end
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Veriff
4
+ class Parser < HTTParty::Parser
5
+ SUPPORTED_FORMATS = { 'application/json' => :json }.freeze
6
+
7
+ def self.formats
8
+ SUPPORTED_FORMATS
9
+ end
10
+
11
+ protected
12
+
13
+ def json
14
+ deep_transform_keys(JSON.parse(body)) do |key|
15
+ underscore(key).to_sym
16
+ end
17
+ end
18
+
19
+ private
20
+
21
+ # source: https://apidock.com/rails/v5.2.3/Hash/_deep_transform_keys_in_object
22
+ def deep_transform_keys(object, &block)
23
+ case object
24
+ when Hash
25
+ object.each_with_object({}) do |(key, value), result|
26
+ result[yield(key)] = deep_transform_keys(value, &block)
27
+ end
28
+ when Array
29
+ object.map { |e| deep_transform_keys(e, &block) }
30
+ else
31
+ object
32
+ end
33
+ end
34
+
35
+ # source: https://github.com/rails/rails/blob/master/activesupport/lib/active_support/inflector/methods.rb#L91
36
+ def underscore(camel_cased_word)
37
+ return camel_cased_word unless /[A-Z-]|::/.match?(camel_cased_word)
38
+
39
+ word = camel_cased_word.to_s.gsub(/([A-Z\d]+)([A-Z][a-z])/, '\1_\2')
40
+ word.gsub!(/([a-z\d])([A-Z])/, '\1_\2')
41
+ word.tr!('-', '_')
42
+ word.downcase!
43
+ word
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,6 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Veriff
4
+ class Person < Model
5
+ end
6
+ end
@@ -0,0 +1,15 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Veriff
4
+ module Security
5
+ def generate_signature(options)
6
+ Digest::SHA256.hexdigest(
7
+ "#{options[:signature] || options[:body]}#{configuration.api_secret}"
8
+ )
9
+ end
10
+
11
+ def validate_signature(body, signature)
12
+ generate_signature(body: body) == signature
13
+ end
14
+ end
15
+ end
@@ -0,0 +1,46 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Veriff
4
+ class Session < Model
5
+ class << self
6
+ def create(params = {})
7
+ params[:features] ||= [:selfid]
8
+ params[:timestamp] ||= Time.now.utc.iso8601(3)
9
+
10
+ verification = Veriff.post(
11
+ '/sessions', body: { verification: params }.to_json
12
+ ).parsed_response[:verification]
13
+
14
+ new(verification)
15
+ end
16
+ end
17
+
18
+ include MediaHolder
19
+
20
+ def person
21
+ @person ||= Person.new(Veriff.get("/sessions/#{id}/person", signature: id)
22
+ .parsed_response[:person])
23
+ end
24
+
25
+ def timestamps
26
+ @timestamps ||= Veriff.get("/sessions/#{id}/timestamps", signature: id)
27
+ .parsed_response[:timestamps].map do |timestamp|
28
+ Timestamp.new(timestamp)
29
+ end
30
+ end
31
+
32
+ def attempts
33
+ @attempts ||= Veriff.get("/sessions/#{id}/attempts", signature: id)
34
+ .parsed_response[:verifications].map do |attempt|
35
+ Attempt.new(attempt)
36
+ end
37
+ end
38
+
39
+ def decision
40
+ @decision ||= Decision.new(
41
+ Veriff.get("/sessions/#{id}/decision", signature: id)
42
+ .parsed_response[:verification]
43
+ )
44
+ end
45
+ end
46
+ end
@@ -0,0 +1,13 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Veriff
4
+ class Timestamp < Model
5
+ def algorithm
6
+ data_hash[:algorithm]
7
+ end
8
+
9
+ def value
10
+ data_hash[:value]
11
+ end
12
+ end
13
+ end
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Veriff
4
+ VERSION = '0.1.0'
5
+ end
@@ -0,0 +1,11 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Veriff
4
+ module Webhook
5
+ def parse(body, signature)
6
+ return new(body) if Veriff::validate_signature(body, signature)
7
+
8
+ raise Webhooks::InvalidSignatureError, 'Given signature does not match body and API Secret'
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,21 @@
1
+ # frozen_string_literal: true
2
+
3
+ module Veriff
4
+ module Webhooks
5
+ class Decision < Model
6
+ extend Webhook
7
+
8
+ def initialize(body)
9
+ super(Parser.call(body, :json)[:verification])
10
+ end
11
+
12
+ def person
13
+ @person ||= OpenStruct.new(@data_hash[:person])
14
+ end
15
+
16
+ def document
17
+ @document ||= OpenStruct.new(@data_hash[:document])
18
+ end
19
+ end
20
+ end
21
+ end
@@ -0,0 +1,11 @@
1
+ module Veriff
2
+ module Webhooks
3
+ class Event < Model
4
+ extend Webhook
5
+
6
+ def initialize(body)
7
+ super(Parser.call(body, :json))
8
+ end
9
+ end
10
+ end
11
+ end
@@ -0,0 +1,5 @@
1
+ module Veriff
2
+ module Webhooks
3
+ class InvalidSignatureError < StandardError; end
4
+ end
5
+ end
@@ -0,0 +1,35 @@
1
+ # frozen_string_literal: true
2
+
3
+ lib = File.expand_path('lib', __dir__)
4
+ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
5
+ require 'veriff/version'
6
+
7
+ Gem::Specification.new do |spec|
8
+ spec.name = 'veriff'
9
+ spec.version = Veriff::VERSION
10
+ spec.authors = ['Wojtek Widenka']
11
+ spec.email = ['wojtek@codegarden.online']
12
+
13
+ spec.summary = 'Simple wrapper on Verff.com API'
14
+ spec.description = 'Simple wrapper on Verff.com API'
15
+ spec.homepage = 'https://github.com/BankToTheFuture/veriff_ruby'
16
+ spec.license = 'MIT'
17
+
18
+ spec.metadata['homepage_uri'] = spec.homepage
19
+ spec.metadata['source_code_uri'] = 'https://github.com/BankToTheFuture/veriff_ruby'
20
+
21
+ spec.files = Dir.chdir(File.expand_path(__dir__)) do
22
+ `git ls-files -z`
23
+ .split("\x0")
24
+ .reject { |f| f.match(%r{^(test|spec|features)/}) }
25
+ end
26
+ spec.bindir = 'exe'
27
+ spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
28
+ spec.require_paths = ['lib']
29
+
30
+ spec.add_dependency 'httparty', '~> 0.17', '>= 0.17.3'
31
+ spec.add_development_dependency 'bundler', '~> 2.0'
32
+ spec.add_development_dependency 'rake', '~> 10.0'
33
+ spec.add_development_dependency 'rspec', '~> 3.0'
34
+ spec.add_development_dependency 'timecop', '~> 0.9'
35
+ end
metadata ADDED
@@ -0,0 +1,153 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: veriff
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.0
5
+ platform: ruby
6
+ authors:
7
+ - Wojtek Widenka
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2020-01-09 00:00:00.000000000 Z
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: httparty
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.17'
20
+ - - ">="
21
+ - !ruby/object:Gem::Version
22
+ version: 0.17.3
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: !ruby/object:Gem::Requirement
26
+ requirements:
27
+ - - "~>"
28
+ - !ruby/object:Gem::Version
29
+ version: '0.17'
30
+ - - ">="
31
+ - !ruby/object:Gem::Version
32
+ version: 0.17.3
33
+ - !ruby/object:Gem::Dependency
34
+ name: bundler
35
+ requirement: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - "~>"
38
+ - !ruby/object:Gem::Version
39
+ version: '2.0'
40
+ type: :development
41
+ prerelease: false
42
+ version_requirements: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - "~>"
45
+ - !ruby/object:Gem::Version
46
+ version: '2.0'
47
+ - !ruby/object:Gem::Dependency
48
+ name: rake
49
+ requirement: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - "~>"
52
+ - !ruby/object:Gem::Version
53
+ version: '10.0'
54
+ type: :development
55
+ prerelease: false
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - "~>"
59
+ - !ruby/object:Gem::Version
60
+ version: '10.0'
61
+ - !ruby/object:Gem::Dependency
62
+ name: rspec
63
+ requirement: !ruby/object:Gem::Requirement
64
+ requirements:
65
+ - - "~>"
66
+ - !ruby/object:Gem::Version
67
+ version: '3.0'
68
+ type: :development
69
+ prerelease: false
70
+ version_requirements: !ruby/object:Gem::Requirement
71
+ requirements:
72
+ - - "~>"
73
+ - !ruby/object:Gem::Version
74
+ version: '3.0'
75
+ - !ruby/object:Gem::Dependency
76
+ name: timecop
77
+ requirement: !ruby/object:Gem::Requirement
78
+ requirements:
79
+ - - "~>"
80
+ - !ruby/object:Gem::Version
81
+ version: '0.9'
82
+ type: :development
83
+ prerelease: false
84
+ version_requirements: !ruby/object:Gem::Requirement
85
+ requirements:
86
+ - - "~>"
87
+ - !ruby/object:Gem::Version
88
+ version: '0.9'
89
+ description: Simple wrapper on Verff.com API
90
+ email:
91
+ - wojtek@codegarden.online
92
+ executables: []
93
+ extensions: []
94
+ extra_rdoc_files: []
95
+ files:
96
+ - ".gitignore"
97
+ - ".rspec"
98
+ - ".rubocop.yml"
99
+ - ".ruby-gemset"
100
+ - ".ruby-version"
101
+ - ".travis.yml"
102
+ - CODE_OF_CONDUCT.md
103
+ - Gemfile
104
+ - Gemfile.lock
105
+ - LICENSE.txt
106
+ - README.md
107
+ - Rakefile
108
+ - bin/console
109
+ - bin/setup
110
+ - lib/veriff.rb
111
+ - lib/veriff/attempt.rb
112
+ - lib/veriff/configuration.rb
113
+ - lib/veriff/decision.rb
114
+ - lib/veriff/media.rb
115
+ - lib/veriff/media_holder.rb
116
+ - lib/veriff/model.rb
117
+ - lib/veriff/parser.rb
118
+ - lib/veriff/person.rb
119
+ - lib/veriff/security.rb
120
+ - lib/veriff/session.rb
121
+ - lib/veriff/timestamp.rb
122
+ - lib/veriff/version.rb
123
+ - lib/veriff/webhook.rb
124
+ - lib/veriff/webhooks/decision.rb
125
+ - lib/veriff/webhooks/event.rb
126
+ - lib/veriff/webhooks/invalid_signature_error.rb
127
+ - veriff.gemspec
128
+ homepage: https://github.com/BankToTheFuture/veriff_ruby
129
+ licenses:
130
+ - MIT
131
+ metadata:
132
+ homepage_uri: https://github.com/BankToTheFuture/veriff_ruby
133
+ source_code_uri: https://github.com/BankToTheFuture/veriff_ruby
134
+ post_install_message:
135
+ rdoc_options: []
136
+ require_paths:
137
+ - lib
138
+ required_ruby_version: !ruby/object:Gem::Requirement
139
+ requirements:
140
+ - - ">="
141
+ - !ruby/object:Gem::Version
142
+ version: '0'
143
+ required_rubygems_version: !ruby/object:Gem::Requirement
144
+ requirements:
145
+ - - ">="
146
+ - !ruby/object:Gem::Version
147
+ version: '0'
148
+ requirements: []
149
+ rubygems_version: 3.0.3
150
+ signing_key:
151
+ specification_version: 4
152
+ summary: Simple wrapper on Verff.com API
153
+ test_files: []