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 +4 -4
- data/CHANGELOG.md +6 -0
- data/app/controllers/dradis/plugins/pdf_export/base_controller.rb +3 -5
- data/app/views/dradis/plugins/pdf_export/export/_index-content.html.erb +3 -1
- data/dradis-pdf_export.gemspec +2 -2
- data/lib/dradis/plugins/pdf_export/gem_version.rb +1 -1
- metadata +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3d2370ad96f7572882c0afe9bd298e58273240dfbb186a41f88ac2b803574f34
|
4
|
+
data.tar.gz: a96eb1a9875814138fe496c75748262b09002c854583ebf7280b35262393e4aa
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1180145245e64c3864e914aa367486ba17142917717f1311ef600c9e392fd46cff6736cf8e9c8d3b6f1f2df0d515f77c3077347b38ee40a23f4a3f9ac402dd39
|
7
|
+
data.tar.gz: 62bb39c1be206596cb2ef770ab5927d3f15959f28b02109696acc1fb89e0260f039723f474d43f49743e627e63f60d54d3affa76036aafbc93d5bd1bd77eaf92
|
data/CHANGELOG.md
CHANGED
@@ -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(
|
10
|
-
pdf
|
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
|
-
<
|
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%>
|
data/dradis-pdf_export.gemspec
CHANGED
@@ -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', '
|
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', '
|
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
|
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.
|
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:
|
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:
|
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:
|
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:
|
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:
|
96
|
+
version: 12.3.3
|
97
97
|
- !ruby/object:Gem::Dependency
|
98
98
|
name: rspec-rails
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|