dradis-csv_export 4.8.0 → 4.10.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: 96914189daf78345765705f570ff844837be3071cdf8e2e9786159513e6463d7
4
- data.tar.gz: e4ba7d81dd7971772180afa5bc94d19fb8a0fad510573aa9137df72814d9dbd5
3
+ metadata.gz: 91429305b7c3fe0d931f2a026e32bb9c975a099227c1d75e9a40e95a4ba8b7ba
4
+ data.tar.gz: 980eb9179048359bd69dbfc66a859429f7b8fc8d3a252e08f2120d35f2a33b54
5
5
  SHA512:
6
- metadata.gz: 4637134c8535cb83f149f87eeae2903b3cd32a4621c5b69d9508430459f13a1f8ce8823fd15603d556325ff35f4c5bce0e462823803c14a245accf56e1018064
7
- data.tar.gz: 0fa5984ca36ecaa7b41b9a929a3f62721a6cf46a232478f09cb4737e2b5ecf2818fc7d121258b1663f2ff3ffb65487e958bf32ce8847b6b478cac1817eb72680
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,11 @@
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
+
6
+ v4.9.0 (June 2023)
7
+ - Update views for compatibility with Bootstrap 5
8
+
1
9
  v4.8.0 (April 2023)
2
10
  - Add feature to select published/all records for export
3
11
 
@@ -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='#csv_export' class='nav-link' data-toggle='tab' data-target='#plugin-csv_export'>Export results in CSV format</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 = 8
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.8.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-04-12 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: