dradis-csv_export 4.9.0 → 4.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -0
- data/CHANGELOG.md +5 -0
- 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 +10 -10
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 91429305b7c3fe0d931f2a026e32bb9c975a099227c1d75e9a40e95a4ba8b7ba
|
4
|
+
data.tar.gz: 980eb9179048359bd69dbfc66a859429f7b8fc8d3a252e08f2120d35f2a33b54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ef4b94fdc67afecbdecaf308cd5eb2daf5c0bac6a7152acecc8f8c393ecb627636bc3018c5ea6034c9a298d86a2f0a8bc9d9a4258fa39516e5f93dfc1306d513
|
7
|
+
data.tar.gz: f7d98b66c1157325b9fa9199dd6f55426b68e08340c01dd10ebafb1280b7d0591dac1e850b5c1551ac2cd76998b826c3d759697694ea64a2f26c6132990d1f4d
|
data/.ruby-version
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
3.1.2
|
data/CHANGELOG.md
CHANGED
@@ -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 = 'http://dradis.com'
|
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.10.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Martin
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-
|
11
|
+
date: 2023-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dradis-plugins
|
@@ -67,8 +67,7 @@ dependencies:
|
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '0'
|
69
69
|
description: This plugin allows you to export your Dradis results in CSV format.
|
70
|
-
email:
|
71
|
-
- etd@nomejortu.com
|
70
|
+
email:
|
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,11 +98,11 @@ files:
|
|
98
98
|
- lib/tasks/thorfile.rb
|
99
99
|
- spec/csv_export_spec.rb
|
100
100
|
- spec/spec_helper.rb
|
101
|
-
homepage: http://
|
101
|
+
homepage: http://dradis.com
|
102
102
|
licenses:
|
103
103
|
- GPL-2
|
104
104
|
metadata: {}
|
105
|
-
post_install_message:
|
105
|
+
post_install_message:
|
106
106
|
rdoc_options: []
|
107
107
|
require_paths:
|
108
108
|
- lib
|
@@ -117,8 +117,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
117
117
|
- !ruby/object:Gem::Version
|
118
118
|
version: '0'
|
119
119
|
requirements: []
|
120
|
-
rubygems_version: 3.
|
121
|
-
signing_key:
|
120
|
+
rubygems_version: 3.1.4
|
121
|
+
signing_key:
|
122
122
|
specification_version: 4
|
123
123
|
summary: CSV export plugin for the Dradis Framework.
|
124
124
|
test_files:
|