payola-payments 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/Rakefile +7 -11
- data/app/assets/javascripts/payola.js +1 -0
- data/app/assets/javascripts/payola/checkout_button.js +62 -0
- data/app/controllers/payola/application_controller.rb +2 -0
- data/app/controllers/payola/transactions_controller.rb +48 -58
- data/app/helpers/payola/price_helper.rb +7 -0
- data/{lib → app/models/concerns}/payola/sellable.rb +11 -1
- data/app/models/payola/affiliate.rb +5 -0
- data/app/models/payola/coupon.rb +5 -0
- data/app/models/payola/sale.rb +15 -4
- data/app/models/payola/stripe_webhook.rb +5 -0
- data/app/services/payola/charge_card.rb +6 -5
- data/app/services/payola/create_sale.rb +9 -5
- data/app/views/payola/transactions/_checkout.html.erb +48 -0
- data/app/views/payola/transactions/_form.html.erb +141 -0
- data/app/views/payola/transactions/iframe.html.erb +2 -0
- data/app/views/payola/transactions/new.html.erb +1 -0
- data/app/views/payola/transactions/show.html.erb +5 -0
- data/app/views/payola/transactions/wait.html.erb +25 -0
- data/config/routes.rb +0 -3
- data/db/migrate/20141001170138_create_payola_sales.rb +4 -4
- data/db/migrate/20141001203541_create_payola_stripe_webhooks.rb +9 -0
- data/db/migrate/20141002013618_create_payola_coupons.rb +10 -0
- data/db/migrate/20141002013701_create_payola_affiliates.rb +11 -0
- data/db/migrate/20141002203725_add_stripe_customer_id_to_sale.rb +6 -0
- data/lib/payola.rb +30 -5
- data/lib/payola/engine.rb +8 -0
- data/lib/payola/version.rb +1 -1
- data/lib/payola/worker.rb +22 -4
- data/spec/concerns/sellable_spec.rb +32 -0
- data/spec/controllers/payola/transactions_controller_spec.rb +7 -0
- data/{test → spec}/dummy/README.rdoc +0 -0
- data/{test → spec}/dummy/Rakefile +0 -0
- data/{test → spec}/dummy/app/assets/javascripts/application.js +1 -0
- data/spec/dummy/app/assets/javascripts/buy.js +2 -0
- data/{test → spec}/dummy/app/assets/stylesheets/application.css +0 -0
- data/spec/dummy/app/assets/stylesheets/buy.css +4 -0
- data/{test → spec}/dummy/app/controllers/application_controller.rb +0 -0
- data/spec/dummy/app/controllers/buy_controller.rb +7 -0
- data/{test → spec}/dummy/app/helpers/application_helper.rb +0 -0
- data/spec/dummy/app/helpers/buy_helper.rb +2 -0
- data/spec/dummy/app/models/product.rb +7 -0
- data/spec/dummy/app/views/buy/index.html.erb +1 -0
- data/{test → spec}/dummy/app/views/layouts/application.html.erb +2 -1
- data/{test → spec}/dummy/bin/bundle +0 -0
- data/{test → spec}/dummy/bin/rails +0 -0
- data/{test → spec}/dummy/bin/rake +0 -0
- data/{test → spec}/dummy/config.ru +0 -0
- data/{test → spec}/dummy/config/application.rb +0 -0
- data/{test → spec}/dummy/config/boot.rb +0 -0
- data/{test → spec}/dummy/config/database.yml +0 -0
- data/{test → spec}/dummy/config/environment.rb +0 -0
- data/{test → spec}/dummy/config/environments/development.rb +0 -0
- data/{test → spec}/dummy/config/environments/production.rb +0 -0
- data/{test → spec}/dummy/config/environments/test.rb +0 -0
- data/{test → spec}/dummy/config/initializers/assets.rb +0 -0
- data/{test → spec}/dummy/config/initializers/backtrace_silencers.rb +0 -0
- data/{test → spec}/dummy/config/initializers/cookies_serializer.rb +0 -0
- data/{test → spec}/dummy/config/initializers/filter_parameter_logging.rb +0 -0
- data/{test → spec}/dummy/config/initializers/inflections.rb +0 -0
- data/{test → spec}/dummy/config/initializers/mime_types.rb +0 -0
- data/spec/dummy/config/initializers/payola.rb +5 -0
- data/{test → spec}/dummy/config/initializers/session_store.rb +0 -0
- data/{test → spec}/dummy/config/initializers/wrap_parameters.rb +0 -0
- data/{test → spec}/dummy/config/locales/en.yml +0 -0
- data/{test → spec}/dummy/config/routes.rb +1 -1
- data/{test → spec}/dummy/config/secrets.yml +0 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20141001230848_create_products.rb +11 -0
- data/spec/dummy/db/schema.rb +76 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/log/development.log +7452 -0
- data/spec/dummy/log/test.log +9849 -0
- data/{test → spec}/dummy/public/404.html +0 -0
- data/{test → spec}/dummy/public/422.html +0 -0
- data/{test → spec}/dummy/public/500.html +0 -0
- data/{test → spec}/dummy/public/favicon.ico +0 -0
- data/spec/dummy/spec/controllers/buy_controller_spec.rb +5 -0
- data/spec/dummy/spec/factories/products.rb +9 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0e585aeb88c1555ae8f5292f7c7a9068 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/0f0c99469c51f1b2d76b08f481781d09 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1b54952339cbc96811097cee5f8923b4 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/1cbc4f4790f2067a2c161c1eb480f276 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/5afa4bc970e0bc781b3500c696ba25ff +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/664efeb51d1b486dcfc30d142db56f3c +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/68a3bbdc64a0729b5896fa1e33fce4b1 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/aea159adbc0944b120d91d5b578612ba +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/b83da90cb58011313e13a97a4a41cb6e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c0b954b40f2881a6d286061bc069643e +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/c5b3877d49b39932a7557611cefca9a6 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ca491e325ff6948be9292f701aa4ce64 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/d9856638a3c7b9cfd9d1b884e3b33982 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ddba6e841f28d3005e828fbfffd18b74 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/df935e399019055729aa968bd7062096 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/ef82c31948061751bb026663b54484e1 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f0b5d4bea0c6cdd1904e1e9a0a45532f +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
- data/spec/dummy/tmp/cache/assets/development/sprockets/f8018075b7aca72974f4014bbbc75ab5 +0 -0
- data/spec/factories/payola_affiliates.rb +9 -0
- data/spec/factories/payola_coupons.rb +8 -0
- data/spec/factories/product.rb +7 -0
- data/spec/factories/sales.rb +7 -0
- data/spec/models/payola/sale_spec.rb +71 -0
- data/spec/models/payola/stripe_webhook_spec.rb +17 -0
- data/spec/payola_spec.rb +93 -0
- data/spec/services/payola/charge_card_spec.rb +37 -0
- data/spec/services/payola/create_sale_spec.rb +64 -0
- data/spec/spec_helper.rb +73 -0
- data/spec/worker_spec.rb +36 -0
- metadata +275 -81
- data/test/fixtures/payola/sales.yml +0 -11
- data/test/integration/navigation_test.rb +0 -10
- data/test/models/payola/sale_test.rb +0 -9
- data/test/payola_test.rb +0 -7
- data/test/test_helper.rb +0 -15
data/spec/worker_spec.rb
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
require 'spec_helper'
|
2
|
+
|
3
|
+
module Payola
|
4
|
+
describe Worker::Sidekiq do
|
5
|
+
before do
|
6
|
+
module ::Sidekiq
|
7
|
+
module Worker
|
8
|
+
def perform_async
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
13
|
+
|
14
|
+
describe "#can_run?" do
|
15
|
+
it "should return true if ::Sidekiq::Worker is defined" do
|
16
|
+
expect(Payola::Worker::Sidekiq.can_run?).to be_truthy
|
17
|
+
end
|
18
|
+
end
|
19
|
+
|
20
|
+
describe "#call" do
|
21
|
+
it "should include ::Sidekiq::Worker" do
|
22
|
+
Payola::Worker::Sidekiq.should_receive(:include).with(::Sidekiq::Worker)
|
23
|
+
Payola::Worker::Sidekiq.should_receive(:perform_async)
|
24
|
+
sale = double()
|
25
|
+
sale.should_receive(:guid).and_return('blah')
|
26
|
+
Payola::Worker::Sidekiq.call(sale)
|
27
|
+
end
|
28
|
+
it "should call perform_async" do
|
29
|
+
Payola::Worker::Sidekiq.should_receive(:perform_async)
|
30
|
+
sale = double()
|
31
|
+
sale.should_receive(:guid).and_return('blah')
|
32
|
+
Payola::Worker::Sidekiq.call(sale)
|
33
|
+
end
|
34
|
+
end
|
35
|
+
end
|
36
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: payola-payments
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pete Keen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-10-
|
11
|
+
date: 2014-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|
@@ -24,6 +24,20 @@ dependencies:
|
|
24
24
|
- - ~>
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 4.1.4
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: jquery-rails
|
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'
|
27
41
|
- !ruby/object:Gem::Dependency
|
28
42
|
name: stripe
|
29
43
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +58,28 @@ dependencies:
|
|
44
58
|
requirements:
|
45
59
|
- - ~>
|
46
60
|
- !ruby/object:Gem::Version
|
47
|
-
version: 3.
|
61
|
+
version: 3.4.0
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - ~>
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 3.4.0
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: stripe_event
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ~>
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 1.3.0
|
48
76
|
type: :runtime
|
49
77
|
prerelease: false
|
50
78
|
version_requirements: !ruby/object:Gem::Requirement
|
51
79
|
requirements:
|
52
80
|
- - ~>
|
53
81
|
- !ruby/object:Gem::Version
|
54
|
-
version: 3.
|
82
|
+
version: 1.3.0
|
55
83
|
- !ruby/object:Gem::Dependency
|
56
84
|
name: sqlite3
|
57
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -66,6 +94,62 @@ dependencies:
|
|
66
94
|
- - ! '>='
|
67
95
|
- !ruby/object:Gem::Version
|
68
96
|
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: rspec-rails
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ! '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
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: factory_girl_rails
|
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: 1.10.1.7
|
132
|
+
type: :development
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ~>
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: 1.10.1.7
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: sucker_punch
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - ~>
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 1.2.1
|
146
|
+
type: :development
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - ~>
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 1.2.1
|
69
153
|
description: One-off and subscription payments for your Rails application
|
70
154
|
email:
|
71
155
|
- pete@payola.io
|
@@ -74,61 +158,124 @@ extensions: []
|
|
74
158
|
extra_rdoc_files: []
|
75
159
|
files:
|
76
160
|
- Rakefile
|
161
|
+
- app/assets/javascripts/payola.js
|
77
162
|
- app/assets/javascripts/payola/application.js
|
163
|
+
- app/assets/javascripts/payola/checkout_button.js
|
78
164
|
- app/assets/stylesheets/payola/application.css
|
79
165
|
- app/controllers/payola/application_controller.rb
|
80
166
|
- app/controllers/payola/transactions_controller.rb
|
81
167
|
- app/helpers/payola/application_helper.rb
|
168
|
+
- app/helpers/payola/price_helper.rb
|
169
|
+
- app/models/concerns/payola/sellable.rb
|
170
|
+
- app/models/payola/affiliate.rb
|
171
|
+
- app/models/payola/coupon.rb
|
82
172
|
- app/models/payola/sale.rb
|
173
|
+
- app/models/payola/stripe_webhook.rb
|
83
174
|
- app/services/payola/charge_card.rb
|
84
175
|
- app/services/payola/create_sale.rb
|
85
176
|
- app/views/layouts/payola/application.html.erb
|
177
|
+
- app/views/payola/transactions/_checkout.html.erb
|
178
|
+
- app/views/payola/transactions/_form.html.erb
|
179
|
+
- app/views/payola/transactions/iframe.html.erb
|
180
|
+
- app/views/payola/transactions/new.html.erb
|
181
|
+
- app/views/payola/transactions/show.html.erb
|
182
|
+
- app/views/payola/transactions/wait.html.erb
|
86
183
|
- config/routes.rb
|
87
184
|
- db/migrate/20141001170138_create_payola_sales.rb
|
185
|
+
- db/migrate/20141001203541_create_payola_stripe_webhooks.rb
|
186
|
+
- db/migrate/20141002013618_create_payola_coupons.rb
|
187
|
+
- db/migrate/20141002013701_create_payola_affiliates.rb
|
188
|
+
- db/migrate/20141002203725_add_stripe_customer_id_to_sale.rb
|
88
189
|
- lib/payola.rb
|
89
190
|
- lib/payola/engine.rb
|
90
|
-
- lib/payola/sellable.rb
|
91
191
|
- lib/payola/version.rb
|
92
192
|
- lib/payola/worker.rb
|
93
193
|
- lib/tasks/payola_tasks.rake
|
94
|
-
-
|
95
|
-
-
|
96
|
-
-
|
97
|
-
-
|
98
|
-
-
|
99
|
-
-
|
100
|
-
-
|
101
|
-
-
|
102
|
-
-
|
103
|
-
-
|
104
|
-
-
|
105
|
-
-
|
106
|
-
-
|
107
|
-
-
|
108
|
-
-
|
109
|
-
-
|
110
|
-
-
|
111
|
-
-
|
112
|
-
-
|
113
|
-
-
|
114
|
-
-
|
115
|
-
-
|
116
|
-
-
|
117
|
-
-
|
118
|
-
-
|
119
|
-
-
|
120
|
-
-
|
121
|
-
-
|
122
|
-
-
|
123
|
-
-
|
124
|
-
-
|
125
|
-
-
|
126
|
-
-
|
127
|
-
-
|
128
|
-
-
|
129
|
-
-
|
130
|
-
-
|
131
|
-
-
|
194
|
+
- spec/concerns/sellable_spec.rb
|
195
|
+
- spec/controllers/payola/transactions_controller_spec.rb
|
196
|
+
- spec/dummy/README.rdoc
|
197
|
+
- spec/dummy/Rakefile
|
198
|
+
- spec/dummy/app/assets/javascripts/application.js
|
199
|
+
- spec/dummy/app/assets/javascripts/buy.js
|
200
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
201
|
+
- spec/dummy/app/assets/stylesheets/buy.css
|
202
|
+
- spec/dummy/app/controllers/application_controller.rb
|
203
|
+
- spec/dummy/app/controllers/buy_controller.rb
|
204
|
+
- spec/dummy/app/helpers/application_helper.rb
|
205
|
+
- spec/dummy/app/helpers/buy_helper.rb
|
206
|
+
- spec/dummy/app/models/product.rb
|
207
|
+
- spec/dummy/app/views/buy/index.html.erb
|
208
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
209
|
+
- spec/dummy/bin/bundle
|
210
|
+
- spec/dummy/bin/rails
|
211
|
+
- spec/dummy/bin/rake
|
212
|
+
- spec/dummy/config.ru
|
213
|
+
- spec/dummy/config/application.rb
|
214
|
+
- spec/dummy/config/boot.rb
|
215
|
+
- spec/dummy/config/database.yml
|
216
|
+
- spec/dummy/config/environment.rb
|
217
|
+
- spec/dummy/config/environments/development.rb
|
218
|
+
- spec/dummy/config/environments/production.rb
|
219
|
+
- spec/dummy/config/environments/test.rb
|
220
|
+
- spec/dummy/config/initializers/assets.rb
|
221
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
222
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
223
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
224
|
+
- spec/dummy/config/initializers/inflections.rb
|
225
|
+
- spec/dummy/config/initializers/mime_types.rb
|
226
|
+
- spec/dummy/config/initializers/payola.rb
|
227
|
+
- spec/dummy/config/initializers/session_store.rb
|
228
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
229
|
+
- spec/dummy/config/locales/en.yml
|
230
|
+
- spec/dummy/config/routes.rb
|
231
|
+
- spec/dummy/config/secrets.yml
|
232
|
+
- spec/dummy/db/development.sqlite3
|
233
|
+
- spec/dummy/db/migrate/20141001230848_create_products.rb
|
234
|
+
- spec/dummy/db/schema.rb
|
235
|
+
- spec/dummy/db/test.sqlite3
|
236
|
+
- spec/dummy/log/development.log
|
237
|
+
- spec/dummy/log/test.log
|
238
|
+
- spec/dummy/public/404.html
|
239
|
+
- spec/dummy/public/422.html
|
240
|
+
- spec/dummy/public/500.html
|
241
|
+
- spec/dummy/public/favicon.ico
|
242
|
+
- spec/dummy/spec/controllers/buy_controller_spec.rb
|
243
|
+
- spec/dummy/spec/factories/products.rb
|
244
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/0e585aeb88c1555ae8f5292f7c7a9068
|
245
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/0f0c99469c51f1b2d76b08f481781d09
|
246
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
247
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/1b54952339cbc96811097cee5f8923b4
|
248
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/1cbc4f4790f2067a2c161c1eb480f276
|
249
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
250
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
251
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/5afa4bc970e0bc781b3500c696ba25ff
|
252
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/664efeb51d1b486dcfc30d142db56f3c
|
253
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/68a3bbdc64a0729b5896fa1e33fce4b1
|
254
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/aea159adbc0944b120d91d5b578612ba
|
255
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/b83da90cb58011313e13a97a4a41cb6e
|
256
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/c0b954b40f2881a6d286061bc069643e
|
257
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/c5b3877d49b39932a7557611cefca9a6
|
258
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/ca491e325ff6948be9292f701aa4ce64
|
259
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
260
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
261
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/d9856638a3c7b9cfd9d1b884e3b33982
|
262
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/ddba6e841f28d3005e828fbfffd18b74
|
263
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/df935e399019055729aa968bd7062096
|
264
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/ef82c31948061751bb026663b54484e1
|
265
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/f0b5d4bea0c6cdd1904e1e9a0a45532f
|
266
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
267
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/f8018075b7aca72974f4014bbbc75ab5
|
268
|
+
- spec/factories/payola_affiliates.rb
|
269
|
+
- spec/factories/payola_coupons.rb
|
270
|
+
- spec/factories/product.rb
|
271
|
+
- spec/factories/sales.rb
|
272
|
+
- spec/models/payola/sale_spec.rb
|
273
|
+
- spec/models/payola/stripe_webhook_spec.rb
|
274
|
+
- spec/payola_spec.rb
|
275
|
+
- spec/services/payola/charge_card_spec.rb
|
276
|
+
- spec/services/payola/create_sale_spec.rb
|
277
|
+
- spec/spec_helper.rb
|
278
|
+
- spec/worker_spec.rb
|
132
279
|
homepage: https://www.payola.io
|
133
280
|
licenses:
|
134
281
|
- LGPL-3.0
|
@@ -154,41 +301,88 @@ signing_key:
|
|
154
301
|
specification_version: 4
|
155
302
|
summary: Drop-in Rails engine for accepting payments with Stripe
|
156
303
|
test_files:
|
157
|
-
-
|
158
|
-
-
|
159
|
-
-
|
160
|
-
-
|
161
|
-
-
|
162
|
-
-
|
163
|
-
-
|
164
|
-
-
|
165
|
-
-
|
166
|
-
-
|
167
|
-
-
|
168
|
-
-
|
169
|
-
-
|
170
|
-
-
|
171
|
-
-
|
172
|
-
-
|
173
|
-
-
|
174
|
-
-
|
175
|
-
-
|
176
|
-
-
|
177
|
-
-
|
178
|
-
-
|
179
|
-
-
|
180
|
-
-
|
181
|
-
-
|
182
|
-
-
|
183
|
-
-
|
184
|
-
-
|
185
|
-
-
|
186
|
-
-
|
187
|
-
-
|
188
|
-
-
|
189
|
-
-
|
190
|
-
-
|
191
|
-
-
|
192
|
-
-
|
193
|
-
-
|
194
|
-
-
|
304
|
+
- spec/concerns/sellable_spec.rb
|
305
|
+
- spec/controllers/payola/transactions_controller_spec.rb
|
306
|
+
- spec/dummy/app/assets/javascripts/application.js
|
307
|
+
- spec/dummy/app/assets/javascripts/buy.js
|
308
|
+
- spec/dummy/app/assets/stylesheets/application.css
|
309
|
+
- spec/dummy/app/assets/stylesheets/buy.css
|
310
|
+
- spec/dummy/app/controllers/application_controller.rb
|
311
|
+
- spec/dummy/app/controllers/buy_controller.rb
|
312
|
+
- spec/dummy/app/helpers/application_helper.rb
|
313
|
+
- spec/dummy/app/helpers/buy_helper.rb
|
314
|
+
- spec/dummy/app/models/product.rb
|
315
|
+
- spec/dummy/app/views/buy/index.html.erb
|
316
|
+
- spec/dummy/app/views/layouts/application.html.erb
|
317
|
+
- spec/dummy/bin/bundle
|
318
|
+
- spec/dummy/bin/rails
|
319
|
+
- spec/dummy/bin/rake
|
320
|
+
- spec/dummy/config/application.rb
|
321
|
+
- spec/dummy/config/boot.rb
|
322
|
+
- spec/dummy/config/database.yml
|
323
|
+
- spec/dummy/config/environment.rb
|
324
|
+
- spec/dummy/config/environments/development.rb
|
325
|
+
- spec/dummy/config/environments/production.rb
|
326
|
+
- spec/dummy/config/environments/test.rb
|
327
|
+
- spec/dummy/config/initializers/assets.rb
|
328
|
+
- spec/dummy/config/initializers/backtrace_silencers.rb
|
329
|
+
- spec/dummy/config/initializers/cookies_serializer.rb
|
330
|
+
- spec/dummy/config/initializers/filter_parameter_logging.rb
|
331
|
+
- spec/dummy/config/initializers/inflections.rb
|
332
|
+
- spec/dummy/config/initializers/mime_types.rb
|
333
|
+
- spec/dummy/config/initializers/payola.rb
|
334
|
+
- spec/dummy/config/initializers/session_store.rb
|
335
|
+
- spec/dummy/config/initializers/wrap_parameters.rb
|
336
|
+
- spec/dummy/config/locales/en.yml
|
337
|
+
- spec/dummy/config/routes.rb
|
338
|
+
- spec/dummy/config/secrets.yml
|
339
|
+
- spec/dummy/config.ru
|
340
|
+
- spec/dummy/db/development.sqlite3
|
341
|
+
- spec/dummy/db/migrate/20141001230848_create_products.rb
|
342
|
+
- spec/dummy/db/schema.rb
|
343
|
+
- spec/dummy/db/test.sqlite3
|
344
|
+
- spec/dummy/log/development.log
|
345
|
+
- spec/dummy/log/test.log
|
346
|
+
- spec/dummy/public/404.html
|
347
|
+
- spec/dummy/public/422.html
|
348
|
+
- spec/dummy/public/500.html
|
349
|
+
- spec/dummy/public/favicon.ico
|
350
|
+
- spec/dummy/Rakefile
|
351
|
+
- spec/dummy/README.rdoc
|
352
|
+
- spec/dummy/spec/controllers/buy_controller_spec.rb
|
353
|
+
- spec/dummy/spec/factories/products.rb
|
354
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/0e585aeb88c1555ae8f5292f7c7a9068
|
355
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/0f0c99469c51f1b2d76b08f481781d09
|
356
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705
|
357
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/1b54952339cbc96811097cee5f8923b4
|
358
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/1cbc4f4790f2067a2c161c1eb480f276
|
359
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af
|
360
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953
|
361
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/5afa4bc970e0bc781b3500c696ba25ff
|
362
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/664efeb51d1b486dcfc30d142db56f3c
|
363
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/68a3bbdc64a0729b5896fa1e33fce4b1
|
364
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/aea159adbc0944b120d91d5b578612ba
|
365
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/b83da90cb58011313e13a97a4a41cb6e
|
366
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/c0b954b40f2881a6d286061bc069643e
|
367
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/c5b3877d49b39932a7557611cefca9a6
|
368
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/ca491e325ff6948be9292f701aa4ce64
|
369
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994
|
370
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6
|
371
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/d9856638a3c7b9cfd9d1b884e3b33982
|
372
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/ddba6e841f28d3005e828fbfffd18b74
|
373
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/df935e399019055729aa968bd7062096
|
374
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/ef82c31948061751bb026663b54484e1
|
375
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/f0b5d4bea0c6cdd1904e1e9a0a45532f
|
376
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655
|
377
|
+
- spec/dummy/tmp/cache/assets/development/sprockets/f8018075b7aca72974f4014bbbc75ab5
|
378
|
+
- spec/factories/payola_affiliates.rb
|
379
|
+
- spec/factories/payola_coupons.rb
|
380
|
+
- spec/factories/product.rb
|
381
|
+
- spec/factories/sales.rb
|
382
|
+
- spec/models/payola/sale_spec.rb
|
383
|
+
- spec/models/payola/stripe_webhook_spec.rb
|
384
|
+
- spec/payola_spec.rb
|
385
|
+
- spec/services/payola/charge_card_spec.rb
|
386
|
+
- spec/services/payola/create_sale_spec.rb
|
387
|
+
- spec/spec_helper.rb
|
388
|
+
- spec/worker_spec.rb
|