dradis-pdf_export 4.9.0 → 4.10.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b826e812e7722e27c4574e5e9afea92b1f0c2a6fcf25ac9df8e6e3c7759bb0ec
4
- data.tar.gz: be5eb1752511c0e36cc12470beb0a7d49651cebeb5c96e51ea54e070a9921b97
3
+ metadata.gz: 5756d2c5474b05f4f93dea3b4499f2e85609893e5106b03179bb6f571282b205
4
+ data.tar.gz: a55ce93e2a3621d67ad4e2688b7820576340c324c34c570aaedbbafcc97d9e69
5
5
  SHA512:
6
- metadata.gz: 404c5cc91c92ae67166bf8281150ca9ef16d1315191215851b4148bbb4f6e75c7b6556b58ccc011e3652aa996cbdd54f929085b0505cc04210f1bd2814267421
7
- data.tar.gz: 5256856d85c93c4f4f2cd08c6948796d204efeb8a903ed0dbd18d1d2ab13ed0f43dea54d41bd0900d075d1c2e319cb82f7049396402c53dfc87a734e1458f5f1
6
+ metadata.gz: d5faca9cf010f891261f758bbe72648c40e3524cda094789124d1aaac2fb1891537f7b7ceb2b79f2112d2ca33037a15f05f88a342ae654d01dba4534fa482063
7
+ data.tar.gz: e0bbcc63f701a6d6e03c7009b6b62fee0acf63fbd0ebcc4e7c6c37b984d04851ac77ae74db5906ac758673953e620ad2bf74b6d5e0b405684992cf627c281670
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,9 @@
1
- v4.9.0 (June 2023)
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)
2
7
  - Update views for compatibility with Bootstrap 5
3
8
 
4
9
  v4.8.0 (April 2023)
@@ -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 = '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 = ["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 = 10
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.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-05-31 00:00:00.000000000 Z
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/base_controller.rb
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://dradisframework.org
152
+ homepage: http://dradis.com
154
153
  licenses:
155
154
  - GPL-2
156
155
  metadata: {}