perfect_audit 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +9 -0
- data/.irbrc +7 -0
- data/.rspec +2 -0
- data/.travis.yml +4 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +82 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/lib/perfect_audit.rb +47 -0
- data/lib/perfect_audit/api/bank_account.rb +26 -0
- data/lib/perfect_audit/api/book.rb +38 -0
- data/lib/perfect_audit/api/document.rb +26 -0
- data/lib/perfect_audit/api/period.rb +16 -0
- data/lib/perfect_audit/api/repositories.rb +90 -0
- data/lib/perfect_audit/connection.rb +27 -0
- data/lib/perfect_audit/response_parser.rb +22 -0
- data/lib/perfect_audit/version.rb +3 -0
- data/perfect_audit.gemspec +35 -0
- metadata +191 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7c44bff4137bdd40b067263f0e526acbaba3b1bc
|
4
|
+
data.tar.gz: 7cc8e2d98a5848df06754c50dc7e0528a0126959
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 4c56f255bb80c54f2975c0a4fce2ccc36f4e44dc7b752645eef82567a7dde9a542f20c5a371dbcfc5276fa551a4c85e57cd44484c86c5f4b39ff110d18b68389
|
7
|
+
data.tar.gz: 46fe3306210da40faba5806657ee2f6dc7c7f231ed468a03a60ff66037e895f5bbbda427707331b9ca31023b3e92716c8080c021535da52f7ac9bcd2ed640d40
|
data/.gitignore
ADDED
data/.irbrc
ADDED
data/.rspec
ADDED
data/.travis.yml
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2018 Igor Alexandrov
|
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.
|
data/README.md
ADDED
@@ -0,0 +1,82 @@
|
|
1
|
+
# PerfectAudit
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/perfect_audit`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'perfect_audit'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install perfect_audit
|
22
|
+
|
23
|
+
## Configuration
|
24
|
+
|
25
|
+
``` ruby
|
26
|
+
PerfectAudit.configure do |config|
|
27
|
+
config[:api_key] = 'your_api_key'
|
28
|
+
config[:api_secret] = 'your_api_secret'
|
29
|
+
end
|
30
|
+
```
|
31
|
+
|
32
|
+
## Usage
|
33
|
+
|
34
|
+
### Books
|
35
|
+
|
36
|
+
Get books list for your account:
|
37
|
+
|
38
|
+
``` ruby
|
39
|
+
PerfectAudit.books.all
|
40
|
+
```
|
41
|
+
|
42
|
+
Create a book:
|
43
|
+
|
44
|
+
``` ruby
|
45
|
+
PerfectAudit.books.create(name: 'Test book', is_public: 'false')
|
46
|
+
```
|
47
|
+
|
48
|
+
Get book information:
|
49
|
+
|
50
|
+
``` ruby
|
51
|
+
PerfectAudit.books.find(book_id)
|
52
|
+
```
|
53
|
+
|
54
|
+
Delete a book:
|
55
|
+
|
56
|
+
``` ruby
|
57
|
+
PerfectAudit.books.delete(book_or_id)
|
58
|
+
```
|
59
|
+
|
60
|
+
### Documents
|
61
|
+
|
62
|
+
Upload document to a book:
|
63
|
+
|
64
|
+
``` ruby
|
65
|
+
PerfectAudit.documents.create(book_or_id, file_or_io)
|
66
|
+
```
|
67
|
+
|
68
|
+
## Development
|
69
|
+
|
70
|
+
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.
|
71
|
+
|
72
|
+
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).
|
73
|
+
|
74
|
+
## Contributing
|
75
|
+
|
76
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/perfect_audit.
|
77
|
+
|
78
|
+
|
79
|
+
## License
|
80
|
+
|
81
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
82
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "perfect_audit"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start
|
data/bin/setup
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
require 'dry-container'
|
2
|
+
require 'dry-auto_inject'
|
3
|
+
|
4
|
+
require 'perfect_audit/connection'
|
5
|
+
require 'perfect_audit/response_parser'
|
6
|
+
require 'perfect_audit/version'
|
7
|
+
|
8
|
+
module PerfectAudit
|
9
|
+
|
10
|
+
class << self
|
11
|
+
def configure
|
12
|
+
configuration = Hash.new
|
13
|
+
yield configuration
|
14
|
+
|
15
|
+
connection = PerfectAudit::Connection.new(configuration)
|
16
|
+
|
17
|
+
container.register :connection, -> { connection }
|
18
|
+
container.register :response_parser, -> { PerfectAudit::ResponseParser }
|
19
|
+
container.freeze
|
20
|
+
end
|
21
|
+
|
22
|
+
def books
|
23
|
+
PerfectAudit::BooksRepository.new
|
24
|
+
end
|
25
|
+
|
26
|
+
def documents
|
27
|
+
PerfectAudit::DocumentsRepository.new
|
28
|
+
end
|
29
|
+
|
30
|
+
def transactions
|
31
|
+
PerfectAudit::TransactionsRepository.new
|
32
|
+
end
|
33
|
+
end
|
34
|
+
|
35
|
+
private
|
36
|
+
|
37
|
+
@@container = Dry::Container.new
|
38
|
+
|
39
|
+
AutoInject = Dry::AutoInject(@@container)
|
40
|
+
|
41
|
+
def self.container
|
42
|
+
@@container
|
43
|
+
end
|
44
|
+
end
|
45
|
+
|
46
|
+
require 'perfect_audit/api/repositories'
|
47
|
+
# require 'local_configuration'
|
@@ -0,0 +1,26 @@
|
|
1
|
+
require 'perfect_audit/api/period'
|
2
|
+
|
3
|
+
module PerfectAudit
|
4
|
+
class BankAccount
|
5
|
+
extend Dry::Initializer
|
6
|
+
|
7
|
+
option :pk, as: :id
|
8
|
+
option :book_pk, as: :book_id
|
9
|
+
option :account_type#, optional: true
|
10
|
+
option :account_holder#, optional: true
|
11
|
+
option :account_number#, optional: true
|
12
|
+
option :holder_zip#, optional: true
|
13
|
+
option :holder_state#, optional: true
|
14
|
+
option :holder_city#, optional: true
|
15
|
+
option :holder_address_1#, optional: true
|
16
|
+
option :holder_address_2#, optional: true
|
17
|
+
option :name
|
18
|
+
option :periods, as: :_periods
|
19
|
+
|
20
|
+
def periods
|
21
|
+
_periods.map do |item|
|
22
|
+
PerfectAudit::Period.new(item.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo})
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,38 @@
|
|
1
|
+
require 'perfect_audit/api/bank_account'
|
2
|
+
require 'perfect_audit/api/document'
|
3
|
+
|
4
|
+
module PerfectAudit
|
5
|
+
class Book
|
6
|
+
extend Dry::Initializer
|
7
|
+
|
8
|
+
option :pk, as: :id
|
9
|
+
option :created, as: :created_at
|
10
|
+
option :name
|
11
|
+
option :is_public, as: :public
|
12
|
+
option :owner_email, optional: true
|
13
|
+
option :status_tags, optional: true
|
14
|
+
option :bank_accounts, optional: true, as: :_bank_accounts
|
15
|
+
option :docs, optional: true, as: :_documents
|
16
|
+
|
17
|
+
alias_method :public?, :public
|
18
|
+
|
19
|
+
def bank_accounts
|
20
|
+
_bank_accounts.map do |id, params|
|
21
|
+
PerfectAudit::BankAccount.new(params.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo})
|
22
|
+
end
|
23
|
+
end
|
24
|
+
|
25
|
+
def documents
|
26
|
+
_documents.map do |item|
|
27
|
+
PerfectAudit::Document.new(item.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo})
|
28
|
+
end
|
29
|
+
end
|
30
|
+
|
31
|
+
def verification_complete?
|
32
|
+
documents.all?(&:verification_complete?)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
|
37
|
+
|
38
|
+
|
@@ -0,0 +1,26 @@
|
|
1
|
+
module PerfectAudit
|
2
|
+
class Document
|
3
|
+
extend Dry::Initializer
|
4
|
+
|
5
|
+
STATUSES = %w(
|
6
|
+
queued
|
7
|
+
failed
|
8
|
+
verifying
|
9
|
+
verification_complete
|
10
|
+
deleting
|
11
|
+
deleted
|
12
|
+
rejected
|
13
|
+
)
|
14
|
+
|
15
|
+
option :pk, as: :id
|
16
|
+
option :pages
|
17
|
+
option :status, proc(&:downcase)
|
18
|
+
option :name
|
19
|
+
|
20
|
+
STATUSES.each do |s|
|
21
|
+
define_method "#{s}?" do
|
22
|
+
status == s
|
23
|
+
end
|
24
|
+
end
|
25
|
+
end
|
26
|
+
end
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module PerfectAudit
|
2
|
+
class Period
|
3
|
+
extend Dry::Initializer
|
4
|
+
|
5
|
+
option :pk, as: :id
|
6
|
+
option :begin_date, proc { |v| Date.parse(v) }
|
7
|
+
option :end_date, proc { |v| Date.parse(v) }
|
8
|
+
option :begin_balance, proc(&:to_f)
|
9
|
+
option :end_balance, proc(&:to_f)
|
10
|
+
option :primary_recon_error_reason
|
11
|
+
option :secondary_recon_error_reason
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
|
16
|
+
|
@@ -0,0 +1,90 @@
|
|
1
|
+
require 'perfect_audit/api/book'
|
2
|
+
require 'http/form_data'
|
3
|
+
|
4
|
+
module PerfectAudit
|
5
|
+
class BooksRepository
|
6
|
+
include PerfectAudit::AutoInject[:connection]
|
7
|
+
include PerfectAudit::AutoInject[:response_parser]
|
8
|
+
|
9
|
+
def create(name, public = false)
|
10
|
+
response = connection.post('book/add',
|
11
|
+
json: {
|
12
|
+
name: name.to_s,
|
13
|
+
is_public: public.to_s
|
14
|
+
}
|
15
|
+
)
|
16
|
+
|
17
|
+
PerfectAudit::Book.new(response_parser.parse(response.body.to_s))
|
18
|
+
end
|
19
|
+
|
20
|
+
def all
|
21
|
+
response = connection.get('books')
|
22
|
+
|
23
|
+
response_parser.parse(response.body.to_s).map{ |item|
|
24
|
+
PerfectAudit::Book.new(item)
|
25
|
+
}
|
26
|
+
end
|
27
|
+
|
28
|
+
def find(id)
|
29
|
+
response = connection.get('book/info',
|
30
|
+
params: {
|
31
|
+
pk: id.to_s
|
32
|
+
}
|
33
|
+
)
|
34
|
+
|
35
|
+
PerfectAudit::Book.new(response_parser.parse(response.body.to_s))
|
36
|
+
end
|
37
|
+
|
38
|
+
def delete(book_or_id)
|
39
|
+
id = book_or_id.is_a?(PerfectAudit::Book) ? book_or_id.id.to_s : book_or_id.to_s
|
40
|
+
response = connection.post('book/remove',
|
41
|
+
json: {
|
42
|
+
book_id: id
|
43
|
+
}
|
44
|
+
)
|
45
|
+
|
46
|
+
response_parser.parse(response.body.to_s)
|
47
|
+
|
48
|
+
true
|
49
|
+
end
|
50
|
+
end
|
51
|
+
|
52
|
+
class DocumentsRepository
|
53
|
+
include PerfectAudit::AutoInject[:connection]
|
54
|
+
include PerfectAudit::AutoInject[:response_parser]
|
55
|
+
|
56
|
+
def create(book_or_id, file)
|
57
|
+
id = book_or_id.is_a?(PerfectAudit::Book) ? book_or_id.id.to_s : book_or_id.to_s
|
58
|
+
|
59
|
+
response = connection.post('book/upload',
|
60
|
+
form: {
|
61
|
+
pk: id,
|
62
|
+
upload: HTTP::FormData::File.new(file)
|
63
|
+
}
|
64
|
+
)
|
65
|
+
|
66
|
+
response_parser.parse(response.body.to_s)
|
67
|
+
|
68
|
+
true
|
69
|
+
end
|
70
|
+
end
|
71
|
+
|
72
|
+
# class TransactionsRepository
|
73
|
+
# include PerfectAudit::AutoInject[:connection]
|
74
|
+
# include PerfectAudit::AutoInject[:response_parser]
|
75
|
+
|
76
|
+
# def find(book_or_id)
|
77
|
+
# id = book_or_id.is_a?(PerfectAudit::Book) ? book_or_id.id.to_s : book_or_id.to_s
|
78
|
+
|
79
|
+
# response = connection.get('transaction',
|
80
|
+
# params: {
|
81
|
+
# book_pk: id
|
82
|
+
# }
|
83
|
+
# )
|
84
|
+
|
85
|
+
# response_parser.parse(response.body.to_s)[:bank_accounts].map do |id, params|
|
86
|
+
# PerfectAudit::BankAccount.new(params.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo})
|
87
|
+
# end
|
88
|
+
# end
|
89
|
+
# end
|
90
|
+
end
|
@@ -0,0 +1,27 @@
|
|
1
|
+
require 'dry-initializer'
|
2
|
+
require 'http'
|
3
|
+
|
4
|
+
module PerfectAudit
|
5
|
+
class Connection
|
6
|
+
extend Dry::Initializer
|
7
|
+
|
8
|
+
BASE_PATH = 'https://www.perfectaudit.com/api/v1/'.freeze
|
9
|
+
|
10
|
+
option :api_key
|
11
|
+
option :api_secret
|
12
|
+
|
13
|
+
def post(path, params)
|
14
|
+
HTTP.basic_auth(:user => api_key, :pass => api_secret).post(url(path), params)
|
15
|
+
end
|
16
|
+
|
17
|
+
def get(path, params = {})
|
18
|
+
HTTP.basic_auth(:user => api_key, :pass => api_secret).get(url(path), params)
|
19
|
+
end
|
20
|
+
|
21
|
+
private
|
22
|
+
|
23
|
+
def url(path)
|
24
|
+
URI.join(BASE_PATH, path)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'ostruct'
|
2
|
+
|
3
|
+
module PerfectAudit
|
4
|
+
class ResponseParser
|
5
|
+
def self.parse(response)
|
6
|
+
struct = OpenStruct.new(JSON.parse(response))
|
7
|
+
|
8
|
+
raise StandardError, struct.message if struct.status != 200
|
9
|
+
|
10
|
+
case struct.response
|
11
|
+
when Hash
|
12
|
+
struct.response.inject({}){|memo,(k,v)| memo[k.to_sym] = v; memo}
|
13
|
+
when Array
|
14
|
+
struct.response.map do |item|
|
15
|
+
item.inject({}){ |memo,(k,v)| memo[k.to_sym] = v; memo }
|
16
|
+
end
|
17
|
+
else
|
18
|
+
struct.response
|
19
|
+
end
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,35 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'perfect_audit/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "perfect_audit"
|
8
|
+
spec.version = PerfectAudit::VERSION
|
9
|
+
spec.authors = ["Igor Alexandrov"]
|
10
|
+
spec.email = ["igor.alexandrov@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Perfect Audit API gem.}
|
13
|
+
spec.description = %q{Perfect Audit API gem. https://www.perfectaudit.com/api_docs}
|
14
|
+
spec.homepage = "https://github.com/igor-alexandrov/perfect_audit"
|
15
|
+
spec.license = "MIT"
|
16
|
+
|
17
|
+
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
18
|
+
spec.bindir = "exe"
|
19
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
20
|
+
spec.require_paths = ["lib"]
|
21
|
+
|
22
|
+
spec.required_ruby_version = '~> 2.3'
|
23
|
+
|
24
|
+
# a b c d e f g h i j k l m n o p q r s t u v w x y z
|
25
|
+
spec.add_dependency 'dry-auto_inject'
|
26
|
+
spec.add_dependency 'dry-container'
|
27
|
+
spec.add_dependency 'dry-initializer'
|
28
|
+
spec.add_dependency 'http'
|
29
|
+
spec.add_dependency 'http-form_data'
|
30
|
+
|
31
|
+
spec.add_development_dependency 'bundler', "~> 1.11"
|
32
|
+
spec.add_development_dependency 'rake', "~> 10.0"
|
33
|
+
spec.add_development_dependency 'rspec', "~> 3.0"
|
34
|
+
spec.add_development_dependency 'pry'
|
35
|
+
end
|
metadata
ADDED
@@ -0,0 +1,191 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: perfect_audit
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Igor Alexandrov
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-03-20 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: dry-auto_inject
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ">="
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: dry-container
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ">="
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '0'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: dry-initializer
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ">="
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: http
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - ">="
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '0'
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ">="
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: http-form_data
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :runtime
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: bundler
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - "~>"
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '1.11'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - "~>"
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '1.11'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rake
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - "~>"
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '10.0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - "~>"
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '10.0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: rspec
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '3.0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '3.0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: pry
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
description: Perfect Audit API gem. https://www.perfectaudit.com/api_docs
|
140
|
+
email:
|
141
|
+
- igor.alexandrov@gmail.com
|
142
|
+
executables: []
|
143
|
+
extensions: []
|
144
|
+
extra_rdoc_files: []
|
145
|
+
files:
|
146
|
+
- ".gitignore"
|
147
|
+
- ".irbrc"
|
148
|
+
- ".rspec"
|
149
|
+
- ".travis.yml"
|
150
|
+
- Gemfile
|
151
|
+
- LICENSE.txt
|
152
|
+
- README.md
|
153
|
+
- Rakefile
|
154
|
+
- bin/console
|
155
|
+
- bin/setup
|
156
|
+
- lib/perfect_audit.rb
|
157
|
+
- lib/perfect_audit/api/bank_account.rb
|
158
|
+
- lib/perfect_audit/api/book.rb
|
159
|
+
- lib/perfect_audit/api/document.rb
|
160
|
+
- lib/perfect_audit/api/period.rb
|
161
|
+
- lib/perfect_audit/api/repositories.rb
|
162
|
+
- lib/perfect_audit/connection.rb
|
163
|
+
- lib/perfect_audit/response_parser.rb
|
164
|
+
- lib/perfect_audit/version.rb
|
165
|
+
- perfect_audit.gemspec
|
166
|
+
homepage: https://github.com/igor-alexandrov/perfect_audit
|
167
|
+
licenses:
|
168
|
+
- MIT
|
169
|
+
metadata: {}
|
170
|
+
post_install_message:
|
171
|
+
rdoc_options: []
|
172
|
+
require_paths:
|
173
|
+
- lib
|
174
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
175
|
+
requirements:
|
176
|
+
- - "~>"
|
177
|
+
- !ruby/object:Gem::Version
|
178
|
+
version: '2.3'
|
179
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
180
|
+
requirements:
|
181
|
+
- - ">="
|
182
|
+
- !ruby/object:Gem::Version
|
183
|
+
version: '0'
|
184
|
+
requirements: []
|
185
|
+
rubyforge_project:
|
186
|
+
rubygems_version: 2.6.13
|
187
|
+
signing_key:
|
188
|
+
specification_version: 4
|
189
|
+
summary: Perfect Audit API gem.
|
190
|
+
test_files: []
|
191
|
+
has_rdoc:
|