tangolicious 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.
- checksums.yaml +7 -0
- data/.gitignore +12 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +21 -0
- data/README.md +190 -0
- data/Rakefile +2 -0
- data/bin/console +12 -0
- data/bin/setup +8 -0
- data/lib/tangolicious/account.rb +10 -0
- data/lib/tangolicious/brand.rb +4 -0
- data/lib/tangolicious/catalog.rb +15 -0
- data/lib/tangolicious/credit_card.rb +22 -0
- data/lib/tangolicious/customer.rb +22 -0
- data/lib/tangolicious/exceptions.rb +11 -0
- data/lib/tangolicious/order.rb +23 -0
- data/lib/tangolicious/request.rb +68 -0
- data/lib/tangolicious/resource.rb +41 -0
- data/lib/tangolicious/util.rb +16 -0
- data/lib/tangolicious/version.rb +3 -0
- data/lib/tangolicious.rb +16 -0
- data/tangolicious.gemspec +31 -0
- metadata +162 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: a19a42061cf3ca4d92ad3f387c0209224d3bfb96
|
4
|
+
data.tar.gz: ccc45eaebde3731b4147c19eb0af6429760cf7d4
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: b8b971f9cdc40e87e8ca04272317c26a680c9dfdfe71383de9167ad189ee78c350ee2bb60c58c1da979155256e0288f0718d834699fe96e395e000cb545cf522
|
7
|
+
data.tar.gz: c9c358ac3a45e1a378646432cf04f3037b264e016408a7f0391c3d5f4bc28588082a9ef0cdb0f2b76a94423c26b1c21de4a41d965ea1de6cd5899d64ec70897b
|
data/.gitignore
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2017 Aaron Davis
|
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,190 @@
|
|
1
|
+
# Tangolicious
|
2
|
+
|
3
|
+
Wrapper for Tangocard RAAS API v2
|
4
|
+
|
5
|
+
*This gem is currently in development*
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'tangolicious'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install tangolicious
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
Set your path and platform name and key:
|
26
|
+
|
27
|
+
```ruby
|
28
|
+
Tangolicious.platform_name = PLATFORM_NAME
|
29
|
+
Tangolicious.platform_key = PLATFORM_KEY
|
30
|
+
```
|
31
|
+
|
32
|
+
Optionally, you can set a default `account_identifier` and `customer_identifier` to avoid having to pass these in every post request.
|
33
|
+
|
34
|
+
```ruby
|
35
|
+
Tangolicious.account_identifier = ACCOUNT_IDENTIFIER
|
36
|
+
Tangolicious.customer_identifier = CUSTOMER_IDENTIFIER
|
37
|
+
```
|
38
|
+
|
39
|
+
See https://integration-www.tangocard.com/raas_api_console/v2/ for more detailed documentation about request and response parameters.
|
40
|
+
|
41
|
+
#### Customers
|
42
|
+
|
43
|
+
List all customers
|
44
|
+
|
45
|
+
```ruby
|
46
|
+
Tangolicious::Customer.list
|
47
|
+
```
|
48
|
+
|
49
|
+
Create a customer
|
50
|
+
|
51
|
+
```ruby
|
52
|
+
Tangolicious::Customer.create(customer_identifier: 'my_customer', display_name: 'My Customer')
|
53
|
+
```
|
54
|
+
|
55
|
+
|
56
|
+
Retrieve a customer
|
57
|
+
|
58
|
+
```ruby
|
59
|
+
Tangolicious::Customer.retrieve('my_customer')
|
60
|
+
```
|
61
|
+
|
62
|
+
List all accounts for a customer
|
63
|
+
|
64
|
+
```ruby
|
65
|
+
Tangolicious::Customer.accounts('my_customer')
|
66
|
+
```
|
67
|
+
|
68
|
+
|
69
|
+
Create an account for a customer
|
70
|
+
|
71
|
+
```ruby
|
72
|
+
Tangolicious::Customer.create_account('my_customer', account_identifier: 'my_account', contact_email: 'email', display_name: 'My Account')
|
73
|
+
```
|
74
|
+
|
75
|
+
#### Accounts
|
76
|
+
|
77
|
+
List all accounts
|
78
|
+
|
79
|
+
```ruby
|
80
|
+
Tangolicious::Account.list
|
81
|
+
```
|
82
|
+
|
83
|
+
Retrieve an account
|
84
|
+
|
85
|
+
```ruby
|
86
|
+
Tangolicious::Account.retrieve('my_account')
|
87
|
+
```
|
88
|
+
|
89
|
+
#### Fund
|
90
|
+
|
91
|
+
Fund an account with a credit card
|
92
|
+
|
93
|
+
```ruby
|
94
|
+
Tangolicious::CreditCard.fund(amount: 100, credit_card_token: 'cc_token', account_identifier: 'my_account')
|
95
|
+
```
|
96
|
+
|
97
|
+
Unregister a credit card
|
98
|
+
|
99
|
+
```ruby
|
100
|
+
Tangolicious::CreditCard.unregister(credit_card_token: 'cc_token')
|
101
|
+
```
|
102
|
+
|
103
|
+
List all credit cards
|
104
|
+
|
105
|
+
```ruby
|
106
|
+
Tangolicious::CreditCard.list
|
107
|
+
```
|
108
|
+
|
109
|
+
Register a credit card
|
110
|
+
|
111
|
+
```ruby
|
112
|
+
Tangolicious::CreditCard.register(
|
113
|
+
billing_address: {
|
114
|
+
address_line_1: '123 Main Street',
|
115
|
+
city: 'Denver',
|
116
|
+
country: 'USA',
|
117
|
+
email_address: 'me@example.com',
|
118
|
+
first_name: 'Bob',
|
119
|
+
last_name: 'Smith',
|
120
|
+
postal_code: '12345',
|
121
|
+
state: 'CO'
|
122
|
+
},
|
123
|
+
credit_card: {
|
124
|
+
expiration: '2020-01',
|
125
|
+
number: '4007000000027',
|
126
|
+
verification_number: '123'
|
127
|
+
},
|
128
|
+
ip_address: '192.168.0.1',
|
129
|
+
label: 'my_card'
|
130
|
+
)
|
131
|
+
```
|
132
|
+
|
133
|
+
Retrieve a credit card
|
134
|
+
|
135
|
+
```ruby
|
136
|
+
Tangolicious::CreditCard.retrieve('cc_token')
|
137
|
+
```
|
138
|
+
|
139
|
+
#### Catalog
|
140
|
+
|
141
|
+
List all catalog brands
|
142
|
+
|
143
|
+
```ruby
|
144
|
+
response = Tangolicious::Catalog.list
|
145
|
+
brands = response[:brands]
|
146
|
+
```
|
147
|
+
|
148
|
+
#### Orders
|
149
|
+
|
150
|
+
List all orders
|
151
|
+
|
152
|
+
```ruby
|
153
|
+
response = Tangolicious::Order.list
|
154
|
+
orders = response[:orders]
|
155
|
+
```
|
156
|
+
|
157
|
+
Create an order
|
158
|
+
|
159
|
+
```ruby
|
160
|
+
Tangolicious::Order.create(amount: 100, utid: 'U791917')
|
161
|
+
```
|
162
|
+
|
163
|
+
Retrieve an order
|
164
|
+
|
165
|
+
```ruby
|
166
|
+
Tangolicious::Order.retrieve('reference_order_id')
|
167
|
+
```
|
168
|
+
|
169
|
+
Resend the email for an order
|
170
|
+
|
171
|
+
```ruby
|
172
|
+
Tangolicious::Order.resend('reference_order_id')
|
173
|
+
```
|
174
|
+
|
175
|
+
## Development
|
176
|
+
|
177
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
178
|
+
You can run the console with your development credentials by running `PLATFORM_NAME=[name] PLATFORM_KEY=[key] bin/console`.
|
179
|
+
|
180
|
+
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).
|
181
|
+
|
182
|
+
## Contributing
|
183
|
+
|
184
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/bonusly/tangolicious.
|
185
|
+
|
186
|
+
|
187
|
+
## License
|
188
|
+
|
189
|
+
The gem is available as open source under the terms of the [MIT License](http://opensource.org/licenses/MIT).
|
190
|
+
|
data/Rakefile
ADDED
data/bin/console
ADDED
data/bin/setup
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
require 'tangolicious/request'
|
2
|
+
require 'tangolicious/resource'
|
3
|
+
|
4
|
+
module Tangolicious
|
5
|
+
class Catalog < Resource
|
6
|
+
def self.list
|
7
|
+
response = request.get(endpoint)
|
8
|
+
{ brands: Brand.wrap(response['brands']), catalog_name: response['catalogName'] }
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.endpoint
|
12
|
+
'catalogs'
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'tangolicious/request'
|
2
|
+
require 'tangolicious/resource'
|
3
|
+
|
4
|
+
module Tangolicious
|
5
|
+
class CreditCard < Resource
|
6
|
+
def self.register(params)
|
7
|
+
new(request.post(endpoint, params))
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.unregister(params)
|
11
|
+
request.post('creditCardUnregisters', params)
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.fund(params)
|
15
|
+
request.post('creditCardDeposits', params)
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.endpoint
|
19
|
+
'creditCards'
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,22 @@
|
|
1
|
+
require 'tangolicious/request'
|
2
|
+
require 'tangolicious/resource'
|
3
|
+
|
4
|
+
module Tangolicious
|
5
|
+
class Customer < Resource
|
6
|
+
def self.accounts(id)
|
7
|
+
Account.wrap(request.get("#{endpoint}/#{id}/accounts"))
|
8
|
+
end
|
9
|
+
|
10
|
+
def self.create(params)
|
11
|
+
new(request.post(endpoint, params))
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.create_account(id, params)
|
15
|
+
Account.new(request.post("#{endpoint}/#{id}/accounts", params))
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.endpoint
|
19
|
+
'customers'
|
20
|
+
end
|
21
|
+
end
|
22
|
+
end
|
@@ -0,0 +1,11 @@
|
|
1
|
+
module Tangolicious
|
2
|
+
module Exceptions
|
3
|
+
class BadRequest < StandardError; end
|
4
|
+
class Unauthorized < StandardError; end
|
5
|
+
class InsufficientFunds < StandardError; end
|
6
|
+
class Forbidden < StandardError; end
|
7
|
+
class NotFound < StandardError; end
|
8
|
+
class UnprocessableEntity < StandardError; end
|
9
|
+
class ServiceUnavailable < StandardError; end
|
10
|
+
end
|
11
|
+
end
|
@@ -0,0 +1,23 @@
|
|
1
|
+
require 'tangolicious/request'
|
2
|
+
require 'tangolicious/resource'
|
3
|
+
|
4
|
+
module Tangolicious
|
5
|
+
class Order < Resource
|
6
|
+
def self.list
|
7
|
+
response = request.get(endpoint)
|
8
|
+
{ page: response['page'], orders: self.wrap(response['orders']) }
|
9
|
+
end
|
10
|
+
|
11
|
+
def self.resend(id)
|
12
|
+
request.post("#{endpoint}/#{id}/resends")
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.create(params)
|
16
|
+
new(request.post(endpoint, params))
|
17
|
+
end
|
18
|
+
|
19
|
+
def self.endpoint
|
20
|
+
'orders'
|
21
|
+
end
|
22
|
+
end
|
23
|
+
end
|
@@ -0,0 +1,68 @@
|
|
1
|
+
require 'httparty'
|
2
|
+
require 'active_support/inflector'
|
3
|
+
require 'tangolicious/util'
|
4
|
+
require 'tangolicious/exceptions'
|
5
|
+
|
6
|
+
module Tangolicious
|
7
|
+
class Request
|
8
|
+
include Util
|
9
|
+
|
10
|
+
def get(endpoint)
|
11
|
+
response = parsed_response(HTTParty.get("#{Tangolicious.api_base}#{endpoint}",
|
12
|
+
basic_auth: basic_auth))
|
13
|
+
check_errors(response)
|
14
|
+
end
|
15
|
+
|
16
|
+
def post(endpoint, params = {})
|
17
|
+
response = parsed_response(HTTParty.post("#{Tangolicious.api_base}#{endpoint}",
|
18
|
+
basic_auth: basic_auth,
|
19
|
+
body: camelize_keys(default_params.merge(params)).to_json,
|
20
|
+
headers: headers))
|
21
|
+
check_errors(response)
|
22
|
+
end
|
23
|
+
|
24
|
+
private
|
25
|
+
|
26
|
+
def check_errors(response)
|
27
|
+
return response if response.is_a?(Array)
|
28
|
+
raise Exceptions::BadRequest.new(response) if response.fetch('httpCode', nil) == 400
|
29
|
+
raise Exceptions::Unauthorized.new(response) if response.fetch('httpCode', nil) == 401
|
30
|
+
raise Exceptions::InsufficientFunds.new(response) if response.fetch('httpCode', nil) == 402
|
31
|
+
raise Exceptions::Forbidden.new(response) if response.fetch('httpCode', nil) == 403
|
32
|
+
raise Exceptions::NotFound.new(response) if response.fetch('httpCode', nil) == 404
|
33
|
+
raise Exceptions::UnprocessableEntity.new(response) if response.fetch('httpCode', nil) == 422
|
34
|
+
raise Exceptions::ServiceUnavailable.new(response) if response.fetch('httpCode', nil) == 503
|
35
|
+
response
|
36
|
+
end
|
37
|
+
|
38
|
+
def default_params
|
39
|
+
{
|
40
|
+
account_identifier: Tangolicious.account_identifier,
|
41
|
+
customer_identifier: Tangolicious.customer_identifier
|
42
|
+
}.compact
|
43
|
+
end
|
44
|
+
|
45
|
+
def camelize_keys(attributes)
|
46
|
+
call_recursively(attributes, :tangocard_camelize)
|
47
|
+
end
|
48
|
+
|
49
|
+
def tangocard_camelize(s)
|
50
|
+
s.to_s.camelize(:lower).gsub(/Id$/, 'ID')
|
51
|
+
end
|
52
|
+
|
53
|
+
def parsed_response(response)
|
54
|
+
JSON.parse(response.body)
|
55
|
+
end
|
56
|
+
|
57
|
+
def headers
|
58
|
+
{
|
59
|
+
'Accept' => 'application/json',
|
60
|
+
'Content-Type' => 'application/json'
|
61
|
+
}
|
62
|
+
end
|
63
|
+
|
64
|
+
def basic_auth
|
65
|
+
{ username: Tangolicious.platform_name, password: Tangolicious.platform_key }
|
66
|
+
end
|
67
|
+
end
|
68
|
+
end
|
@@ -0,0 +1,41 @@
|
|
1
|
+
require 'tangolicious/request'
|
2
|
+
require 'tangolicious/util'
|
3
|
+
require 'active_support'
|
4
|
+
require 'active_support/inflector'
|
5
|
+
|
6
|
+
module Tangolicious
|
7
|
+
class Resource < OpenStruct
|
8
|
+
include Util
|
9
|
+
|
10
|
+
def self.wrap(resources)
|
11
|
+
resources.map { |resource| new(resource) }
|
12
|
+
end
|
13
|
+
|
14
|
+
def self.list
|
15
|
+
wrap(request.get(endpoint))
|
16
|
+
end
|
17
|
+
|
18
|
+
def self.retrieve(id)
|
19
|
+
new(request.get("#{endpoint}/#{id}"))
|
20
|
+
end
|
21
|
+
|
22
|
+
def self.request
|
23
|
+
@request ||= Request.new
|
24
|
+
end
|
25
|
+
|
26
|
+
def initialize(attributes = {})
|
27
|
+
super(underscorize_keys(attributes))
|
28
|
+
end
|
29
|
+
|
30
|
+
private
|
31
|
+
|
32
|
+
def underscorize_keys(attributes)
|
33
|
+
call_recursively(attributes, :rubyize)
|
34
|
+
end
|
35
|
+
|
36
|
+
def rubyize(s)
|
37
|
+
s.to_s.underscore.downcase.to_sym
|
38
|
+
end
|
39
|
+
end
|
40
|
+
end
|
41
|
+
|
@@ -0,0 +1,16 @@
|
|
1
|
+
module Tangolicious
|
2
|
+
module Util
|
3
|
+
def call_recursively(hash, method)
|
4
|
+
hash.each_with_object({}) do |item, h|
|
5
|
+
key, value = item
|
6
|
+
h[send(method, key)] = if value.is_a?(Hash)
|
7
|
+
call_recursively(value, method)
|
8
|
+
elsif value.is_a?(Array)
|
9
|
+
value.map { |el| el.is_a?(Hash) ? call_recursively(el, method) : el }
|
10
|
+
else
|
11
|
+
value
|
12
|
+
end
|
13
|
+
end
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
data/lib/tangolicious.rb
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'tangolicious/version'
|
2
|
+
require 'tangolicious/customer'
|
3
|
+
require 'tangolicious/account'
|
4
|
+
require 'tangolicious/credit_card'
|
5
|
+
require 'tangolicious/catalog'
|
6
|
+
require 'tangolicious/order'
|
7
|
+
require 'tangolicious/brand'
|
8
|
+
|
9
|
+
module Tangolicious
|
10
|
+
|
11
|
+
@api_base = 'https://integration-api.tangocard.com/raas/v2/'
|
12
|
+
|
13
|
+
class << self
|
14
|
+
attr_accessor :platform_name, :platform_key, :api_base, :account_identifier, :customer_identifier
|
15
|
+
end
|
16
|
+
end
|
@@ -0,0 +1,31 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
lib = File.expand_path('../lib', __FILE__)
|
3
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
|
+
require 'tangolicious/version'
|
5
|
+
|
6
|
+
Gem::Specification.new do |spec|
|
7
|
+
spec.name = 'tangolicious'
|
8
|
+
spec.version = Tangolicious::VERSION
|
9
|
+
spec.authors = ['Aaron Davis']
|
10
|
+
spec.email = ['aaron@bonus.ly']
|
11
|
+
|
12
|
+
spec.summary = 'Tangocard Raas API v2'
|
13
|
+
spec.homepage = 'https://github.com/bonusly/tangolicious'
|
14
|
+
spec.license = 'MIT'
|
15
|
+
|
16
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
17
|
+
f.match(%r{^(test|spec|features)/})
|
18
|
+
end
|
19
|
+
spec.bindir = 'exe'
|
20
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
21
|
+
spec.require_paths = ['lib']
|
22
|
+
|
23
|
+
spec.add_development_dependency 'bundler', '~> 1.14'
|
24
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
25
|
+
spec.add_development_dependency 'pry'
|
26
|
+
spec.add_development_dependency 'rspec', '~> 3.0'
|
27
|
+
spec.add_development_dependency 'webmock'
|
28
|
+
|
29
|
+
spec.add_runtime_dependency 'activesupport'
|
30
|
+
spec.add_runtime_dependency 'httparty'
|
31
|
+
end
|
metadata
ADDED
@@ -0,0 +1,162 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: tangolicious
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Aaron Davis
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-06-19 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: '1.14'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.14'
|
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: pry
|
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: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '3.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.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: webmock
|
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: activesupport
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :runtime
|
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: httparty
|
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
|
+
description:
|
112
|
+
email:
|
113
|
+
- aaron@bonus.ly
|
114
|
+
executables: []
|
115
|
+
extensions: []
|
116
|
+
extra_rdoc_files: []
|
117
|
+
files:
|
118
|
+
- ".gitignore"
|
119
|
+
- Gemfile
|
120
|
+
- LICENSE.txt
|
121
|
+
- README.md
|
122
|
+
- Rakefile
|
123
|
+
- bin/console
|
124
|
+
- bin/setup
|
125
|
+
- lib/tangolicious.rb
|
126
|
+
- lib/tangolicious/account.rb
|
127
|
+
- lib/tangolicious/brand.rb
|
128
|
+
- lib/tangolicious/catalog.rb
|
129
|
+
- lib/tangolicious/credit_card.rb
|
130
|
+
- lib/tangolicious/customer.rb
|
131
|
+
- lib/tangolicious/exceptions.rb
|
132
|
+
- lib/tangolicious/order.rb
|
133
|
+
- lib/tangolicious/request.rb
|
134
|
+
- lib/tangolicious/resource.rb
|
135
|
+
- lib/tangolicious/util.rb
|
136
|
+
- lib/tangolicious/version.rb
|
137
|
+
- tangolicious.gemspec
|
138
|
+
homepage: https://github.com/bonusly/tangolicious
|
139
|
+
licenses:
|
140
|
+
- MIT
|
141
|
+
metadata: {}
|
142
|
+
post_install_message:
|
143
|
+
rdoc_options: []
|
144
|
+
require_paths:
|
145
|
+
- lib
|
146
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
147
|
+
requirements:
|
148
|
+
- - ">="
|
149
|
+
- !ruby/object:Gem::Version
|
150
|
+
version: '0'
|
151
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
152
|
+
requirements:
|
153
|
+
- - ">="
|
154
|
+
- !ruby/object:Gem::Version
|
155
|
+
version: '0'
|
156
|
+
requirements: []
|
157
|
+
rubyforge_project:
|
158
|
+
rubygems_version: 2.6.11
|
159
|
+
signing_key:
|
160
|
+
specification_version: 4
|
161
|
+
summary: Tangocard Raas API v2
|
162
|
+
test_files: []
|