dradis-csv_export 4.9.0 → 4.11.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: 743f4487427a8cecdc54b30ee733b773e8435840a6d6010293a99cafc2818da8
4
- data.tar.gz: 3d046b7aba18e1c49fddb6c967ff37def422ba81ca9d23606df7f0d8ff0108a6
3
+ metadata.gz: dbbb417982b5ac8ce925729586ba0d0fda23358318588b9197963f2f0f51563a
4
+ data.tar.gz: 1ebaeb6a3fce8a16cb1afa361f5e6128a8717d2c321b6f206e3bb60a17860975
5
5
  SHA512:
6
- metadata.gz: d883d9e692df92a4ce214059d3df98aaea4c056a62d1cec8a774b3e3ffa46eaecf35f5ce441b3150578916bfcd4baafc985cafaa940f3568e848b59b69e1da6f
7
- data.tar.gz: 4731c84c34850df642fce10dcc3a5053796d7bf7591f2a556b91534fef5671052d92d1bca3d82647c49c00f8032bb7374ce731024c6230bed4dfcf566058eebe
6
+ metadata.gz: 25a746fce15c7776ed6aa9fea7980a812a016458966d9c79a7ae8c74bb7e6948ad7ee4b7bdda7a72d8ded05377bfd55065660fdfa897dea5493aff98145c0b49
7
+ data.tar.gz: 1d89463c1f7b5f71bc3abe4f31040bdce74e3b7bac9355ac7f83422a5d5b6fe7c76662a2b02b839d2d2cec8633cfcfd33f02d40ed078d13ef5fe8af6015cc1b4
@@ -1,3 +1,5 @@
1
+ Please review [CONTRIBUTING.md](https://github.com/dradis/dradis-ce/blob/develop/CONTRIBUTING.md) and remove this line.
2
+
1
3
  ### Summary
2
4
 
3
5
  Provide a general description of the code changes in your pull
@@ -6,6 +8,11 @@ these bugs have open GitHub issues, be sure to tag them here as well,
6
8
  to keep the conversation linked together.
7
9
 
8
10
 
11
+ ### Testing Steps
12
+
13
+ Provide steps to test functionality, described in detail for someone not familiar with this part of the application / code base
14
+
15
+
9
16
  ### Other Information
10
17
 
11
18
  If there's anything else that's important and relevant to your pull
@@ -26,11 +33,13 @@ products, we must have the copyright associated with the entire
26
33
  codebase. Any code you create which is merged must be owned by us.
27
34
  That's not us trying to be a jerks, that's just the way it works.
28
35
 
29
- Please review the [CONTRIBUTING.md](https://github.com/dradis/dradis-ce/blob/master/CONTRIBUTING.md)
30
- file for the details.
31
-
32
36
  You can delete this section, but the following sentence needs to
33
37
  remain in the PR's description:
34
38
 
35
39
  > I assign all rights, including copyright, to any future Dradis
36
40
  > work by myself to Security Roots.
41
+
42
+ ### Check List
43
+
44
+ - [ ] Added a CHANGELOG entry
45
+ - [ ] Added specs
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.1.2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ v4.11.0 (January 2024)
2
+ - No changes
3
+
4
+ v4.10.0 (September 2023)
5
+ - Implement handling of exports directly from Tylium
6
+ - Update views for compatibility with Font Awesome 6
7
+ - Update gemspec links
8
+
1
9
  v4.9.0 (June 2023)
2
10
  - Update views for compatibility with Bootstrap 5
3
11
 
data/README.md CHANGED
@@ -22,12 +22,12 @@ And restart your service.
22
22
 
23
23
  ## More information
24
24
 
25
- See the Dradis Framework's [README.md](https://github.com/dradis/dradisframework/blob/master/README.md)
25
+ See the Dradis Framework's [README.md](https://github.com/dradis/dradis-ce/blob/develop/README.md)
26
26
 
27
27
 
28
28
  ## Contributing
29
29
 
30
- See the Dradis Framework's [CONTRIBUTING.md](https://github.com/dradis/dradisframework/blob/master/CONTRIBUTING.md)
30
+ See the Dradis Framework's [CONTRIBUTING.md](https://github.com/dradis/dradis-ce/blob/develop/CONTRIBUTING.md)
31
31
 
32
32
 
33
33
  ## License
@@ -1,8 +1,10 @@
1
1
  module Dradis
2
2
  module Plugins
3
3
  module CSVExport
4
- class BaseController < Dradis::Plugins::Export::BaseController
5
- def index
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>
@@ -1,3 +1,3 @@
1
1
  <li class='nav-item'>
2
- <a href='#plugin-csv_export' class='nav-link' data-bs-toggle='tab'>CSV</a>
2
+ <a href='#plugin-csv_export' class='nav-link' data-bs-toggle='tab'><i class="fa-solid fa-file-csv fa-fw"></i>CSV</a>
3
3
  </li>
data/config/routes.rb CHANGED
@@ -1,3 +1,5 @@
1
1
  Dradis::Plugins::CSVExport::Engine.routes.draw do
2
- root to: 'base#index'
2
+ resources :projects, only: [] do
3
+ resource :report, only: [:create], path: '/export/csv/reports'
4
+ end
3
5
  end
@@ -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.email = ['etd@nomejortu.com']
18
- spec.homepage = 'http://dradisframework.org'
16
+ spec.homepage = 'https://dradis.com/support/guides/reporting/export_csv.html'
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 => '/export/csv'
17
+ mount Dradis::Plugins::CSVExport::Engine => '/', as: :csv_export
19
18
  end
20
19
  end
21
-
22
20
  end
23
21
  end
@@ -8,11 +8,11 @@ module Dradis
8
8
 
9
9
  module VERSION
10
10
  MAJOR = 4
11
- MINOR = 9
11
+ MINOR = 11
12
12
  TINY = 0
13
13
  PRE = nil
14
14
 
15
- STRING = [MAJOR, MINOR, TINY, PRE].compact.join(".")
15
+ STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
16
16
  end
17
17
  end
18
18
  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.9.0
4
+ version: 4.11.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: 2023-05-31 00:00:00.000000000 Z
11
+ date: 2024-01-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dradis-plugins
@@ -68,7 +68,6 @@ dependencies:
68
68
  version: '0'
69
69
  description: This plugin allows you to export your Dradis results in CSV format.
70
70
  email:
71
- - etd@nomejortu.com
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/base_controller.rb
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,7 +98,7 @@ files:
98
98
  - lib/tasks/thorfile.rb
99
99
  - spec/csv_export_spec.rb
100
100
  - spec/spec_helper.rb
101
- homepage: http://dradisframework.org
101
+ homepage: https://dradis.com/support/guides/reporting/export_csv.html
102
102
  licenses:
103
103
  - GPL-2
104
104
  metadata: {}