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.
Files changed (121) hide show
  1. checksums.yaml +8 -8
  2. data/Rakefile +7 -11
  3. data/app/assets/javascripts/payola.js +1 -0
  4. data/app/assets/javascripts/payola/checkout_button.js +62 -0
  5. data/app/controllers/payola/application_controller.rb +2 -0
  6. data/app/controllers/payola/transactions_controller.rb +48 -58
  7. data/app/helpers/payola/price_helper.rb +7 -0
  8. data/{lib → app/models/concerns}/payola/sellable.rb +11 -1
  9. data/app/models/payola/affiliate.rb +5 -0
  10. data/app/models/payola/coupon.rb +5 -0
  11. data/app/models/payola/sale.rb +15 -4
  12. data/app/models/payola/stripe_webhook.rb +5 -0
  13. data/app/services/payola/charge_card.rb +6 -5
  14. data/app/services/payola/create_sale.rb +9 -5
  15. data/app/views/payola/transactions/_checkout.html.erb +48 -0
  16. data/app/views/payola/transactions/_form.html.erb +141 -0
  17. data/app/views/payola/transactions/iframe.html.erb +2 -0
  18. data/app/views/payola/transactions/new.html.erb +1 -0
  19. data/app/views/payola/transactions/show.html.erb +5 -0
  20. data/app/views/payola/transactions/wait.html.erb +25 -0
  21. data/config/routes.rb +0 -3
  22. data/db/migrate/20141001170138_create_payola_sales.rb +4 -4
  23. data/db/migrate/20141001203541_create_payola_stripe_webhooks.rb +9 -0
  24. data/db/migrate/20141002013618_create_payola_coupons.rb +10 -0
  25. data/db/migrate/20141002013701_create_payola_affiliates.rb +11 -0
  26. data/db/migrate/20141002203725_add_stripe_customer_id_to_sale.rb +6 -0
  27. data/lib/payola.rb +30 -5
  28. data/lib/payola/engine.rb +8 -0
  29. data/lib/payola/version.rb +1 -1
  30. data/lib/payola/worker.rb +22 -4
  31. data/spec/concerns/sellable_spec.rb +32 -0
  32. data/spec/controllers/payola/transactions_controller_spec.rb +7 -0
  33. data/{test → spec}/dummy/README.rdoc +0 -0
  34. data/{test → spec}/dummy/Rakefile +0 -0
  35. data/{test → spec}/dummy/app/assets/javascripts/application.js +1 -0
  36. data/spec/dummy/app/assets/javascripts/buy.js +2 -0
  37. data/{test → spec}/dummy/app/assets/stylesheets/application.css +0 -0
  38. data/spec/dummy/app/assets/stylesheets/buy.css +4 -0
  39. data/{test → spec}/dummy/app/controllers/application_controller.rb +0 -0
  40. data/spec/dummy/app/controllers/buy_controller.rb +7 -0
  41. data/{test → spec}/dummy/app/helpers/application_helper.rb +0 -0
  42. data/spec/dummy/app/helpers/buy_helper.rb +2 -0
  43. data/spec/dummy/app/models/product.rb +7 -0
  44. data/spec/dummy/app/views/buy/index.html.erb +1 -0
  45. data/{test → spec}/dummy/app/views/layouts/application.html.erb +2 -1
  46. data/{test → spec}/dummy/bin/bundle +0 -0
  47. data/{test → spec}/dummy/bin/rails +0 -0
  48. data/{test → spec}/dummy/bin/rake +0 -0
  49. data/{test → spec}/dummy/config.ru +0 -0
  50. data/{test → spec}/dummy/config/application.rb +0 -0
  51. data/{test → spec}/dummy/config/boot.rb +0 -0
  52. data/{test → spec}/dummy/config/database.yml +0 -0
  53. data/{test → spec}/dummy/config/environment.rb +0 -0
  54. data/{test → spec}/dummy/config/environments/development.rb +0 -0
  55. data/{test → spec}/dummy/config/environments/production.rb +0 -0
  56. data/{test → spec}/dummy/config/environments/test.rb +0 -0
  57. data/{test → spec}/dummy/config/initializers/assets.rb +0 -0
  58. data/{test → spec}/dummy/config/initializers/backtrace_silencers.rb +0 -0
  59. data/{test → spec}/dummy/config/initializers/cookies_serializer.rb +0 -0
  60. data/{test → spec}/dummy/config/initializers/filter_parameter_logging.rb +0 -0
  61. data/{test → spec}/dummy/config/initializers/inflections.rb +0 -0
  62. data/{test → spec}/dummy/config/initializers/mime_types.rb +0 -0
  63. data/spec/dummy/config/initializers/payola.rb +5 -0
  64. data/{test → spec}/dummy/config/initializers/session_store.rb +0 -0
  65. data/{test → spec}/dummy/config/initializers/wrap_parameters.rb +0 -0
  66. data/{test → spec}/dummy/config/locales/en.yml +0 -0
  67. data/{test → spec}/dummy/config/routes.rb +1 -1
  68. data/{test → spec}/dummy/config/secrets.yml +0 -0
  69. data/spec/dummy/db/development.sqlite3 +0 -0
  70. data/spec/dummy/db/migrate/20141001230848_create_products.rb +11 -0
  71. data/spec/dummy/db/schema.rb +76 -0
  72. data/spec/dummy/db/test.sqlite3 +0 -0
  73. data/spec/dummy/log/development.log +7452 -0
  74. data/spec/dummy/log/test.log +9849 -0
  75. data/{test → spec}/dummy/public/404.html +0 -0
  76. data/{test → spec}/dummy/public/422.html +0 -0
  77. data/{test → spec}/dummy/public/500.html +0 -0
  78. data/{test → spec}/dummy/public/favicon.ico +0 -0
  79. data/spec/dummy/spec/controllers/buy_controller_spec.rb +5 -0
  80. data/spec/dummy/spec/factories/products.rb +9 -0
  81. data/spec/dummy/tmp/cache/assets/development/sprockets/0e585aeb88c1555ae8f5292f7c7a9068 +0 -0
  82. data/spec/dummy/tmp/cache/assets/development/sprockets/0f0c99469c51f1b2d76b08f481781d09 +0 -0
  83. data/spec/dummy/tmp/cache/assets/development/sprockets/13fe41fee1fe35b49d145bcc06610705 +0 -0
  84. data/spec/dummy/tmp/cache/assets/development/sprockets/1b54952339cbc96811097cee5f8923b4 +0 -0
  85. data/spec/dummy/tmp/cache/assets/development/sprockets/1cbc4f4790f2067a2c161c1eb480f276 +0 -0
  86. data/spec/dummy/tmp/cache/assets/development/sprockets/2f5173deea6c795b8fdde723bb4b63af +0 -0
  87. data/spec/dummy/tmp/cache/assets/development/sprockets/357970feca3ac29060c1e3861e2c0953 +0 -0
  88. data/spec/dummy/tmp/cache/assets/development/sprockets/5afa4bc970e0bc781b3500c696ba25ff +0 -0
  89. data/spec/dummy/tmp/cache/assets/development/sprockets/664efeb51d1b486dcfc30d142db56f3c +0 -0
  90. data/spec/dummy/tmp/cache/assets/development/sprockets/68a3bbdc64a0729b5896fa1e33fce4b1 +0 -0
  91. data/spec/dummy/tmp/cache/assets/development/sprockets/aea159adbc0944b120d91d5b578612ba +0 -0
  92. data/spec/dummy/tmp/cache/assets/development/sprockets/b83da90cb58011313e13a97a4a41cb6e +0 -0
  93. data/spec/dummy/tmp/cache/assets/development/sprockets/c0b954b40f2881a6d286061bc069643e +0 -0
  94. data/spec/dummy/tmp/cache/assets/development/sprockets/c5b3877d49b39932a7557611cefca9a6 +0 -0
  95. data/spec/dummy/tmp/cache/assets/development/sprockets/ca491e325ff6948be9292f701aa4ce64 +0 -0
  96. data/spec/dummy/tmp/cache/assets/development/sprockets/cffd775d018f68ce5dba1ee0d951a994 +0 -0
  97. data/spec/dummy/tmp/cache/assets/development/sprockets/d771ace226fc8215a3572e0aa35bb0d6 +0 -0
  98. data/spec/dummy/tmp/cache/assets/development/sprockets/d9856638a3c7b9cfd9d1b884e3b33982 +0 -0
  99. data/spec/dummy/tmp/cache/assets/development/sprockets/ddba6e841f28d3005e828fbfffd18b74 +0 -0
  100. data/spec/dummy/tmp/cache/assets/development/sprockets/df935e399019055729aa968bd7062096 +0 -0
  101. data/spec/dummy/tmp/cache/assets/development/sprockets/ef82c31948061751bb026663b54484e1 +0 -0
  102. data/spec/dummy/tmp/cache/assets/development/sprockets/f0b5d4bea0c6cdd1904e1e9a0a45532f +0 -0
  103. data/spec/dummy/tmp/cache/assets/development/sprockets/f7cbd26ba1d28d48de824f0e94586655 +0 -0
  104. data/spec/dummy/tmp/cache/assets/development/sprockets/f8018075b7aca72974f4014bbbc75ab5 +0 -0
  105. data/spec/factories/payola_affiliates.rb +9 -0
  106. data/spec/factories/payola_coupons.rb +8 -0
  107. data/spec/factories/product.rb +7 -0
  108. data/spec/factories/sales.rb +7 -0
  109. data/spec/models/payola/sale_spec.rb +71 -0
  110. data/spec/models/payola/stripe_webhook_spec.rb +17 -0
  111. data/spec/payola_spec.rb +93 -0
  112. data/spec/services/payola/charge_card_spec.rb +37 -0
  113. data/spec/services/payola/create_sale_spec.rb +64 -0
  114. data/spec/spec_helper.rb +73 -0
  115. data/spec/worker_spec.rb +36 -0
  116. metadata +275 -81
  117. data/test/fixtures/payola/sales.yml +0 -11
  118. data/test/integration/navigation_test.rb +0 -10
  119. data/test/models/payola/sale_test.rb +0 -9
  120. data/test/payola_test.rb +0 -7
  121. data/test/test_helper.rb +0 -15
@@ -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.1
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-01 00:00:00.000000000 Z
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.1.0
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.1.0
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
- - test/dummy/README.rdoc
95
- - test/dummy/Rakefile
96
- - test/dummy/app/assets/javascripts/application.js
97
- - test/dummy/app/assets/stylesheets/application.css
98
- - test/dummy/app/controllers/application_controller.rb
99
- - test/dummy/app/helpers/application_helper.rb
100
- - test/dummy/app/views/layouts/application.html.erb
101
- - test/dummy/bin/bundle
102
- - test/dummy/bin/rails
103
- - test/dummy/bin/rake
104
- - test/dummy/config.ru
105
- - test/dummy/config/application.rb
106
- - test/dummy/config/boot.rb
107
- - test/dummy/config/database.yml
108
- - test/dummy/config/environment.rb
109
- - test/dummy/config/environments/development.rb
110
- - test/dummy/config/environments/production.rb
111
- - test/dummy/config/environments/test.rb
112
- - test/dummy/config/initializers/assets.rb
113
- - test/dummy/config/initializers/backtrace_silencers.rb
114
- - test/dummy/config/initializers/cookies_serializer.rb
115
- - test/dummy/config/initializers/filter_parameter_logging.rb
116
- - test/dummy/config/initializers/inflections.rb
117
- - test/dummy/config/initializers/mime_types.rb
118
- - test/dummy/config/initializers/session_store.rb
119
- - test/dummy/config/initializers/wrap_parameters.rb
120
- - test/dummy/config/locales/en.yml
121
- - test/dummy/config/routes.rb
122
- - test/dummy/config/secrets.yml
123
- - test/dummy/public/404.html
124
- - test/dummy/public/422.html
125
- - test/dummy/public/500.html
126
- - test/dummy/public/favicon.ico
127
- - test/fixtures/payola/sales.yml
128
- - test/integration/navigation_test.rb
129
- - test/models/payola/sale_test.rb
130
- - test/payola_test.rb
131
- - test/test_helper.rb
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
- - test/dummy/app/assets/javascripts/application.js
158
- - test/dummy/app/assets/stylesheets/application.css
159
- - test/dummy/app/controllers/application_controller.rb
160
- - test/dummy/app/helpers/application_helper.rb
161
- - test/dummy/app/views/layouts/application.html.erb
162
- - test/dummy/bin/bundle
163
- - test/dummy/bin/rails
164
- - test/dummy/bin/rake
165
- - test/dummy/config/application.rb
166
- - test/dummy/config/boot.rb
167
- - test/dummy/config/database.yml
168
- - test/dummy/config/environment.rb
169
- - test/dummy/config/environments/development.rb
170
- - test/dummy/config/environments/production.rb
171
- - test/dummy/config/environments/test.rb
172
- - test/dummy/config/initializers/assets.rb
173
- - test/dummy/config/initializers/backtrace_silencers.rb
174
- - test/dummy/config/initializers/cookies_serializer.rb
175
- - test/dummy/config/initializers/filter_parameter_logging.rb
176
- - test/dummy/config/initializers/inflections.rb
177
- - test/dummy/config/initializers/mime_types.rb
178
- - test/dummy/config/initializers/session_store.rb
179
- - test/dummy/config/initializers/wrap_parameters.rb
180
- - test/dummy/config/locales/en.yml
181
- - test/dummy/config/routes.rb
182
- - test/dummy/config/secrets.yml
183
- - test/dummy/config.ru
184
- - test/dummy/public/404.html
185
- - test/dummy/public/422.html
186
- - test/dummy/public/500.html
187
- - test/dummy/public/favicon.ico
188
- - test/dummy/Rakefile
189
- - test/dummy/README.rdoc
190
- - test/fixtures/payola/sales.yml
191
- - test/integration/navigation_test.rb
192
- - test/models/payola/sale_test.rb
193
- - test/payola_test.rb
194
- - test/test_helper.rb
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