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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 8f3e6cbef230bc3db3e555470c8500004748a62cab77452d2a10059cb3033617
4
- data.tar.gz: 95b2c3f49b9f131ef923d2624fb070e59e290c7d25f3763018a4ff74ca2a1cae
3
+ metadata.gz: 266c672720aef6efdc45f253342d01e1d7680ae6c2e3c47f431b4082c24e2cfe
4
+ data.tar.gz: 6a5a321c20ee87df7fab24a626f35cc1a8bdc0a2ac7b22df2e793c8aecb15ae2
5
5
  SHA512:
6
- metadata.gz: 85e47dad6bd212c644afee4833feb818b6398da4760ebd894cdeff2ed01cc9be0dbffbb1cf8d62a11489c1f76353601b3076b91b1af7082d4f618054a8adb9f1
7
- data.tar.gz: adb747754ffd613358f322c5df108ecd8f8542e2a0bc15263a9ac0fc3c02911e9e6af9ef17c8b4b39f00d4fe52d1e467b01f52cb85c79c2ce5f5003c70d1aa9c
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%>
@@ -0,0 +1,3 @@
1
+ <li class='nav-item'>
2
+ <a href='#csv' class='nav-link' data-toggle='tab' data-target='#plugin-csv'>Export results in CSV format</a>
3
+ </li>
@@ -1,3 +1,10 @@
1
+ module Dradis
2
+ module Plugins
3
+ module CVS
4
+ end
5
+ end
6
+ end
7
+
1
8
  require 'dradis/plugins/csv/engine'
2
9
  require 'dradis/plugins/csv/exporter'
3
10
  require 'dradis/plugins/csv/version'
@@ -8,7 +8,7 @@ module Dradis
8
8
 
9
9
  module VERSION
10
10
  MAJOR = 3
11
- MINOR = 16
11
+ MINOR = 21
12
12
  TINY = 0
13
13
  PRE = nil
14
14
 
@@ -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
- filename = "dradis-report_#{Time.now.to_i}.csv"
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.16.0
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: 2020-02-26 00:00:00.000000000 Z
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.0.1
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: