dradis-pdf_export 4.6.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: dad402b86232ad24e3308be4d86b85e6cbe282ab0cf45b53bb93447e73ab63be
4
- data.tar.gz: b367e9aae14198f3dab4214ac29adbee6da4b102fd5a49e28f9e1f4e80264f34
3
+ metadata.gz: 3d2370ad96f7572882c0afe9bd298e58273240dfbb186a41f88ac2b803574f34
4
+ data.tar.gz: a96eb1a9875814138fe496c75748262b09002c854583ebf7280b35262393e4aa
5
5
  SHA512:
6
- metadata.gz: 66718c7a37e0ff0061ef46db3fad09504dd7d30248a7859c489a068d8c023f141e92c67b1c462271ab98ada417a27b4c9a56695bfb69dbfe3c79bde1363edbdf
7
- data.tar.gz: 2eba36eb3722f49fae1e961dd11f0d31d71186439abf5da91b09ba8a2c7f06f84b1cab1e3df9e7e5ddced91e833770e96883973cbfa7482bc22d5d303348b73b
6
+ metadata.gz: 1180145245e64c3864e914aa367486ba17142917717f1311ef600c9e392fd46cff6736cf8e9c8d3b6f1f2df0d515f77c3077347b38ee40a23f4a3f9ac402dd39
7
+ data.tar.gz: 62bb39c1be206596cb2ef770ab5927d3f15959f28b02109696acc1fb89e0260f039723f474d43f49743e627e63f60d54d3affa76036aafbc93d5bd1bd77eaf92
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ v4.8.0 (April 2023)
2
+ - Add feature to select published/all records for export
3
+
4
+ v4.7.0 (February 2023)
5
+ - No changes
6
+
1
7
  v4.6.0 (November 2022)
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
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 = 6
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.6.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: 2022-11-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