dradis-pdf_export 4.7.0 → 4.8.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: 3d2370ad96f7572882c0afe9bd298e58273240dfbb186a41f88ac2b803574f34
4
+ data.tar.gz: a96eb1a9875814138fe496c75748262b09002c854583ebf7280b35262393e4aa
5
5
  SHA512:
6
- metadata.gz: 3d54d58f5a1ab951b5cc16dc0e3a6ee1050beb6da31b62d236004f6b0a12e243aeeb44f0fac43b4f7f46b17f40f6dfd8ec705d4144b32f3a00afd87b0d0b0906
7
- data.tar.gz: 5caeaedbf37e3446ca3f220bd4a520a224b418363eb78a85bd229d5d9ce2bde493abc81e9ddc7d59c243e1c55242ddb4ed21a5aa4fd581d066c3e0f8d9e39214
6
+ metadata.gz: 1180145245e64c3864e914aa367486ba17142917717f1311ef600c9e392fd46cff6736cf8e9c8d3b6f1f2df0d515f77c3077347b38ee40a23f4a3f9ac402dd39
7
+ data.tar.gz: 62bb39c1be206596cb2ef770ab5927d3f15959f28b02109696acc1fb89e0260f039723f474d43f49743e627e63f60d54d3affa76036aafbc93d5bd1bd77eaf92
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ v4.8.0 (April 2023)
2
+ - Add feature to select published/all records for export
3
+
1
4
  v4.7.0 (February 2023)
2
5
  - No changes
3
6
 
@@ -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
15
  <% end%>
@@ -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 = 8
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.8.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-04-12 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