dradis-csv 3.17.0 → 3.22.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 +5 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f5d5bfcc6319ca0dc539fa9fbdabc749a95f83f1ae8a36ffc0d365124c12991f
|
4
|
+
data.tar.gz: 6f8283f3439b4b996f23fe385c4896dbd1a102d825738ada3a36b570d7f41d57
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b2eecad6b6dcc312b7c635ef6bb327c35e84386a6856a4979f10e2f332664d5fcdf4fb4397e3718fceea703f15d975e3bf0b6f1ac6522d1e8b816020d85fb37
|
7
|
+
data.tar.gz: f9dba261f6dfeb25a85be4c44069c79f139ecee5540a0186024a955fc34c407a24d931abcb998967714f3f57ae8673cf1c05c22716a7428fdce8563a0d97156d
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,24 @@
|
|
1
|
+
## Dradis Framework 3.22 (April, 2021) ##
|
2
|
+
|
3
|
+
* No changes.
|
4
|
+
|
5
|
+
## Dradis Framework 3.21 (February, 2021) ##
|
6
|
+
|
7
|
+
* No changes.
|
8
|
+
|
9
|
+
## Dradis Framework 3.20 (December, 2020) ##
|
10
|
+
|
11
|
+
* Add views for the export view.
|
12
|
+
* Use NamingService to build export filename.
|
13
|
+
|
14
|
+
## Dradis Framework 3.19 (September, 2020) ##
|
15
|
+
|
16
|
+
* No changes.
|
17
|
+
|
18
|
+
## Dradis Framework 3.18 (July, 2020) ##
|
19
|
+
|
20
|
+
* No changes.
|
21
|
+
|
1
22
|
## Dradis Framework 3.17 (May, 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.22.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: 2021-04-02 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
|
@@ -114,7 +116,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
114
116
|
- !ruby/object:Gem::Version
|
115
117
|
version: '0'
|
116
118
|
requirements: []
|
117
|
-
rubygems_version: 3.
|
119
|
+
rubygems_version: 3.1.2
|
118
120
|
signing_key:
|
119
121
|
specification_version: 4
|
120
122
|
summary: CSV export plugin for the Dradis Framework.
|