cash_out 0.0.2
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 +1 -0
- data/.rspec +3 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +118 -0
- data/LICENSE.txt +21 -0
- data/README.md +50 -0
- data/Rakefile +6 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/cash_out.gemspec +34 -0
- data/config/locales/en.yml +9 -0
- data/lib/cash_out/base.rb +4 -0
- data/lib/cash_out/configuration.rb +10 -0
- data/lib/cash_out/payments/customer/create.rb +37 -0
- data/lib/cash_out/payments/customer/delete.rb +23 -0
- data/lib/cash_out/service_base.rb +27 -0
- data/lib/cash_out/version.rb +4 -0
- data/lib/cash_out.rb +38 -0
- data/lib/generators/cash_out/install_generator.rb +12 -0
- data/lib/generators/cash_out/templates/cash_out_config.rb +5 -0
- metadata +189 -0
checksums.yaml
ADDED
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
---
|
|
2
|
+
SHA1:
|
|
3
|
+
metadata.gz: 89d3b16a65640bfe86c9c9b08db3415d802b5daa
|
|
4
|
+
data.tar.gz: e7264ed0558c1dd2ff12a1741ca08b1f6627c03a
|
|
5
|
+
SHA512:
|
|
6
|
+
metadata.gz: ba3d8f16518bd1b28926a4a1d28cd8a70f867e5c7060f6c684429ef0191eef143e5b02ac558b1a0bb23ccbaea1cda1c7d57b08b49d7f701f83706bbbbb5745de
|
|
7
|
+
data.tar.gz: fa92ab005a40e0e61ef6540bacc53f11f6789dee1f3b7f0a2637676e6d496389fec00a47ad6ea08dcfcc170c8d3bae3614b80386fa1f16d7e7a40431019ab94d
|
data/.gitignore
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
spec/examples.txt
|
data/.rspec
ADDED
data/Gemfile
ADDED
data/Gemfile.lock
ADDED
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
PATH
|
|
2
|
+
remote: .
|
|
3
|
+
specs:
|
|
4
|
+
cash_out (0.0.1)
|
|
5
|
+
active_interaction (~> 3.6)
|
|
6
|
+
railties (< 6.0)
|
|
7
|
+
stripe (~> 3.21)
|
|
8
|
+
|
|
9
|
+
GEM
|
|
10
|
+
remote: https://rubygems.org/
|
|
11
|
+
specs:
|
|
12
|
+
actionpack (5.2.1)
|
|
13
|
+
actionview (= 5.2.1)
|
|
14
|
+
activesupport (= 5.2.1)
|
|
15
|
+
rack (~> 2.0)
|
|
16
|
+
rack-test (>= 0.6.3)
|
|
17
|
+
rails-dom-testing (~> 2.0)
|
|
18
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.2)
|
|
19
|
+
actionview (5.2.1)
|
|
20
|
+
activesupport (= 5.2.1)
|
|
21
|
+
builder (~> 3.1)
|
|
22
|
+
erubi (~> 1.4)
|
|
23
|
+
rails-dom-testing (~> 2.0)
|
|
24
|
+
rails-html-sanitizer (~> 1.0, >= 1.0.3)
|
|
25
|
+
active_interaction (3.6.1)
|
|
26
|
+
activemodel (>= 4, < 6)
|
|
27
|
+
activemodel (5.2.1)
|
|
28
|
+
activesupport (= 5.2.1)
|
|
29
|
+
activesupport (5.2.1)
|
|
30
|
+
concurrent-ruby (~> 1.0, >= 1.0.2)
|
|
31
|
+
i18n (>= 0.7, < 2)
|
|
32
|
+
minitest (~> 5.1)
|
|
33
|
+
tzinfo (~> 1.1)
|
|
34
|
+
builder (3.2.3)
|
|
35
|
+
byebug (10.0.1)
|
|
36
|
+
coderay (1.1.2)
|
|
37
|
+
concurrent-ruby (1.0.5)
|
|
38
|
+
crass (1.0.4)
|
|
39
|
+
dante (0.2.0)
|
|
40
|
+
diff-lcs (1.3)
|
|
41
|
+
erubi (1.7.1)
|
|
42
|
+
faraday (0.15.2)
|
|
43
|
+
multipart-post (>= 1.2, < 3)
|
|
44
|
+
i18n (1.1.0)
|
|
45
|
+
concurrent-ruby (~> 1.0)
|
|
46
|
+
loofah (2.2.2)
|
|
47
|
+
crass (~> 1.0.2)
|
|
48
|
+
nokogiri (>= 1.5.9)
|
|
49
|
+
method_source (0.9.0)
|
|
50
|
+
mini_portile2 (2.3.0)
|
|
51
|
+
minitest (5.11.3)
|
|
52
|
+
multi_json (1.13.1)
|
|
53
|
+
multipart-post (2.0.0)
|
|
54
|
+
nokogiri (1.8.4)
|
|
55
|
+
mini_portile2 (~> 2.3.0)
|
|
56
|
+
pry (0.11.3)
|
|
57
|
+
coderay (~> 1.1.0)
|
|
58
|
+
method_source (~> 0.9.0)
|
|
59
|
+
pry-byebug (3.6.0)
|
|
60
|
+
byebug (~> 10.0)
|
|
61
|
+
pry (~> 0.10)
|
|
62
|
+
rack (2.0.5)
|
|
63
|
+
rack-test (1.1.0)
|
|
64
|
+
rack (>= 1.0, < 3)
|
|
65
|
+
rails-dom-testing (2.0.3)
|
|
66
|
+
activesupport (>= 4.2.0)
|
|
67
|
+
nokogiri (>= 1.6)
|
|
68
|
+
rails-html-sanitizer (1.0.4)
|
|
69
|
+
loofah (~> 2.2, >= 2.2.2)
|
|
70
|
+
railties (5.2.1)
|
|
71
|
+
actionpack (= 5.2.1)
|
|
72
|
+
activesupport (= 5.2.1)
|
|
73
|
+
method_source
|
|
74
|
+
rake (>= 0.8.7)
|
|
75
|
+
thor (>= 0.19.0, < 2.0)
|
|
76
|
+
rake (10.5.0)
|
|
77
|
+
rspec (3.8.0)
|
|
78
|
+
rspec-core (~> 3.8.0)
|
|
79
|
+
rspec-expectations (~> 3.8.0)
|
|
80
|
+
rspec-mocks (~> 3.8.0)
|
|
81
|
+
rspec-activemodel-mocks (1.0.3)
|
|
82
|
+
activemodel (>= 3.0)
|
|
83
|
+
activesupport (>= 3.0)
|
|
84
|
+
rspec-mocks (>= 2.99, < 4.0)
|
|
85
|
+
rspec-core (3.8.0)
|
|
86
|
+
rspec-support (~> 3.8.0)
|
|
87
|
+
rspec-expectations (3.8.1)
|
|
88
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
89
|
+
rspec-support (~> 3.8.0)
|
|
90
|
+
rspec-mocks (3.8.0)
|
|
91
|
+
diff-lcs (>= 1.2.0, < 2.0)
|
|
92
|
+
rspec-support (~> 3.8.0)
|
|
93
|
+
rspec-support (3.8.0)
|
|
94
|
+
stripe (3.22.0)
|
|
95
|
+
faraday (~> 0.10)
|
|
96
|
+
stripe-ruby-mock (2.5.4)
|
|
97
|
+
dante (>= 0.2.0)
|
|
98
|
+
multi_json (~> 1.0)
|
|
99
|
+
stripe (>= 2.0.3)
|
|
100
|
+
thor (0.20.0)
|
|
101
|
+
thread_safe (0.3.6)
|
|
102
|
+
tzinfo (1.2.5)
|
|
103
|
+
thread_safe (~> 0.1)
|
|
104
|
+
|
|
105
|
+
PLATFORMS
|
|
106
|
+
ruby
|
|
107
|
+
|
|
108
|
+
DEPENDENCIES
|
|
109
|
+
bundler (~> 1.16)
|
|
110
|
+
cash_out!
|
|
111
|
+
pry-byebug
|
|
112
|
+
rake (~> 10.0)
|
|
113
|
+
rspec (~> 3.0)
|
|
114
|
+
rspec-activemodel-mocks
|
|
115
|
+
stripe-ruby-mock (~> 2.5.4)
|
|
116
|
+
|
|
117
|
+
BUNDLED WITH
|
|
118
|
+
1.16.1
|
data/LICENSE.txt
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
The MIT License (MIT)
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2018 Tyler Rockwell
|
|
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,50 @@
|
|
|
1
|
+
# Cash Out
|
|
2
|
+
|
|
3
|
+
A gem developed with the express purpose of reducing development time when integrating
|
|
4
|
+
with Stripe payments.
|
|
5
|
+
|
|
6
|
+
This gem is targeted at API development and assumes your frontend is able to generate
|
|
7
|
+
and send tokenized payment data to your endpoints.
|
|
8
|
+
|
|
9
|
+
## Installation
|
|
10
|
+
|
|
11
|
+
1. Add `gem cash_out` to your Gemfile
|
|
12
|
+
1. `bundle install`
|
|
13
|
+
1. `rails generate cash_out:install`
|
|
14
|
+
1. Update the items in `config/initializers/cash_out.rb` with your Stripe api keys
|
|
15
|
+
1. Create a migration to add a `stripe_id` field to `User` or whichever model will hold the Stripe token
|
|
16
|
+
|
|
17
|
+
## Usage
|
|
18
|
+
|
|
19
|
+
All `CashOut` services utilize [ActiveInteraction](https://github.com/AaronLasseigne/active_interaction)
|
|
20
|
+
and will return an appropriate service object.
|
|
21
|
+
|
|
22
|
+
### Creating a Stripe Customer
|
|
23
|
+
|
|
24
|
+
Stripe Customer objects are used for making credit card purchases. You can create a
|
|
25
|
+
Stripe Customer and store the token on your User with the following code.
|
|
26
|
+
|
|
27
|
+
Inside your controller, add:
|
|
28
|
+
```ruby
|
|
29
|
+
def create
|
|
30
|
+
CashOut::Payments::Customer::Create.run(customer_params)
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
def customer_params
|
|
34
|
+
{ user: current_user, stripe_token: params[:token] }
|
|
35
|
+
end
|
|
36
|
+
```
|
|
37
|
+
|
|
38
|
+
### Deleting a Stripe Customer
|
|
39
|
+
|
|
40
|
+
To remove payment information from your user, run the appropriate delete service
|
|
41
|
+
|
|
42
|
+
Inside your controller, add:
|
|
43
|
+
```ruby
|
|
44
|
+
def destroy
|
|
45
|
+
CashOut::Payments::Customer::Delete.run(user: current_user)
|
|
46
|
+
end
|
|
47
|
+
```
|
|
48
|
+
|
|
49
|
+
Note: This currently does not delete the payment information from Stripe. Support
|
|
50
|
+
for this will be added in a future release.
|
data/Rakefile
ADDED
data/bin/console
ADDED
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
|
|
3
|
+
require "bundler/setup"
|
|
4
|
+
require "cash_out"
|
|
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(__FILE__)
|
data/bin/setup
ADDED
data/cash_out.gemspec
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
lib = File.expand_path("../lib", __FILE__)
|
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
3
|
+
require "cash_out/version"
|
|
4
|
+
|
|
5
|
+
Gem::Specification.new do |s|
|
|
6
|
+
s.name = 'cash_out'
|
|
7
|
+
s.version = CashOut::VERSION
|
|
8
|
+
s.date = '2018-08-13'
|
|
9
|
+
s.summary = 'A gem to ease setup of Stripe Marketplace Payments'
|
|
10
|
+
s.description = 'A gem to ease setup of Stripe Marketplace Payments'
|
|
11
|
+
s.authors = ['Tyler Rockwell']
|
|
12
|
+
s.files = %w(README.md) + Dir.glob(File.join('lib', '**', '*.rb'))
|
|
13
|
+
s.homepage = 'http://rubygems.org/gems/cash_out'
|
|
14
|
+
s.license = 'MIT'
|
|
15
|
+
|
|
16
|
+
s.add_dependency 'active_interaction', '~> 3.6'
|
|
17
|
+
s.add_dependency 'stripe', '~> 3.21'
|
|
18
|
+
s.add_dependency 'railties', '< 6.0'
|
|
19
|
+
|
|
20
|
+
|
|
21
|
+
s.files = `git ls-files -z`.split("\x0").reject do |f|
|
|
22
|
+
f.match(%r{^(test|spec|features)/})
|
|
23
|
+
end
|
|
24
|
+
s.bindir = "exe"
|
|
25
|
+
s.executables = s.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
26
|
+
s.require_paths = ["lib"]
|
|
27
|
+
|
|
28
|
+
s.add_development_dependency "bundler", "~> 1.16"
|
|
29
|
+
s.add_development_dependency "pry-byebug"
|
|
30
|
+
s.add_development_dependency "rake", "~> 10.0"
|
|
31
|
+
s.add_development_dependency "rspec", "~> 3.0"
|
|
32
|
+
s.add_development_dependency "rspec-activemodel-mocks"
|
|
33
|
+
s.add_development_dependency 'stripe-ruby-mock', '~> 2.5.4'
|
|
34
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module CashOut
|
|
2
|
+
module Payments
|
|
3
|
+
module Customer
|
|
4
|
+
class Create < ::CashOut::ServiceBase
|
|
5
|
+
interface :user, methods: [:stripe_id]
|
|
6
|
+
string :stripe_token, default: nil
|
|
7
|
+
|
|
8
|
+
validate :customer_is_nil
|
|
9
|
+
|
|
10
|
+
def execute
|
|
11
|
+
customer = create_stripe_customer
|
|
12
|
+
user.stripe_id = customer["id"] if customer.is_a?(Stripe::Customer)
|
|
13
|
+
validate_and_save(user)
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
private
|
|
17
|
+
|
|
18
|
+
def create_stripe_customer
|
|
19
|
+
Stripe::Customer.create(source: stripe_token)
|
|
20
|
+
|
|
21
|
+
rescue *STRIPE_ERRORS => e
|
|
22
|
+
if e.class == Stripe::CardError
|
|
23
|
+
errors.add(:stripe, I18n.t('cash_out.customer.invalid_card'))
|
|
24
|
+
else
|
|
25
|
+
errors.add(:stripe, e.to_s)
|
|
26
|
+
end
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def customer_is_nil
|
|
30
|
+
unless user.stripe_id.blank?
|
|
31
|
+
errors.add(:stripe, I18n.t('cash_out.customer.account_already_exists'))
|
|
32
|
+
end
|
|
33
|
+
end
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
end
|
|
37
|
+
end
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
module CashOut
|
|
2
|
+
module Payments
|
|
3
|
+
module Customer
|
|
4
|
+
class Delete < ::CashOut::ServiceBase
|
|
5
|
+
object :user
|
|
6
|
+
|
|
7
|
+
def execute
|
|
8
|
+
delete_customer
|
|
9
|
+
user.stripe_id = nil
|
|
10
|
+
validate_and_save(user)
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
private
|
|
14
|
+
|
|
15
|
+
def delete_customer
|
|
16
|
+
Stripe::Customer.retrieve(user.stripe_id).delete
|
|
17
|
+
rescue *STRIPE_ERRORS => e
|
|
18
|
+
errors.add(:stripe, e.to_s)
|
|
19
|
+
end
|
|
20
|
+
end
|
|
21
|
+
end
|
|
22
|
+
end
|
|
23
|
+
end
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
class CashOut::ServiceBase < ActiveInteraction::Base
|
|
2
|
+
STRIPE_ERRORS = [
|
|
3
|
+
Stripe::InvalidRequestError,
|
|
4
|
+
Stripe::AuthenticationError,
|
|
5
|
+
Stripe::APIConnectionError,
|
|
6
|
+
Stripe::StripeError
|
|
7
|
+
].freeze
|
|
8
|
+
|
|
9
|
+
def validate_and_save(model_object)
|
|
10
|
+
unless model_object.save
|
|
11
|
+
errors.merge!(model_object.errors)
|
|
12
|
+
end
|
|
13
|
+
model_object
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
def success_message
|
|
17
|
+
I18n.t('cash_out.service.success')
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def failure_message
|
|
21
|
+
I18n.t('cash_out.service.failure')
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def failure_status
|
|
25
|
+
422
|
|
26
|
+
end
|
|
27
|
+
end
|
data/lib/cash_out.rb
ADDED
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
# frozen_string_literal: true
|
|
2
|
+
require 'cash_out/configuration'
|
|
3
|
+
|
|
4
|
+
require 'active_interaction'
|
|
5
|
+
require 'stripe'
|
|
6
|
+
require 'cash_out/base'
|
|
7
|
+
require 'cash_out/service_base'
|
|
8
|
+
require 'cash_out/payments/customer/create'
|
|
9
|
+
require 'cash_out/payments/customer/delete'
|
|
10
|
+
|
|
11
|
+
module CashOut
|
|
12
|
+
extend self
|
|
13
|
+
|
|
14
|
+
attr_accessor :configuration
|
|
15
|
+
|
|
16
|
+
def configuration
|
|
17
|
+
@configuration ||= Configuration.new
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
def reset
|
|
21
|
+
@configuration = Configuration.new
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def configure
|
|
25
|
+
yield(configuration)
|
|
26
|
+
Stripe.api_key = configuration.stripe_secret_key
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
def root
|
|
30
|
+
File.dirname __dir__
|
|
31
|
+
end
|
|
32
|
+
end
|
|
33
|
+
|
|
34
|
+
translation_path = [File.join(CashOut.root, 'config', 'locales', 'en.yml')]
|
|
35
|
+
I18n.load_path += translation_path
|
|
36
|
+
|
|
37
|
+
require 'generators/cash_out/templates/cash_out_config'
|
|
38
|
+
require 'generators/cash_out/install_generator'
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
require 'rails/generators'
|
|
2
|
+
|
|
3
|
+
module CashOut
|
|
4
|
+
class InstallGenerator < Rails::Generators::Base
|
|
5
|
+
source_root File.expand_path("templates", __dir__)
|
|
6
|
+
desc "Generates configuration file for CashOut"
|
|
7
|
+
|
|
8
|
+
def create_initializer_file
|
|
9
|
+
template "cash_out_config.rb", "config/initializers/cash_out.rb"
|
|
10
|
+
end
|
|
11
|
+
end
|
|
12
|
+
end
|
metadata
ADDED
|
@@ -0,0 +1,189 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: cash_out
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.0.2
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Tyler Rockwell
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: exe
|
|
10
|
+
cert_chain: []
|
|
11
|
+
date: 2018-08-13 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: active_interaction
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: '3.6'
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: '3.6'
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: stripe
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: '3.21'
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: '3.21'
|
|
41
|
+
- !ruby/object:Gem::Dependency
|
|
42
|
+
name: railties
|
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - "<"
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: '6.0'
|
|
48
|
+
type: :runtime
|
|
49
|
+
prerelease: false
|
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
51
|
+
requirements:
|
|
52
|
+
- - "<"
|
|
53
|
+
- !ruby/object:Gem::Version
|
|
54
|
+
version: '6.0'
|
|
55
|
+
- !ruby/object:Gem::Dependency
|
|
56
|
+
name: bundler
|
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
|
58
|
+
requirements:
|
|
59
|
+
- - "~>"
|
|
60
|
+
- !ruby/object:Gem::Version
|
|
61
|
+
version: '1.16'
|
|
62
|
+
type: :development
|
|
63
|
+
prerelease: false
|
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
65
|
+
requirements:
|
|
66
|
+
- - "~>"
|
|
67
|
+
- !ruby/object:Gem::Version
|
|
68
|
+
version: '1.16'
|
|
69
|
+
- !ruby/object:Gem::Dependency
|
|
70
|
+
name: pry-byebug
|
|
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: rake
|
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
|
86
|
+
requirements:
|
|
87
|
+
- - "~>"
|
|
88
|
+
- !ruby/object:Gem::Version
|
|
89
|
+
version: '10.0'
|
|
90
|
+
type: :development
|
|
91
|
+
prerelease: false
|
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
93
|
+
requirements:
|
|
94
|
+
- - "~>"
|
|
95
|
+
- !ruby/object:Gem::Version
|
|
96
|
+
version: '10.0'
|
|
97
|
+
- !ruby/object:Gem::Dependency
|
|
98
|
+
name: rspec
|
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
|
100
|
+
requirements:
|
|
101
|
+
- - "~>"
|
|
102
|
+
- !ruby/object:Gem::Version
|
|
103
|
+
version: '3.0'
|
|
104
|
+
type: :development
|
|
105
|
+
prerelease: false
|
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
107
|
+
requirements:
|
|
108
|
+
- - "~>"
|
|
109
|
+
- !ruby/object:Gem::Version
|
|
110
|
+
version: '3.0'
|
|
111
|
+
- !ruby/object:Gem::Dependency
|
|
112
|
+
name: rspec-activemodel-mocks
|
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
|
114
|
+
requirements:
|
|
115
|
+
- - ">="
|
|
116
|
+
- !ruby/object:Gem::Version
|
|
117
|
+
version: '0'
|
|
118
|
+
type: :development
|
|
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: stripe-ruby-mock
|
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
|
128
|
+
requirements:
|
|
129
|
+
- - "~>"
|
|
130
|
+
- !ruby/object:Gem::Version
|
|
131
|
+
version: 2.5.4
|
|
132
|
+
type: :development
|
|
133
|
+
prerelease: false
|
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
135
|
+
requirements:
|
|
136
|
+
- - "~>"
|
|
137
|
+
- !ruby/object:Gem::Version
|
|
138
|
+
version: 2.5.4
|
|
139
|
+
description: A gem to ease setup of Stripe Marketplace Payments
|
|
140
|
+
email:
|
|
141
|
+
executables: []
|
|
142
|
+
extensions: []
|
|
143
|
+
extra_rdoc_files: []
|
|
144
|
+
files:
|
|
145
|
+
- ".gitignore"
|
|
146
|
+
- ".rspec"
|
|
147
|
+
- Gemfile
|
|
148
|
+
- Gemfile.lock
|
|
149
|
+
- LICENSE.txt
|
|
150
|
+
- README.md
|
|
151
|
+
- Rakefile
|
|
152
|
+
- bin/console
|
|
153
|
+
- bin/setup
|
|
154
|
+
- cash_out.gemspec
|
|
155
|
+
- config/locales/en.yml
|
|
156
|
+
- lib/cash_out.rb
|
|
157
|
+
- lib/cash_out/base.rb
|
|
158
|
+
- lib/cash_out/configuration.rb
|
|
159
|
+
- lib/cash_out/payments/customer/create.rb
|
|
160
|
+
- lib/cash_out/payments/customer/delete.rb
|
|
161
|
+
- lib/cash_out/service_base.rb
|
|
162
|
+
- lib/cash_out/version.rb
|
|
163
|
+
- lib/generators/cash_out/install_generator.rb
|
|
164
|
+
- lib/generators/cash_out/templates/cash_out_config.rb
|
|
165
|
+
homepage: http://rubygems.org/gems/cash_out
|
|
166
|
+
licenses:
|
|
167
|
+
- MIT
|
|
168
|
+
metadata: {}
|
|
169
|
+
post_install_message:
|
|
170
|
+
rdoc_options: []
|
|
171
|
+
require_paths:
|
|
172
|
+
- lib
|
|
173
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
174
|
+
requirements:
|
|
175
|
+
- - ">="
|
|
176
|
+
- !ruby/object:Gem::Version
|
|
177
|
+
version: '0'
|
|
178
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
179
|
+
requirements:
|
|
180
|
+
- - ">="
|
|
181
|
+
- !ruby/object:Gem::Version
|
|
182
|
+
version: '0'
|
|
183
|
+
requirements: []
|
|
184
|
+
rubyforge_project:
|
|
185
|
+
rubygems_version: 2.6.14.1
|
|
186
|
+
signing_key:
|
|
187
|
+
specification_version: 4
|
|
188
|
+
summary: A gem to ease setup of Stripe Marketplace Payments
|
|
189
|
+
test_files: []
|