dradis-csv_export 4.9.0 → 4.11.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 +4 -4
- data/.github/pull_request_template.md +12 -3
- data/.ruby-version +1 -0
- data/CHANGELOG.md +8 -0
- data/README.md +2 -2
- data/app/controllers/dradis/plugins/csv_export/{base_controller.rb → reports_controller.rb} +4 -2
- data/app/views/dradis/plugins/csv_export/export/_index-content.html.erb +1 -6
- data/app/views/dradis/plugins/csv_export/export/_index-tabs.html.erb +1 -1
- data/config/routes.rb +3 -1
- data/dradis-csv_export.gemspec +2 -4
- data/lib/dradis/plugins/csv_export/engine.rb +2 -4
- data/lib/dradis/plugins/csv_export/gem_version.rb +2 -2
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dbbb417982b5ac8ce925729586ba0d0fda23358318588b9197963f2f0f51563a
|
4
|
+
data.tar.gz: 1ebaeb6a3fce8a16cb1afa361f5e6128a8717d2c321b6f206e3bb60a17860975
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 25a746fce15c7776ed6aa9fea7980a812a016458966d9c79a7ae8c74bb7e6948ad7ee4b7bdda7a72d8ded05377bfd55065660fdfa897dea5493aff98145c0b49
|
7
|
+
data.tar.gz: 1d89463c1f7b5f71bc3abe4f31040bdce74e3b7bac9355ac7f83422a5d5b6fe7c76662a2b02b839d2d2cec8633cfcfd33f02d40ed078d13ef5fe8af6015cc1b4
|
@@ -1,3 +1,5 @@
|
|
1
|
+
Please review [CONTRIBUTING.md](https://github.com/dradis/dradis-ce/blob/develop/CONTRIBUTING.md) and remove this line.
|
2
|
+
|
1
3
|
### Summary
|
2
4
|
|
3
5
|
Provide a general description of the code changes in your pull
|
@@ -6,6 +8,11 @@ these bugs have open GitHub issues, be sure to tag them here as well,
|
|
6
8
|
to keep the conversation linked together.
|
7
9
|
|
8
10
|
|
11
|
+
### Testing Steps
|
12
|
+
|
13
|
+
Provide steps to test functionality, described in detail for someone not familiar with this part of the application / code base
|
14
|
+
|
15
|
+
|
9
16
|
### Other Information
|
10
17
|
|
11
18
|
If there's anything else that's important and relevant to your pull
|
@@ -26,11 +33,13 @@ products, we must have the copyright associated with the entire
|
|
26
33
|
codebase. Any code you create which is merged must be owned by us.
|
27
34
|
That's not us trying to be a jerks, that's just the way it works.
|
28
35
|
|
29
|
-
Please review the [CONTRIBUTING.md](https://github.com/dradis/dradis-ce/blob/master/CONTRIBUTING.md)
|
30
|
-
file for the details.
|
31
|
-
|
32
36
|
You can delete this section, but the following sentence needs to
|
33
37
|
remain in the PR's description:
|
34
38
|
|
35
39
|
> I assign all rights, including copyright, to any future Dradis
|
36
40
|
> work by myself to Security Roots.
|
41
|
+
|
42
|
+
### Check List
|
43
|
+
|
44
|
+
- [ ] Added a CHANGELOG entry
|
45
|
+
- [ ] Added specs
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.1.2
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
v4.11.0 (January 2024)
|
2
|
+
- No changes
|
3
|
+
|
4
|
+
v4.10.0 (September 2023)
|
5
|
+
- Implement handling of exports directly from Tylium
|
6
|
+
- Update views for compatibility with Font Awesome 6
|
7
|
+
- Update gemspec links
|
8
|
+
|
1
9
|
v4.9.0 (June 2023)
|
2
10
|
- Update views for compatibility with Bootstrap 5
|
3
11
|
|
data/README.md
CHANGED
@@ -22,12 +22,12 @@ And restart your service.
|
|
22
22
|
|
23
23
|
## More information
|
24
24
|
|
25
|
-
See the Dradis Framework's [README.md](https://github.com/dradis/
|
25
|
+
See the Dradis Framework's [README.md](https://github.com/dradis/dradis-ce/blob/develop/README.md)
|
26
26
|
|
27
27
|
|
28
28
|
## Contributing
|
29
29
|
|
30
|
-
See the Dradis Framework's [CONTRIBUTING.md](https://github.com/dradis/
|
30
|
+
See the Dradis Framework's [CONTRIBUTING.md](https://github.com/dradis/dradis-ce/blob/develop/CONTRIBUTING.md)
|
31
31
|
|
32
32
|
|
33
33
|
## License
|
@@ -1,8 +1,10 @@
|
|
1
1
|
module Dradis
|
2
2
|
module Plugins
|
3
3
|
module CSVExport
|
4
|
-
class
|
5
|
-
|
4
|
+
class ReportsController < Dradis::Plugins::Export::BaseController
|
5
|
+
skip_before_action :validate_template
|
6
|
+
|
7
|
+
def create
|
6
8
|
exporter = Dradis::Plugins::CSVExport::Exporter.new(export_params)
|
7
9
|
csv = exporter.export
|
8
10
|
|
@@ -1,11 +1,6 @@
|
|
1
1
|
<%= content_tag :div, id: 'plugin-csv_export', class: 'tab-pane fade' do %>
|
2
|
-
|
3
|
-
<%= form_tag project_export_manager_path(current_project), target: '_blank' do %>
|
4
|
-
<%= hidden_field_tag :plugin, :csv_export %>
|
5
|
-
<%= hidden_field_tag :route, :root %>
|
6
|
-
|
2
|
+
<%= form_tag csv_export.project_report_path(current_project) do %>
|
7
3
|
<h4 class="header-underline mb-0">Ready when you are!</h4>
|
8
|
-
|
9
4
|
<div class="mt-4">
|
10
5
|
<%= render partial: 'export/submit_button', locals: { plugin_name: Dradis::Plugins::CSVExport::Engine.plugin_name } %>
|
11
6
|
</div>
|
data/config/routes.rb
CHANGED
data/dradis-csv_export.gemspec
CHANGED
@@ -2,7 +2,6 @@ $:.push File.expand_path('../lib', __FILE__)
|
|
2
2
|
require 'dradis/plugins/csv_export/version'
|
3
3
|
version = Dradis::Plugins::CSVExport::VERSION::STRING
|
4
4
|
|
5
|
-
|
6
5
|
# Describe your gem and declare its dependencies:
|
7
6
|
Gem::Specification.new do |spec|
|
8
7
|
spec.platform = Gem::Platform::RUBY
|
@@ -14,11 +13,10 @@ Gem::Specification.new do |spec|
|
|
14
13
|
spec.license = 'GPL-2'
|
15
14
|
|
16
15
|
spec.authors = ['Daniel Martin']
|
17
|
-
spec.
|
18
|
-
spec.homepage = 'http://dradisframework.org'
|
16
|
+
spec.homepage = 'https://dradis.com/support/guides/reporting/export_csv.html'
|
19
17
|
|
20
18
|
spec.files = `git ls-files`.split($\)
|
21
|
-
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) }
|
22
20
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
23
21
|
|
24
22
|
# By not including Rails as a dependency, we can use the gem with different
|
@@ -6,8 +6,7 @@ module Dradis::Plugins::CSVExport
|
|
6
6
|
provides :export
|
7
7
|
description 'Export results in CSV format'
|
8
8
|
|
9
|
-
|
10
|
-
initializer "dradis-csv_export.inflections" do |app|
|
9
|
+
initializer 'dradis-csv_export.inflections' do |app|
|
11
10
|
ActiveSupport::Inflector.inflections do |inflect|
|
12
11
|
inflect.acronym('CSV')
|
13
12
|
end
|
@@ -15,9 +14,8 @@ module Dradis::Plugins::CSVExport
|
|
15
14
|
|
16
15
|
initializer 'dradis-csv_export.mount_engine' do
|
17
16
|
Rails.application.routes.append do
|
18
|
-
mount Dradis::Plugins::CSVExport::Engine => '/
|
17
|
+
mount Dradis::Plugins::CSVExport::Engine => '/', as: :csv_export
|
19
18
|
end
|
20
19
|
end
|
21
|
-
|
22
20
|
end
|
23
21
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dradis-csv_export
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.11.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: 2024-01-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dradis-plugins
|
@@ -68,7 +68,6 @@ dependencies:
|
|
68
68
|
version: '0'
|
69
69
|
description: This plugin allows you to export your Dradis results in CSV format.
|
70
70
|
email:
|
71
|
-
- etd@nomejortu.com
|
72
71
|
executables: []
|
73
72
|
extensions: []
|
74
73
|
extra_rdoc_files: []
|
@@ -77,6 +76,7 @@ files:
|
|
77
76
|
- ".github/pull_request_template.md"
|
78
77
|
- ".gitignore"
|
79
78
|
- ".rspec"
|
79
|
+
- ".ruby-version"
|
80
80
|
- CHANGELOG.md
|
81
81
|
- CHANGELOG.template
|
82
82
|
- CONTRIBUTING.md
|
@@ -84,7 +84,7 @@ files:
|
|
84
84
|
- LICENSE
|
85
85
|
- README.md
|
86
86
|
- Rakefile
|
87
|
-
- app/controllers/dradis/plugins/csv_export/
|
87
|
+
- app/controllers/dradis/plugins/csv_export/reports_controller.rb
|
88
88
|
- app/views/dradis/plugins/csv_export/export/_index-content.html.erb
|
89
89
|
- app/views/dradis/plugins/csv_export/export/_index-tabs.html.erb
|
90
90
|
- config/routes.rb
|
@@ -98,7 +98,7 @@ files:
|
|
98
98
|
- lib/tasks/thorfile.rb
|
99
99
|
- spec/csv_export_spec.rb
|
100
100
|
- spec/spec_helper.rb
|
101
|
-
homepage:
|
101
|
+
homepage: https://dradis.com/support/guides/reporting/export_csv.html
|
102
102
|
licenses:
|
103
103
|
- GPL-2
|
104
104
|
metadata: {}
|