saasu2 0.1.0.pre
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 +7 -0
- data/.gitignore +10 -0
- data/.rspec +1 -0
- data/.ruby-version +1 -0
- data/.travis.yml +5 -0
- data/CODE_OF_CONDUCT.md +13 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +30 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +7 -0
- data/lib/saasu/account.rb +4 -0
- data/lib/saasu/auth.rb +59 -0
- data/lib/saasu/base.rb +144 -0
- data/lib/saasu/client.rb +47 -0
- data/lib/saasu/company.rb +4 -0
- data/lib/saasu/config.rb +11 -0
- data/lib/saasu/contact.rb +4 -0
- data/lib/saasu/invoice.rb +4 -0
- data/lib/saasu/invoice_attachment.rb +3 -0
- data/lib/saasu/item.rb +4 -0
- data/lib/saasu/payment.rb +4 -0
- data/lib/saasu/tax_code.rb +4 -0
- data/lib/saasu/version.rb +3 -0
- data/lib/saasu.rb +16 -0
- data/saasu2.gemspec +33 -0
- metadata +211 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: ef4f91281902664f17b2c52ee2871df934c51d42
|
4
|
+
data.tar.gz: 43f634972cb7b6b9645d908e2961bf6c311c4f27
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 25149c64b15e36ca720edd0fb41f238fcdad0d97eb8ec6760b59016ab952a72c2398f30c472fff8e21a97ec7860f7f1b5f2d1a0de66d8d1cccf86e099db2af62
|
7
|
+
data.tar.gz: 9c6bda2d041394d1a57e92407ae9f3f20e8558d8c89e42296cd77fc43e49e75a2f6d55ccaa7910fea15c77c3b00267464a94e0e0463ed7690f6937de4670eda9
|
data/.gitignore
ADDED
data/.rspec
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
--color
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
2.1.5
|
data/.travis.yml
ADDED
data/CODE_OF_CONDUCT.md
ADDED
@@ -0,0 +1,13 @@
|
|
1
|
+
# Contributor Code of Conduct
|
2
|
+
|
3
|
+
As contributors and maintainers of this project, we pledge to respect all people who contribute through reporting issues, posting feature requests, updating documentation, submitting pull requests or patches, and other activities.
|
4
|
+
|
5
|
+
We are committed to making participation in this project a harassment-free experience for everyone, regardless of level of experience, gender, gender identity and expression, sexual orientation, disability, personal appearance, body size, race, age, or religion.
|
6
|
+
|
7
|
+
Examples of unacceptable behavior by participants include the use of sexual language or imagery, derogatory comments or personal attacks, trolling, public or private harassment, insults, or other unprofessional conduct.
|
8
|
+
|
9
|
+
Project maintainers have the right and responsibility to remove, edit, or reject comments, commits, code, wiki edits, issues, and other contributions that are not aligned to this Code of Conduct. Project maintainers who do not follow the Code of Conduct may be removed from the project team.
|
10
|
+
|
11
|
+
Instances of abusive, harassing, or otherwise unacceptable behavior may be reported by opening an issue or contacting one or more of the project maintainers.
|
12
|
+
|
13
|
+
This Code of Conduct is adapted from the [Contributor Covenant](http:contributor-covenant.org), version 1.0.0, available at [http://contributor-covenant.org/version/1/0/0/](http://contributor-covenant.org/version/1/0/0/)
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2015 Saasu
|
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,30 @@
|
|
1
|
+
## Ruby Software Development Kit for Saasu API
|
2
|
+
This repository is a version of the Saasu software development kit in the Ruby language, for working with the Saasu API.
|
3
|
+
For help on the API itself, you can look at the [help documentation](https://api.saasu.com/).
|
4
|
+
|
5
|
+
[](http://badge.fury.io/rb/saasu2)
|
6
|
+
[](https://travis-ci.org/nsinenko/saasu-rails)
|
7
|
+
|
8
|
+
## Installation
|
9
|
+
|
10
|
+
Add this line to your application's Gemfile:
|
11
|
+
|
12
|
+
```ruby
|
13
|
+
gem 'saasu2'
|
14
|
+
```
|
15
|
+
|
16
|
+
And then execute:
|
17
|
+
|
18
|
+
$ bundle
|
19
|
+
|
20
|
+
Or install it yourself as:
|
21
|
+
|
22
|
+
$ gem install saasu2
|
23
|
+
|
24
|
+
## Contributing
|
25
|
+
|
26
|
+
1. Fork it ( https://github.com/[my-github-username]/saasu2/fork )
|
27
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
28
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
29
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
30
|
+
5. Create a new Pull Request
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "saasu2"
|
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
data/lib/saasu/auth.rb
ADDED
@@ -0,0 +1,59 @@
|
|
1
|
+
require 'faraday'
|
2
|
+
require 'faraday_middleware'
|
3
|
+
|
4
|
+
module Saasu
|
5
|
+
module Auth
|
6
|
+
extend self
|
7
|
+
|
8
|
+
def authenticate
|
9
|
+
Saasu::Client.connection.authorization :Bearer, token
|
10
|
+
end
|
11
|
+
|
12
|
+
private
|
13
|
+
def token_expired?
|
14
|
+
@token_expiry ||= Date.yesterday
|
15
|
+
@token_expiry < DateTime.now
|
16
|
+
end
|
17
|
+
|
18
|
+
def token
|
19
|
+
if @access_token && !token_expired?
|
20
|
+
@access_token
|
21
|
+
elsif @access_token && token_expired?
|
22
|
+
refresh_access_token
|
23
|
+
else
|
24
|
+
get_access_token
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
def refresh_access_token
|
29
|
+
result = Saasu::Client.connection.post('authorisation/refresh') do |request|
|
30
|
+
request.body = { grant_type: 'refresh_token', refresh_token: @refresh_token }.to_json
|
31
|
+
end
|
32
|
+
|
33
|
+
unless result.status == 200
|
34
|
+
raise "Failed to authenicate Saasu API. Please check your username and password."
|
35
|
+
end
|
36
|
+
|
37
|
+
@access_token = result.body['access_token']
|
38
|
+
@token_expiry = DateTime.now + (result.body['expires_in']).to_i.seconds
|
39
|
+
|
40
|
+
@access_token
|
41
|
+
end
|
42
|
+
|
43
|
+
def get_access_token
|
44
|
+
result = Saasu::Client.connection.post('authorisation/token') do |request|
|
45
|
+
request.body = { grant_type: 'password', scope: 'full', username: Saasu::Config.username, password: Saasu::Config.password }.to_json
|
46
|
+
end
|
47
|
+
|
48
|
+
unless result.status == 200
|
49
|
+
raise "Failed to authenicate Saasu API. Please check your username and password."
|
50
|
+
end
|
51
|
+
|
52
|
+
@access_token = result.body['access_token']
|
53
|
+
@refresh_token = result.body['refresh_token']
|
54
|
+
@token_expiry = DateTime.now + (result.body['expires_in']).to_i.seconds
|
55
|
+
|
56
|
+
@access_token
|
57
|
+
end
|
58
|
+
end
|
59
|
+
end
|
data/lib/saasu/base.rb
ADDED
@@ -0,0 +1,144 @@
|
|
1
|
+
module Saasu
|
2
|
+
class Base
|
3
|
+
def initialize(params = {})
|
4
|
+
@attributes = params.deep_stringify_keys
|
5
|
+
end
|
6
|
+
|
7
|
+
def self.all
|
8
|
+
validate_method_is_implemented_in_saasu_api(:index)
|
9
|
+
|
10
|
+
Saasu::Client.request(:get, resource_url.pluralize).values.first.map do |record|
|
11
|
+
self.new(record)
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.find(id)
|
16
|
+
validate_method_is_implemented_in_saasu_api(:show)
|
17
|
+
|
18
|
+
response = Saasu::Client.request(:get, resource_url(id))
|
19
|
+
|
20
|
+
if response.present?
|
21
|
+
self.new(response)
|
22
|
+
else
|
23
|
+
response.body
|
24
|
+
end
|
25
|
+
end
|
26
|
+
|
27
|
+
def self.where(params)
|
28
|
+
validate_method_is_implemented_in_saasu_api(:index)
|
29
|
+
validate_filters(params)
|
30
|
+
|
31
|
+
Saasu::Client.request(:get, resource_url.pluralize, params).values.first.map do |record|
|
32
|
+
self.new(record)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
|
36
|
+
def delete
|
37
|
+
validate_method_is_implemented_in_saasu_api(:destroy)
|
38
|
+
|
39
|
+
if Saasu::Client.request(:delete, self.class.resource_url(id))["StatusMessage"] == "Ok"
|
40
|
+
self['Id'] = nil
|
41
|
+
true
|
42
|
+
else
|
43
|
+
false
|
44
|
+
end
|
45
|
+
end
|
46
|
+
|
47
|
+
def self.delete(id)
|
48
|
+
validate_method_is_implemented_in_saasu_api(:destroy)
|
49
|
+
|
50
|
+
Saasu::Client.request(:delete, resource_url(id))
|
51
|
+
end
|
52
|
+
|
53
|
+
def save
|
54
|
+
if self.id.present?
|
55
|
+
validate_method_is_implemented_in_saasu_api(:update)
|
56
|
+
Saasu::Client.request(:put, self.class.resource_url(id), @attributes)
|
57
|
+
else
|
58
|
+
validate_method_is_implemented_in_saasu_api(:create)
|
59
|
+
self['Id'] = Saasu::Client.request(:post, self.class.resource_url, @attributes).values.first
|
60
|
+
end
|
61
|
+
|
62
|
+
@attributes = Saasu::Client.request(:get, self.class.resource_url(id))
|
63
|
+
true
|
64
|
+
end
|
65
|
+
|
66
|
+
def update(params)
|
67
|
+
validate_method_is_implemented_in_saasu_api(:update)
|
68
|
+
|
69
|
+
params.each do |key, value|
|
70
|
+
self[key] = value
|
71
|
+
end
|
72
|
+
|
73
|
+
save
|
74
|
+
end
|
75
|
+
|
76
|
+
def self.create(params)
|
77
|
+
validate_method_is_implemented_in_saasu_api(:create)
|
78
|
+
|
79
|
+
id = Saasu::Client.request(:post, resource_url, params).values.first
|
80
|
+
new(Saasu::Client.request(:get, resource_url(id)))
|
81
|
+
end
|
82
|
+
|
83
|
+
def validate_method_is_implemented_in_saasu_api(method_name)
|
84
|
+
self.class.validate_method_is_implemented_in_saasu_api(method_name)
|
85
|
+
end
|
86
|
+
|
87
|
+
def self.validate_method_is_implemented_in_saasu_api(method_name)
|
88
|
+
raise "This method is not currently supported by Saasu API" unless @api_methods.include?(method_name)
|
89
|
+
end
|
90
|
+
|
91
|
+
def [](key)
|
92
|
+
@attributes[key.to_s]
|
93
|
+
end
|
94
|
+
|
95
|
+
def []=(key, value)
|
96
|
+
@attributes[key.to_s] = value
|
97
|
+
end
|
98
|
+
|
99
|
+
def method_missing meth, *args, &cb
|
100
|
+
if meth.in?(getter_methods)
|
101
|
+
@attributes[meth.to_s.classify]
|
102
|
+
elsif meth.in?(setter_methods)
|
103
|
+
@attributes[meth.to_s.gsub('=','').classify] = args.flatten.compact.first
|
104
|
+
else
|
105
|
+
super meth, *args, &cb
|
106
|
+
end
|
107
|
+
end
|
108
|
+
|
109
|
+
def to_s
|
110
|
+
"#{self.class.name.demodulize} ##{self.id}"
|
111
|
+
end
|
112
|
+
|
113
|
+
def id
|
114
|
+
@attributes['Id']
|
115
|
+
end
|
116
|
+
|
117
|
+
protected
|
118
|
+
def getter_methods
|
119
|
+
@attributes.keys.map { |k| k.underscore.to_sym }
|
120
|
+
end
|
121
|
+
|
122
|
+
def setter_methods
|
123
|
+
@attributes.keys.map { |k| "#{k.underscore}=".to_sym }
|
124
|
+
end
|
125
|
+
|
126
|
+
def self.allowed_methods(*params)
|
127
|
+
@api_methods = params
|
128
|
+
end
|
129
|
+
|
130
|
+
def self.filter_by(params)
|
131
|
+
@filters = params
|
132
|
+
end
|
133
|
+
|
134
|
+
def self.resource_url(id = nil)
|
135
|
+
[name.demodulize.downcase, id].compact.join('/')
|
136
|
+
end
|
137
|
+
|
138
|
+
def self.validate_filters(params)
|
139
|
+
params.keys.each do |key|
|
140
|
+
raise "Filter not supported by Saasu API: #{key}. Supported filters: #{@filters.join(", ")}" unless key.to_s.in?(@filters)
|
141
|
+
end
|
142
|
+
end
|
143
|
+
end
|
144
|
+
end
|
data/lib/saasu/client.rb
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
require 'faraday'
|
2
|
+
require 'faraday_middleware'
|
3
|
+
|
4
|
+
module Saasu
|
5
|
+
class Client
|
6
|
+
class_attribute :connection
|
7
|
+
|
8
|
+
class << self
|
9
|
+
def request(method, url, params = {})
|
10
|
+
Saasu::Auth.authenticate
|
11
|
+
request_url = url + "?FileId=#{Saasu::Config.file_id}"
|
12
|
+
response = connection.send(method, request_url, params)
|
13
|
+
|
14
|
+
if response.status == 200
|
15
|
+
response.body
|
16
|
+
elsif response.status == 404
|
17
|
+
raise "Resource not found."
|
18
|
+
else
|
19
|
+
raise "Server did not return a valid response. Response status: #{response.status}. Response body: #{response.body}"
|
20
|
+
end
|
21
|
+
end
|
22
|
+
|
23
|
+
def connection
|
24
|
+
@@connection ||= initialize_connection
|
25
|
+
end
|
26
|
+
|
27
|
+
private
|
28
|
+
def initialize_connection
|
29
|
+
con = Faraday.new(url: api_url) do |c|
|
30
|
+
c.request :json
|
31
|
+
|
32
|
+
c.response :json, :content_type => /\bjson$/
|
33
|
+
|
34
|
+
c.use :instrumentation
|
35
|
+
c.adapter Faraday.default_adapter
|
36
|
+
end
|
37
|
+
|
38
|
+
con.headers['X-Api-Version'] = '1.0'
|
39
|
+
con
|
40
|
+
end
|
41
|
+
|
42
|
+
def api_url
|
43
|
+
Saasu::Config.api_url || 'https://api.saasu.com/'
|
44
|
+
end
|
45
|
+
end
|
46
|
+
end
|
47
|
+
end
|
data/lib/saasu/config.rb
ADDED
data/lib/saasu/item.rb
ADDED
data/lib/saasu.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require "saasu/version"
|
2
|
+
require "saasu/client"
|
3
|
+
require "saasu/base"
|
4
|
+
require "saasu/contact"
|
5
|
+
require "saasu/invoice_attachment"
|
6
|
+
require "saasu/item"
|
7
|
+
require "saasu/invoice"
|
8
|
+
require "saasu/company"
|
9
|
+
require "saasu/payment"
|
10
|
+
require "saasu/account"
|
11
|
+
require "saasu/tax_code"
|
12
|
+
require "saasu/config"
|
13
|
+
require "saasu/auth"
|
14
|
+
|
15
|
+
module Saasu
|
16
|
+
end
|
data/saasu2.gemspec
ADDED
@@ -0,0 +1,33 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'saasu/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = "saasu2"
|
8
|
+
spec.version = Saasu::VERSION
|
9
|
+
spec.authors = ["Nick Sinenko"]
|
10
|
+
spec.email = ["nick.sinenko@gmail.com"]
|
11
|
+
|
12
|
+
spec.summary = %q{Ruby wrapper for Saasu API.}
|
13
|
+
spec.homepage = "https://api.saasu.com"
|
14
|
+
spec.license = "MIT"
|
15
|
+
spec.required_ruby_version = ">= 1.9.0"
|
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.add_development_dependency "bundler"
|
23
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
24
|
+
spec.add_development_dependency "rspec"
|
25
|
+
spec.add_development_dependency 'byebug', '3.2.0'
|
26
|
+
spec.add_development_dependency 'pry-rails'
|
27
|
+
spec.add_development_dependency 'awesome_print'
|
28
|
+
|
29
|
+
spec.add_dependency "faraday"
|
30
|
+
spec.add_dependency "faraday_middleware"
|
31
|
+
spec.add_dependency "webmock"
|
32
|
+
spec.add_dependency 'activesupport'
|
33
|
+
end
|
metadata
ADDED
@@ -0,0 +1,211 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: saasu2
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0.pre
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Nick Sinenko
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2015-07-30 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - ">="
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '0'
|
20
|
+
type: :development
|
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: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '10.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '10.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rspec
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - ">="
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '0'
|
48
|
+
type: :development
|
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: byebug
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 3.2.0
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 3.2.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: pry-rails
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
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: awesome_print
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: faraday
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :runtime
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: faraday_middleware
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: webmock
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: activesupport
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ">="
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ">="
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: '0'
|
153
|
+
description:
|
154
|
+
email:
|
155
|
+
- nick.sinenko@gmail.com
|
156
|
+
executables: []
|
157
|
+
extensions: []
|
158
|
+
extra_rdoc_files: []
|
159
|
+
files:
|
160
|
+
- ".gitignore"
|
161
|
+
- ".rspec"
|
162
|
+
- ".ruby-version"
|
163
|
+
- ".travis.yml"
|
164
|
+
- CODE_OF_CONDUCT.md
|
165
|
+
- Gemfile
|
166
|
+
- LICENSE.txt
|
167
|
+
- README.md
|
168
|
+
- Rakefile
|
169
|
+
- bin/console
|
170
|
+
- bin/setup
|
171
|
+
- lib/saasu.rb
|
172
|
+
- lib/saasu/account.rb
|
173
|
+
- lib/saasu/auth.rb
|
174
|
+
- lib/saasu/base.rb
|
175
|
+
- lib/saasu/client.rb
|
176
|
+
- lib/saasu/company.rb
|
177
|
+
- lib/saasu/config.rb
|
178
|
+
- lib/saasu/contact.rb
|
179
|
+
- lib/saasu/invoice.rb
|
180
|
+
- lib/saasu/invoice_attachment.rb
|
181
|
+
- lib/saasu/item.rb
|
182
|
+
- lib/saasu/payment.rb
|
183
|
+
- lib/saasu/tax_code.rb
|
184
|
+
- lib/saasu/version.rb
|
185
|
+
- saasu2.gemspec
|
186
|
+
homepage: https://api.saasu.com
|
187
|
+
licenses:
|
188
|
+
- MIT
|
189
|
+
metadata: {}
|
190
|
+
post_install_message:
|
191
|
+
rdoc_options: []
|
192
|
+
require_paths:
|
193
|
+
- lib
|
194
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
195
|
+
requirements:
|
196
|
+
- - ">="
|
197
|
+
- !ruby/object:Gem::Version
|
198
|
+
version: 1.9.0
|
199
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
200
|
+
requirements:
|
201
|
+
- - ">"
|
202
|
+
- !ruby/object:Gem::Version
|
203
|
+
version: 1.3.1
|
204
|
+
requirements: []
|
205
|
+
rubyforge_project:
|
206
|
+
rubygems_version: 2.2.2
|
207
|
+
signing_key:
|
208
|
+
specification_version: 4
|
209
|
+
summary: Ruby wrapper for Saasu API.
|
210
|
+
test_files: []
|
211
|
+
has_rdoc:
|