dradis-csv 3.16.0 → 3.21.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 +21 -0
- data/app/views/dradis/plugins/csv/export/_index-content.html.erb +10 -0
- data/app/views/dradis/plugins/csv/export/_index-tabs.html.erb +3 -0
- data/lib/dradis/plugins/csv.rb +7 -0
- data/lib/dradis/plugins/csv/gem_version.rb +1 -1
- data/lib/tasks/thorfile.rb +8 -1
- metadata +8 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 266c672720aef6efdc45f253342d01e1d7680ae6c2e3c47f431b4082c24e2cfe
|
4
|
+
data.tar.gz: 6a5a321c20ee87df7fab24a626f35cc1a8bdc0a2ac7b22df2e793c8aecb15ae2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 9e455e553cf759e20dead17b0d7acc57943f76d8182f8c526949466b07f19f89dec55f0c9f628074d43bd6c4c91f4dfb873f167bd3978dc84df2cc770df2389b
|
7
|
+
data.tar.gz: 7cb8d99417aa53ac8b5668f7af7a0d394f176d7df4ba092f9d8c0eda9b666c6e93af720474a0d9f2d8c7aef02421a78cb17eebda3961bb030edef941fbc53704
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,24 @@
|
|
1
|
+
## Dradis Framework 3.21 (February, 2021) ##
|
2
|
+
|
3
|
+
* No changes.
|
4
|
+
|
5
|
+
## Dradis Framework 3.20 (December, 2020) ##
|
6
|
+
|
7
|
+
* Add views for the export view.
|
8
|
+
* Use NamingService to build export filename.
|
9
|
+
|
10
|
+
## Dradis Framework 3.19 (September, 2020) ##
|
11
|
+
|
12
|
+
* No changes.
|
13
|
+
|
14
|
+
## Dradis Framework 3.18 (July, 2020) ##
|
15
|
+
|
16
|
+
* No changes.
|
17
|
+
|
18
|
+
## Dradis Framework 3.17 (May, 2020) ##
|
19
|
+
|
20
|
+
* No changes.
|
21
|
+
|
1
22
|
## Dradis Framework 3.16 (February, 2020) ##
|
2
23
|
|
3
24
|
* No changes.
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<%= content_tag :div, id: 'plugin-csv', class: 'tab-pane fade' do %>
|
2
|
+
|
3
|
+
<%= form_tag project_export_manager_path(current_project), target: '_blank' do %>
|
4
|
+
<%= hidden_field_tag :plugin, :csv %>
|
5
|
+
<%= hidden_field_tag :route, :root %>
|
6
|
+
|
7
|
+
<h4 class="header-underline mb-0">Ready when you are!</h4>
|
8
|
+
<button id="export-button" class="btn btn-lg btn-primary mt-4">Export</button>
|
9
|
+
<% end %>
|
10
|
+
<% end%>
|
data/lib/dradis/plugins/csv.rb
CHANGED
data/lib/tasks/thorfile.rb
CHANGED
@@ -12,7 +12,14 @@ class CSVTasks < Thor
|
|
12
12
|
exporter = Dradis::Plugins::CSV::Exporter.new(task_options)
|
13
13
|
csv = exporter.export()
|
14
14
|
|
15
|
-
|
15
|
+
date = DateTime.now.strftime("%Y-%m-%d")
|
16
|
+
base_filename = "dradis-report_#{date}.csv"
|
17
|
+
|
18
|
+
filename = NamingService.name_file(
|
19
|
+
original_filename: base_filename,
|
20
|
+
pathname: Rails.root
|
21
|
+
)
|
22
|
+
|
16
23
|
File.open(filename, 'w') { |f| f.write csv }
|
17
24
|
|
18
25
|
logger.info "File written to ./#{ filename }"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dradis-csv
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.21.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:
|
11
|
+
date: 2021-02-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dradis-plugins
|
@@ -84,6 +84,8 @@ files:
|
|
84
84
|
- README.md
|
85
85
|
- Rakefile
|
86
86
|
- app/controllers/dradis/plugins/csv/base_controller.rb
|
87
|
+
- app/views/dradis/plugins/csv/export/_index-content.html.erb
|
88
|
+
- app/views/dradis/plugins/csv/export/_index-tabs.html.erb
|
87
89
|
- config/routes.rb
|
88
90
|
- dradis-csv.gemspec
|
89
91
|
- lib/dradis-csv.rb
|
@@ -99,7 +101,7 @@ homepage: http://dradisframework.org
|
|
99
101
|
licenses:
|
100
102
|
- GPL-2
|
101
103
|
metadata: {}
|
102
|
-
post_install_message:
|
104
|
+
post_install_message:
|
103
105
|
rdoc_options: []
|
104
106
|
require_paths:
|
105
107
|
- lib
|
@@ -114,8 +116,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
116
|
- !ruby/object:Gem::Version
|
115
117
|
version: '0'
|
116
118
|
requirements: []
|
117
|
-
rubygems_version: 3.
|
118
|
-
signing_key:
|
119
|
+
rubygems_version: 3.2.4
|
120
|
+
signing_key:
|
119
121
|
specification_version: 4
|
120
122
|
summary: CSV export plugin for the Dradis Framework.
|
121
123
|
test_files:
|