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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8038a72dd686125067e6c7b52a951928d7e87a217829e70542af61c31272f118
4
- data.tar.gz: 75c645a657599ca06fa33769db884b79681297276c99791afbe11dc33b56f572
3
+ metadata.gz: b826e812e7722e27c4574e5e9afea92b1f0c2a6fcf25ac9df8e6e3c7759bb0ec
4
+ data.tar.gz: be5eb1752511c0e36cc12470beb0a7d49651cebeb5c96e51ea54e070a9921b97
5
5
  SHA512:
6
- metadata.gz: 3d54d58f5a1ab951b5cc16dc0e3a6ee1050beb6da31b62d236004f6b0a12e243aeeb44f0fac43b4f7f46b17f40f6dfd8ec705d4144b32f3a00afd87b0d0b0906
7
- data.tar.gz: 5caeaedbf37e3446ca3f220bd4a520a224b418363eb78a85bd229d5d9ce2bde493abc81e9ddc7d59c243e1c55242ddb4ed21a5aa4fd581d066c3e0f8d9e39214
6
+ metadata.gz: 404c5cc91c92ae67166bf8281150ca9ef16d1315191215851b4148bbb4f6e75c7b6556b58ccc011e3652aa996cbdd54f929085b0505cc04210f1bd2814267421
7
+ data.tar.gz: 5256856d85c93c4f4f2cd08c6948796d204efeb8a903ed0dbd18d1d2ab13ed0f43dea54d41bd0900d075d1c2e319cb82f7049396402c53dfc87a734e1458f5f1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ v4.9.0 (June 2023)
2
+ - Update views for compatibility with Bootstrap 5
3
+
4
+ v4.8.0 (April 2023)
5
+ - Add feature to select published/all records for export
6
+
1
7
  v4.7.0 (February 2023)
2
8
  - No changes
3
9
 
@@ -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(export_options)
10
- pdf = exporter.export
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
- <button id="export-button" class="btn btn-lg btn-primary mt-4">Export</button>
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 %>
@@ -1,3 +1,3 @@
1
1
  <li class='nav-item'>
2
- <a href='#pdf_export' class='nav-link' data-toggle='tab' data-target='#plugin-pdf_export'><i class="fa fa-file-pdf-o"></i> Custom PDF reports</a>
2
+ <a href='#plugin-pdf_export' class='nav-link' data-bs-toggle='tab'>Custom PDF reports</a>
3
3
  </li>
@@ -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', '~> 4.0'
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', '~> 10.0'
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
@@ -8,7 +8,7 @@ module Dradis
8
8
 
9
9
  module VERSION
10
10
  MAJOR = 4
11
- MINOR = 7
11
+ MINOR = 9
12
12
  TINY = 0
13
13
  PRE = nil
14
14
 
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.7.0
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-02-20 00:00:00.000000000 Z
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: '4.0'
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: '4.0'
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: '10.0'
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: '10.0'
96
+ version: 12.3.3
97
97
  - !ruby/object:Gem::Dependency
98
98
  name: rspec-rails
99
99
  requirement: !ruby/object:Gem::Requirement