dradis-pdf_export 4.8.0 → 4.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.gitignore +1 -0
- data/CHANGELOG.md +8 -0
- data/app/controllers/dradis/plugins/pdf_export/{base_controller.rb → reports_controller.rb} +4 -2
- data/app/views/dradis/plugins/pdf_export/export/_index-content.html.erb +2 -5
- data/app/views/dradis/plugins/pdf_export/export/_index-tabs.html.erb +1 -1
- data/config/routes.rb +3 -1
- data/dradis-pdf_export.gemspec +7 -7
- data/lib/dradis/plugins/pdf_export/engine.rb +2 -5
- data/lib/dradis/plugins/pdf_export/gem_version.rb +2 -2
- metadata +5 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5756d2c5474b05f4f93dea3b4499f2e85609893e5106b03179bb6f571282b205
|
4
|
+
data.tar.gz: a55ce93e2a3621d67ad4e2688b7820576340c324c34c570aaedbbafcc97d9e69
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d5faca9cf010f891261f758bbe72648c40e3524cda094789124d1aaac2fb1891537f7b7ceb2b79f2112d2ca33037a15f05f88a342ae654d01dba4534fa482063
|
7
|
+
data.tar.gz: e0bbcc63f701a6d6e03c7009b6b62fee0acf63fbd0ebcc4e7c6c37b984d04851ac77ae74db5906ac758673953e620ad2bf74b6d5e0b405684992cf627c281670
|
data/.gitignore
CHANGED
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
v4.10.0 (September 2023)
|
2
|
+
- Implement handling of exports directly from Tylium
|
3
|
+
- Update views for compatibility with Font Awesome 6
|
4
|
+
- Update gemspec links
|
5
|
+
|
6
|
+
v4.9.0 (Month 2023)
|
7
|
+
- Update views for compatibility with Bootstrap 5
|
8
|
+
|
1
9
|
v4.8.0 (April 2023)
|
2
10
|
- Add feature to select published/all records for export
|
3
11
|
|
@@ -1,10 +1,12 @@
|
|
1
1
|
module Dradis
|
2
2
|
module Plugins
|
3
3
|
module PdfExport
|
4
|
-
class
|
4
|
+
class ReportsController < Dradis::Plugins::Export::BaseController
|
5
|
+
skip_before_action :validate_template
|
6
|
+
|
5
7
|
# This method cycles throw the notes in the reporting category and creates
|
6
8
|
# a simple PDF report with them.
|
7
|
-
def
|
9
|
+
def create
|
8
10
|
exporter = Dradis::Plugins::PdfExport::Exporter.new(export_params)
|
9
11
|
pdf = exporter.export
|
10
12
|
|
@@ -4,12 +4,9 @@
|
|
4
4
|
|
5
5
|
To customize the PDF structure, see the <a href="https://dradisframework.com/support/guides/reporting/pdf_reports.html" target="_blank">Creating PDF reports</a> guide.
|
6
6
|
|
7
|
-
<%= form_tag
|
8
|
-
<%= hidden_field_tag :plugin, :pdf_export %>
|
9
|
-
<%= hidden_field_tag :route, :root %>
|
10
|
-
|
7
|
+
<%= form_tag pdf_export.project_report_path(current_project), target: '_blank' do %>
|
11
8
|
<div class="mt-4">
|
12
9
|
<%= render partial: 'export/submit_button', locals: { plugin_name: Dradis::Plugins::PdfExport::Engine.plugin_name } %>
|
13
10
|
</div>
|
14
11
|
<% end %>
|
15
|
-
<% end%>
|
12
|
+
<% end %>
|
@@ -1,3 +1,3 @@
|
|
1
1
|
<li class='nav-item'>
|
2
|
-
<a href='#pdf_export' class='nav-link' data-toggle='tab'
|
2
|
+
<a href='#plugin-pdf_export' class='nav-link' data-bs-toggle='tab'><i class="fa-solid fa-file-pdf fa-fw"></i>PDF</a>
|
3
3
|
</li>
|
data/config/routes.rb
CHANGED
data/dradis-pdf_export.gemspec
CHANGED
@@ -1,24 +1,24 @@
|
|
1
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
|
2
3
|
require File.expand_path('../lib/dradis/plugins/pdf_export/version', __FILE__)
|
3
4
|
version = Dradis::Plugins::PdfExport::version
|
4
5
|
|
5
6
|
Gem::Specification.new do |spec|
|
6
7
|
spec.platform = Gem::Platform::RUBY
|
7
|
-
spec.name =
|
8
|
+
spec.name = 'dradis-pdf_export'
|
8
9
|
spec.version = version
|
9
10
|
spec.required_ruby_version = '>= 1.9.3'
|
10
11
|
spec.license = 'GPL-2'
|
11
12
|
|
12
13
|
spec.authors = ['Daniel Martin']
|
13
|
-
spec.
|
14
|
-
spec.
|
15
|
-
spec.
|
16
|
-
spec.homepage = 'http://dradisframework.org'
|
14
|
+
spec.description = 'Export to PDF plugin for the Dradis Framework'
|
15
|
+
spec.summary = 'Dradis PDF export plugin'
|
16
|
+
spec.homepage = 'http://dradis.com'
|
17
17
|
|
18
18
|
spec.files = `git ls-files`.split($\)
|
19
|
-
spec.executables = spec.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
19
|
+
spec.executables = spec.files.grep(%r{^bin/}).map { |f| File.basename(f) }
|
20
20
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
21
|
-
spec.require_paths = [
|
21
|
+
spec.require_paths = ['lib']
|
22
22
|
|
23
23
|
spec.add_dependency 'dradis-plugins', '>= 4.8.0'
|
24
24
|
spec.add_dependency 'prawn', '~> 0.15.0'
|
@@ -1,7 +1,6 @@
|
|
1
1
|
module Dradis
|
2
2
|
module Plugins
|
3
3
|
module PdfExport
|
4
|
-
|
5
4
|
class Engine < ::Rails::Engine
|
6
5
|
# Standard Rails Engine stuff
|
7
6
|
isolate_namespace Dradis::Plugins::PdfExport
|
@@ -18,14 +17,12 @@ module Dradis
|
|
18
17
|
provides :export
|
19
18
|
description 'Generate PDF reports'
|
20
19
|
|
21
|
-
|
22
20
|
initializer 'dradis-pdf_export.mount_engine' do
|
23
21
|
Rails.application.routes.append do
|
24
|
-
mount Dradis::Plugins::PdfExport::Engine => '/
|
22
|
+
mount Dradis::Plugins::PdfExport::Engine => '/', as: :pdf_export
|
25
23
|
end
|
26
24
|
end
|
27
25
|
end
|
28
|
-
|
29
26
|
end
|
30
27
|
end
|
31
|
-
end
|
28
|
+
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
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.10.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-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dradis-plugins
|
@@ -123,8 +123,7 @@ dependencies:
|
|
123
123
|
- !ruby/object:Gem::Version
|
124
124
|
version: '0'
|
125
125
|
description: Export to PDF plugin for the Dradis Framework
|
126
|
-
email:
|
127
|
-
- "<etd@nomejortu.com>"
|
126
|
+
email:
|
128
127
|
executables: []
|
129
128
|
extensions: []
|
130
129
|
extra_rdoc_files: []
|
@@ -138,7 +137,7 @@ files:
|
|
138
137
|
- README.md
|
139
138
|
- Rakefile
|
140
139
|
- app/assets/images/logo_pdf.jpg
|
141
|
-
- app/controllers/dradis/plugins/pdf_export/
|
140
|
+
- app/controllers/dradis/plugins/pdf_export/reports_controller.rb
|
142
141
|
- app/views/dradis/plugins/pdf_export/export/_index-content.html.erb
|
143
142
|
- app/views/dradis/plugins/pdf_export/export/_index-tabs.html.erb
|
144
143
|
- config/routes.rb
|
@@ -150,7 +149,7 @@ files:
|
|
150
149
|
- lib/dradis/plugins/pdf_export/gem_version.rb
|
151
150
|
- lib/dradis/plugins/pdf_export/version.rb
|
152
151
|
- lib/tasks/thorfile.rb
|
153
|
-
homepage: http://
|
152
|
+
homepage: http://dradis.com
|
154
153
|
licenses:
|
155
154
|
- GPL-2
|
156
155
|
metadata: {}
|