dradis-pdf_export 4.7.0 → 4.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -0
- data/app/controllers/dradis/plugins/pdf_export/base_controller.rb +3 -5
- data/app/views/dradis/plugins/pdf_export/export/_index-content.html.erb +4 -2
- data/app/views/dradis/plugins/pdf_export/export/_index-tabs.html.erb +1 -1
- data/dradis-pdf_export.gemspec +2 -2
- data/lib/dradis/plugins/pdf_export/gem_version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b826e812e7722e27c4574e5e9afea92b1f0c2a6fcf25ac9df8e6e3c7759bb0ec
|
4
|
+
data.tar.gz: be5eb1752511c0e36cc12470beb0a7d49651cebeb5c96e51ea54e070a9921b97
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 404c5cc91c92ae67166bf8281150ca9ef16d1315191215851b4148bbb4f6e75c7b6556b58ccc011e3652aa996cbdd54f929085b0505cc04210f1bd2814267421
|
7
|
+
data.tar.gz: 5256856d85c93c4f4f2cd08c6948796d204efeb8a903ed0dbd18d1d2ab13ed0f43dea54d41bd0900d075d1c2e319cb82f7049396402c53dfc87a734e1458f5f1
|
data/CHANGELOG.md
CHANGED
@@ -1,20 +1,18 @@
|
|
1
1
|
module Dradis
|
2
2
|
module Plugins
|
3
3
|
module PdfExport
|
4
|
-
|
5
4
|
class BaseController < Dradis::Plugins::Export::BaseController
|
6
5
|
# This method cycles throw the notes in the reporting category and creates
|
7
6
|
# a simple PDF report with them.
|
8
7
|
def index
|
9
|
-
exporter = Dradis::Plugins::PdfExport::Exporter.new(
|
10
|
-
pdf
|
8
|
+
exporter = Dradis::Plugins::PdfExport::Exporter.new(export_params)
|
9
|
+
pdf = exporter.export
|
11
10
|
|
12
11
|
send_data pdf.render, filename: "dradis_report-#{Time.now.to_i}.pdf",
|
13
12
|
type: 'application/pdf',
|
14
13
|
disposition: 'inline'
|
15
14
|
end
|
16
15
|
end
|
17
|
-
|
18
16
|
end
|
19
17
|
end
|
20
|
-
end
|
18
|
+
end
|
@@ -8,6 +8,8 @@
|
|
8
8
|
<%= hidden_field_tag :plugin, :pdf_export %>
|
9
9
|
<%= hidden_field_tag :route, :root %>
|
10
10
|
|
11
|
-
<
|
11
|
+
<div class="mt-4">
|
12
|
+
<%= render partial: 'export/submit_button', locals: { plugin_name: Dradis::Plugins::PdfExport::Engine.plugin_name } %>
|
13
|
+
</div>
|
12
14
|
<% end %>
|
13
|
-
<% end%>
|
15
|
+
<% end %>
|
data/dradis-pdf_export.gemspec
CHANGED
@@ -20,13 +20,13 @@ Gem::Specification.new do |spec|
|
|
20
20
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
21
21
|
spec.require_paths = ["lib"]
|
22
22
|
|
23
|
-
spec.add_dependency 'dradis-plugins', '
|
23
|
+
spec.add_dependency 'dradis-plugins', '>= 4.8.0'
|
24
24
|
spec.add_dependency 'prawn', '~> 0.15.0'
|
25
25
|
|
26
26
|
spec.add_development_dependency 'capybara', '~> 1.1.3'
|
27
27
|
spec.add_development_dependency 'database_cleaner'
|
28
28
|
spec.add_development_dependency 'factory_girl_rails'
|
29
|
-
spec.add_development_dependency 'rake', '
|
29
|
+
spec.add_development_dependency 'rake', '>= 12.3.3'
|
30
30
|
spec.add_development_dependency 'rspec-rails', '~> 2.11.0'
|
31
31
|
spec.add_development_dependency 'sqlite3'
|
32
32
|
end
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dradis-pdf_export
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.9.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Martin
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-05-31 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dradis-plugins
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: 4.8.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: 4.8.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: prawn
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -84,16 +84,16 @@ dependencies:
|
|
84
84
|
name: rake
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
86
86
|
requirements:
|
87
|
-
- - "
|
87
|
+
- - ">="
|
88
88
|
- !ruby/object:Gem::Version
|
89
|
-
version:
|
89
|
+
version: 12.3.3
|
90
90
|
type: :development
|
91
91
|
prerelease: false
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
93
93
|
requirements:
|
94
|
-
- - "
|
94
|
+
- - ">="
|
95
95
|
- !ruby/object:Gem::Version
|
96
|
-
version:
|
96
|
+
version: 12.3.3
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rspec-rails
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|