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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d3764dd3389813cfeea1d0fb09334a492ff475e4498562da517e57b5f9ae5a9a
4
- data.tar.gz: 1117b570fbf65953bc0ddca6df4bd302a8a037c5eafee7719a4a80f98bac521f
3
+ metadata.gz: f5d5bfcc6319ca0dc539fa9fbdabc749a95f83f1ae8a36ffc0d365124c12991f
4
+ data.tar.gz: 6f8283f3439b4b996f23fe385c4896dbd1a102d825738ada3a36b570d7f41d57
5
5
  SHA512:
6
- metadata.gz: 360dd04174d8956a727e360bb35cdf9835c2ee806000c9ec20e9e4cc1983f49a195102d965f01574a16ab65b9a366336bed0d07e01d15c8ad715f7dd450d32e5
7
- data.tar.gz: 13081b1522ba0fa17cba449cfc6549d60f9439db7db468935902bfec00f1f5859cda9acc313177967a08fec7342b6b719bed35f6e21c0b85d5fa401282d0314b
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%>
@@ -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 = 17
11
+ MINOR = 22
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.17.0
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: 2020-06-02 00:00:00.000000000 Z
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.0.1
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.