-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathplugin.rb
25 lines (20 loc) · 933 Bytes
/
plugin.rb
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# name: csp-reports
# about: CSP Violations Reporter
# version: 0.0.1
gem("rmagick", "2.15.4")
gem("gruff", "0.6.0")
require(File.expand_path("../lib/csp_reports", __FILE__))
register_asset("stylesheets/csp_reports/csp-reports.css.scss")
after_initialize do
require(File.expand_path("../app/models/user", __FILE__))
require(File.expand_path("../app/jobs/csp_reports/base", __FILE__))
require(File.expand_path("../app/jobs/csp_reports/daily", __FILE__))
require(File.expand_path("../app/jobs/csp_reports/weekly", __FILE__))
require(File.expand_path("../app/jobs/csp_reports/monthly", __FILE__))
require(File.expand_path("../app/jobs/shared_domain", __FILE__))
require(File.expand_path("../app/mailers/shared_domain_mailer", __FILE__))
require(File.expand_path("../app/mailers/csp_violations_report_mailer", __FILE__))
end
Discourse::Application.routes.append do
mount CspReports::Engine, at: "/csp-reports"
end