dradis-csv_export 4.9.0 → 4.10.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 743f4487427a8cecdc54b30ee733b773e8435840a6d6010293a99cafc2818da8
4
- data.tar.gz: 3d046b7aba18e1c49fddb6c967ff37def422ba81ca9d23606df7f0d8ff0108a6
3
+ metadata.gz: 91429305b7c3fe0d931f2a026e32bb9c975a099227c1d75e9a40e95a4ba8b7ba
4
+ data.tar.gz: 980eb9179048359bd69dbfc66a859429f7b8fc8d3a252e08f2120d35f2a33b54
5
5
  SHA512:
6
- metadata.gz: d883d9e692df92a4ce214059d3df98aaea4c056a62d1cec8a774b3e3ffa46eaecf35f5ce441b3150578916bfcd4baafc985cafaa940f3568e848b59b69e1da6f
7
- data.tar.gz: 4731c84c34850df642fce10dcc3a5053796d7bf7591f2a556b91534fef5671052d92d1bca3d82647c49c00f8032bb7374ce731024c6230bed4dfcf566058eebe
6
+ metadata.gz: ef4b94fdc67afecbdecaf308cd5eb2daf5c0bac6a7152acecc8f8c393ecb627636bc3018c5ea6034c9a298d86a2f0a8bc9d9a4258fa39516e5f93dfc1306d513
7
+ data.tar.gz: f7d98b66c1157325b9fa9199dd6f55426b68e08340c01dd10ebafb1280b7d0591dac1e850b5c1551ac2cd76998b826c3d759697694ea64a2f26c6132990d1f4d
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.1.2
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ v4.10.0 (September 2023)
2
+ - Implement handling of exports directly from Tylium
3
+ - Update views for compatibility with Font Awesome 6
4
+ - Update gemspec links
5
+
1
6
  v4.9.0 (June 2023)
2
7
  - Update views for compatibility with Bootstrap 5
3
8
 
@@ -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 = 'http://dradis.com'
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 = 10
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.10.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: 2023-05-31 00:00:00.000000000 Z
11
+ date: 2023-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dradis-plugins
@@ -67,8 +67,7 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  description: This plugin allows you to export your Dradis results in CSV format.
70
- email:
71
- - etd@nomejortu.com
70
+ email:
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,11 +98,11 @@ 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: http://dradis.com
102
102
  licenses:
103
103
  - GPL-2
104
104
  metadata: {}
105
- post_install_message:
105
+ post_install_message:
106
106
  rdoc_options: []
107
107
  require_paths:
108
108
  - lib
@@ -117,8 +117,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  - !ruby/object:Gem::Version
118
118
  version: '0'
119
119
  requirements: []
120
- rubygems_version: 3.3.7
121
- signing_key:
120
+ rubygems_version: 3.1.4
121
+ signing_key:
122
122
  specification_version: 4
123
123
  summary: CSV export plugin for the Dradis Framework.
124
124
  test_files: