2017-02-23 20:42:59 -05:00
|
|
|
# name: discourse-donations
|
2017-11-26 07:24:27 -05:00
|
|
|
# about: Integrates Stripe into Discourse to allow forum visitors to make donations
|
2017-05-28 20:48:32 -04:00
|
|
|
# version: 1.11.1
|
2017-11-26 07:24:27 -05:00
|
|
|
# url: https://github.com/chrisbeach/discourse-donations
|
|
|
|
# authors: Rimian Perkins, Chris Beach
|
2017-01-30 21:28:41 -05:00
|
|
|
|
2017-04-30 20:48:40 -04:00
|
|
|
gem 'stripe', '2.8.0'
|
2017-01-31 19:35:21 -05:00
|
|
|
|
2017-02-23 21:23:11 -05:00
|
|
|
load File.expand_path('../lib/discourse_donations/engine.rb', __FILE__)
|
2017-02-26 20:07:21 -05:00
|
|
|
|
2018-02-02 04:43:54 -05:00
|
|
|
register_asset "stylesheets/discourse-donations.scss"
|
2017-10-09 03:39:21 -04:00
|
|
|
|
2017-02-27 21:36:41 -05:00
|
|
|
enabled_site_setting :discourse_donations_enabled
|
|
|
|
|
2017-11-11 22:16:47 -05:00
|
|
|
register_html_builder('server:before-head-close') do
|
|
|
|
"<script src='https://js.stripe.com/v3/'></script>"
|
|
|
|
end
|
|
|
|
|
2017-02-16 21:15:32 -05:00
|
|
|
after_initialize do
|
2017-05-04 03:23:41 -04:00
|
|
|
load File.expand_path('../app/jobs/jobs.rb', __FILE__)
|
2017-02-16 21:15:32 -05:00
|
|
|
end
|
|
|
|
|
2017-02-06 21:56:22 -05:00
|
|
|
Discourse::Application.routes.prepend do
|
2017-02-23 21:23:11 -05:00
|
|
|
mount ::DiscourseDonations::Engine, at: '/'
|
2017-01-30 21:28:41 -05:00
|
|
|
end
|