dradis-pdf_export 4.9.0 → 4.11.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b826e812e7722e27c4574e5e9afea92b1f0c2a6fcf25ac9df8e6e3c7759bb0ec
4
- data.tar.gz: be5eb1752511c0e36cc12470beb0a7d49651cebeb5c96e51ea54e070a9921b97
3
+ metadata.gz: ea50f3ebe792a2b2a1d8f078e1788771b23972523d5d34fd60e9f3857bb597c5
4
+ data.tar.gz: d07d211a9d83ec62ecede95c34c9839572586a8ba319ff707e00a628c6145ddd
5
5
  SHA512:
6
- metadata.gz: 404c5cc91c92ae67166bf8281150ca9ef16d1315191215851b4148bbb4f6e75c7b6556b58ccc011e3652aa996cbdd54f929085b0505cc04210f1bd2814267421
7
- data.tar.gz: 5256856d85c93c4f4f2cd08c6948796d204efeb8a903ed0dbd18d1d2ab13ed0f43dea54d41bd0900d075d1c2e319cb82f7049396402c53dfc87a734e1458f5f1
6
+ metadata.gz: 251bb1e6deeef4de730b8f467dda518df24a1850e8876d67c679a3f1423fe32f3a74a8552ce82ab2572dfe5ade4f58f1179e292ecf0e06ec8d85e434f842ec70
7
+ data.tar.gz: 9c36b6fb5e6560a8cdf83007b3817ad56a9101c8f707297342118c3e866f2d8c241d25953e0fa29268ae6613bda5bf421b13c15e32c8a7545819dbea22b388f4
@@ -0,0 +1,45 @@
1
+ Please review [CONTRIBUTING.md](https://github.com/dradis/dradis-ce/blob/develop/CONTRIBUTING.md) and remove this line.
2
+
3
+ ### Summary
4
+
5
+ Provide a general description of the code changes in your pull
6
+ request... were there any bugs you had fixed? If so, mention them. If
7
+ these bugs have open GitHub issues, be sure to tag them here as well,
8
+ to keep the conversation linked together.
9
+
10
+
11
+ ### Testing Steps
12
+
13
+ Provide steps to test functionality, described in detail for someone not familiar with this part of the application / code base
14
+
15
+
16
+ ### Other Information
17
+
18
+ If there's anything else that's important and relevant to your pull
19
+ request, mention that information here. This could include
20
+ benchmarks, or other information.
21
+
22
+ Thanks for contributing to Dradis!
23
+
24
+
25
+ ### Copyright assignment
26
+
27
+ Collaboration is difficult with commercial closed source but we want
28
+ to keep as much of the OSS ethos as possible available to users
29
+ who want to fix it themselves.
30
+
31
+ In order to unambiguously own and sell Dradis Framework commercial
32
+ products, we must have the copyright associated with the entire
33
+ codebase. Any code you create which is merged must be owned by us.
34
+ That's not us trying to be a jerks, that's just the way it works.
35
+
36
+ You can delete this section, but the following sentence needs to
37
+ remain in the PR's description:
38
+
39
+ > I assign all rights, including copyright, to any future Dradis
40
+ > work by myself to Security Roots.
41
+
42
+ ### Check List
43
+
44
+ - [ ] Added a CHANGELOG entry
45
+ - [ ] Added specs
data/.gitignore CHANGED
@@ -1,3 +1,4 @@
1
1
  .bundle/
2
2
  vendor/bundle/
3
3
  Gemfile.lock
4
+ pkg/
data/CHANGELOG.md CHANGED
@@ -1,4 +1,12 @@
1
- v4.9.0 (June 2023)
1
+ v4.11.0 (January 2024)
2
+ - No changes
3
+
4
+ v4.10.0 (September 2023)
5
+ - Implement handling of exports directly from Tylium
6
+ - Update views for compatibility with Font Awesome 6
7
+ - Update gemspec links
8
+
9
+ v4.9.0 (Month 2023)
2
10
  - Update views for compatibility with Bootstrap 5
3
11
 
4
12
  v4.8.0 (April 2023)
data/README.md CHANGED
@@ -12,12 +12,12 @@ The add-on requires [Dradis CE](https://dradisframework.org/) > 3.0, or [Dradis
12
12
 
13
13
  ## More information
14
14
 
15
- See the Dradis Framework's [README.md](https://github.com/dradis/dradisframework/blob/master/README.md)
15
+ See the Dradis Framework's [README.md](https://github.com/dradis/dradis-ce/blob/develop/README.md)
16
16
 
17
17
 
18
18
  ## Contributing
19
19
 
20
- See the Dradis Framework's [CONTRIBUTING.md](https://github.com/dradis/dradisframework/blob/master/CONTRIBUTING.md)
20
+ See the Dradis Framework's [CONTRIBUTING.md](https://github.com/dradis/dradis-ce/blob/develop/CONTRIBUTING.md)
21
21
 
22
22
 
23
23
  ## License
@@ -1,10 +1,12 @@
1
1
  module Dradis
2
2
  module Plugins
3
3
  module PdfExport
4
- class BaseController < Dradis::Plugins::Export::BaseController
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 index
9
+ def create
8
10
  exporter = Dradis::Plugins::PdfExport::Exporter.new(export_params)
9
11
  pdf = exporter.export
10
12
 
@@ -4,10 +4,7 @@
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 project_export_manager_path(current_project), target: '_blank' do %>
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>
@@ -1,3 +1,3 @@
1
1
  <li class='nav-item'>
2
- <a href='#plugin-pdf_export' class='nav-link' data-bs-toggle='tab'>Custom PDF reports</a>
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
@@ -1,3 +1,5 @@
1
1
  Dradis::Plugins::PdfExport::Engine.routes.draw do
2
- root to: 'base#index'
2
+ resources :projects, only: [] do
3
+ resource :report, only: [:create], path: '/export/pdf/reports'
4
+ end
3
5
  end
@@ -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 = "dradis-pdf_export"
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.email = ["<etd@nomejortu.com>"]
14
- spec.description = %q{Export to PDF plugin for the Dradis Framework}
15
- spec.summary = %q{Dradis PDF export plugin}
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 = 'https://dradis.com/support/guides/reporting/pdf_reports.html'
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 = ["lib"]
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 => '/export/pdf'
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
@@ -8,11 +8,11 @@ module Dradis
8
8
 
9
9
  module VERSION
10
10
  MAJOR = 4
11
- MINOR = 9
11
+ MINOR = 11
12
12
  TINY = 0
13
13
  PRE = nil
14
14
 
15
- STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
15
+ STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
16
16
  end
17
17
  end
18
18
  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.9.0
4
+ version: 4.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel Martin
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-05-31 00:00:00.000000000 Z
11
+ date: 2024-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dradis-plugins
@@ -124,11 +124,11 @@ dependencies:
124
124
  version: '0'
125
125
  description: Export to PDF plugin for the Dradis Framework
126
126
  email:
127
- - "<etd@nomejortu.com>"
128
127
  executables: []
129
128
  extensions: []
130
129
  extra_rdoc_files: []
131
130
  files:
131
+ - ".github/pull_request_template.md"
132
132
  - ".gitignore"
133
133
  - CHANGELOG.md
134
134
  - CHANGELOG.template
@@ -138,7 +138,7 @@ files:
138
138
  - README.md
139
139
  - Rakefile
140
140
  - app/assets/images/logo_pdf.jpg
141
- - app/controllers/dradis/plugins/pdf_export/base_controller.rb
141
+ - app/controllers/dradis/plugins/pdf_export/reports_controller.rb
142
142
  - app/views/dradis/plugins/pdf_export/export/_index-content.html.erb
143
143
  - app/views/dradis/plugins/pdf_export/export/_index-tabs.html.erb
144
144
  - config/routes.rb
@@ -150,11 +150,11 @@ files:
150
150
  - lib/dradis/plugins/pdf_export/gem_version.rb
151
151
  - lib/dradis/plugins/pdf_export/version.rb
152
152
  - lib/tasks/thorfile.rb
153
- homepage: http://dradisframework.org
153
+ homepage: https://dradis.com/support/guides/reporting/pdf_reports.html
154
154
  licenses:
155
155
  - GPL-2
156
156
  metadata: {}
157
- post_install_message:
157
+ post_install_message:
158
158
  rdoc_options: []
159
159
  require_paths:
160
160
  - lib
@@ -169,8 +169,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  - !ruby/object:Gem::Version
170
170
  version: '0'
171
171
  requirements: []
172
- rubygems_version: 3.1.4
173
- signing_key:
172
+ rubygems_version: 3.3.7
173
+ signing_key:
174
174
  specification_version: 4
175
175
  summary: Dradis PDF export plugin
176
176
  test_files: []