dradis-html_export 4.19.0 → 5.0.0
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 +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +3 -0
- data/lib/dradis/plugins/html_export/engine.rb +5 -7
- data/lib/dradis/plugins/html_export/gem_version.rb +2 -2
- data/lib/tasks/thorfile.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 405830fb0f176a5ce46b539849fe158f7422dbe81f1488396ab7b34cfe049f6e
|
|
4
|
+
data.tar.gz: dc855510232d4fe84359e117d4f107d6c7b7b74f2192a50b4bf069973433a55a
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 28dcf37f58a84f351a44b0985e5ed733ed113869c2f00cc83d505a5ad9557375c8001e0b07bbb9f94ca781bfdd321942a043767860f0aace891b7509fa04497c
|
|
7
|
+
data.tar.gz: 0b564192ef5fd7da5a520a3644cdc648e724af777a5bc34a8f0e1a584e85bbde90f2ec6de3be90c7d7684fa144a0c4bc04fd3f870a4300432c589790ab93f96c
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
|
@@ -23,13 +23,11 @@ module Dradis
|
|
|
23
23
|
end if defined?(Dradis::Pro)
|
|
24
24
|
|
|
25
25
|
initializer 'dradis-html_export.mount_engine' do
|
|
26
|
-
Rails.application.
|
|
27
|
-
Rails.application.
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
mount Engine => '/', as: :html_export
|
|
32
|
-
end
|
|
26
|
+
Rails.application.routes.append do
|
|
27
|
+
# Enabling/disabling integrations calls Rails.application.reload_routes! we need the enable
|
|
28
|
+
# check inside the block to ensure the routes can be re-enabled without a server restart
|
|
29
|
+
if Engine.enabled?
|
|
30
|
+
mount Engine => '/', as: :html_export
|
|
33
31
|
end
|
|
34
32
|
end
|
|
35
33
|
end
|
data/lib/tasks/thorfile.rb
CHANGED
|
@@ -13,7 +13,7 @@ class HtmlExportTasks < Thor
|
|
|
13
13
|
# The options we'll end up passing to the Processor class
|
|
14
14
|
opts = {}
|
|
15
15
|
|
|
16
|
-
report_path = options.output || Rails.root
|
|
16
|
+
report_path = options.output || Rails.root.join('tmp')
|
|
17
17
|
unless report_path.to_s =~ /\.html\z/
|
|
18
18
|
date = DateTime.now.strftime("%Y-%m-%d")
|
|
19
19
|
base_filename = "dradis-report_#{date}.html"
|