dradis-projects 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: f2bcef2954732f6a107819be6462b9b375503a822559a231090edd01f514862c
4
- data.tar.gz: 1e9018effd346297a8903ac29a4c0bd6ee4041075c32acc3e7f8757da0d2ad50
3
+ metadata.gz: cb8e2e148e6e2d0ad9e0403e947d24d0d2034ec28104da116902eda72762ea5a
4
+ data.tar.gz: cfdc69afe3e175e7818fbe90d4c8d3063c9cfa34ddbf4710a67089a70dfdcf55
5
5
  SHA512:
6
- metadata.gz: 1066f56c7938bb4b8d3f8d4cb2c3f38118a579d7a33a5b4e0b012df413887058863190fd6e5e324567d463ce2a894ddb5a5a8cfb17de15f759b75116f83bf107
7
- data.tar.gz: 061dd18d56a3e4a1b3c1d98d0a1df0d703afd974f95018e377b3c7c2d920f9791a5c51f7467bcb3c62051d3eb10c69146fdfd7c639a3e0c4191c20b61d4553b2
6
+ metadata.gz: ccdf52f09c54ab6148676b31565f89d7a5c94ab3f582d94e6c8e0764b708ada278d615c6b2988a8173bbce88748834f622217b00c8aae22bc1100fc184d3ef05
7
+ data.tar.gz: 10bba95968382a9c61a8328be902af03f6816daebb7540149414566605e82e3bbe8af18d8571e08e1bda83cdfcf482d60ebf918b84afdd3433c9f68c1f7fe723
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ v4.10.0 (September 2023)
2
+ - Implement handling of project 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 exporting and uploading states
3
11
  - Update export button copy
@@ -1,14 +1,15 @@
1
1
  module Dradis::Plugins::Projects
2
2
  class PackagesController < Dradis::Plugins::Export::BaseController
3
3
  skip_before_action :validate_scope
4
+ skip_before_action :validate_template
4
5
 
5
- def show
6
+ def create
6
7
  filename = Rails.root.join('tmp', 'dradis-export.zip')
7
8
 
8
- options = export_params.merge(
9
+ options = export_params.merge({
9
10
  plugin: Dradis::Plugins::Projects,
10
11
  scope: :all
11
- )
12
+ })
12
13
  exporter = Dradis::Plugins::Projects::Export::Package.new(options)
13
14
  template = exporter.export(filename: filename)
14
15
 
@@ -1,8 +1,9 @@
1
1
  module Dradis::Plugins::Projects
2
2
  class TemplatesController < Dradis::Plugins::Export::BaseController
3
3
  skip_before_action :validate_scope
4
+ skip_before_action :validate_template
4
5
 
5
- def show
6
+ def create
6
7
  # this allows us to have different exporters in different editions
7
8
  exporter_class = Rails.application.config.dradis.projects.template_exporter
8
9
 
@@ -1,19 +1,15 @@
1
1
  <%= content_tag :div, id: 'plugin-projects', class: 'tab-pane fade' do %>
2
- <%= form_tag project_export_manager_path(current_project), target: '_blank' do %>
3
- <%= hidden_field_tag :plugin, 'projects' %>
2
+ <h4 class="header-underline mb-0">Ready when you are!</h4>
4
3
 
5
- <h4 class="header-underline">Choose an export option</h4>
4
+ <div class="mt-4">
5
+ <%= form_tag dradis_projects.project_package_path(current_project), class: 'd-inline' do %>
6
+ <button id="export-button" class="btn btn-lg btn-primary">Export All as Package</button>
7
+ <% end %>
6
8
 
7
- <div class="custom-control custom-radio">
8
- <%= radio_button_tag :route, :package, true, :class => 'custom-control-input' %>
9
- <label class="custom-control-label" for='route_package'>Package</label>
10
- </div>
9
+ or
11
10
 
12
- <div class="custom-control custom-radio">
13
- <%= radio_button_tag :route, :template, false, :class => 'custom-control-input' %>
14
- <label class="custom-control-label" for='route_template'>Template</label>
15
- </div>
16
-
17
- <button id="export-button" class="btn btn-lg btn-primary mt-4">Export All Records</button>
18
- <% end %>
11
+ <%= form_tag dradis_projects.project_template_path(current_project), class: 'd-inline' do %>
12
+ <button id="export-button" class="btn btn-lg">Export All as Template</button>
13
+ <% end %>
14
+ </div>
19
15
  <% end%>
@@ -1,3 +1,3 @@
1
1
  <li class='nav-item'>
2
- <a href='#projects' class='nav-link' data-toggle='tab' data-target='#plugin-projects'>Save and restore project information</a>
2
+ <a href='#plugin-projects' class='nav-link' data-bs-toggle='tab'><i class="fa-solid fa-file-zipper fa-fw"></i>Project</a>
3
3
  </li>
data/config/routes.rb CHANGED
@@ -1,4 +1,6 @@
1
1
  Dradis::Plugins::Projects::Engine.routes.draw do
2
- resource :package, only: [:show]
3
- resource :template, only: [:show]
2
+ resources :projects, only: [] do
3
+ resource :package, only: [:create], path: '/export/projects/package'
4
+ resource :template, only: [:create], path: '/export/projects/template'
5
+ end
4
6
  end
@@ -4,7 +4,7 @@ require 'dradis/plugins/projects/version'
4
4
 
5
5
  # Describe your gem and declare its dependencies:
6
6
  Gem::Specification.new do |spec|
7
- spec.platform = Gem::Platform::RUBY
7
+ spec.platform = Gem::Platform::RUBY
8
8
  spec.name = 'dradis-projects'
9
9
  spec.version = Dradis::Plugins::Projects::VERSION::STRING
10
10
  spec.summary = 'Project export/upload for the Dradis Framework.'
@@ -13,11 +13,10 @@ Gem::Specification.new do |spec|
13
13
  spec.license = 'GPL-2'
14
14
 
15
15
  spec.authors = ['Daniel Martin']
16
- spec.email = ['etd@nomejortu.com']
17
- spec.homepage = 'http://dradisframework.org'
16
+ spec.homepage = 'http://dradis.com'
18
17
 
19
18
  spec.files = `git ls-files`.split($\)
20
- 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) }
21
20
  spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
22
21
 
23
22
  spec.add_development_dependency 'bundler', '~> 2.2'
@@ -12,17 +12,16 @@ module Dradis
12
12
 
13
13
  initializer 'dradis-projects.mount_engine' do
14
14
  Rails.application.routes.append do
15
- mount Dradis::Plugins::Projects::Engine => '/export/projects'
15
+ mount Dradis::Plugins::Projects::Engine => '/', as: :dradis_projects
16
16
  end
17
17
  end
18
18
 
19
- initializer "dradis-projects.set_configs" do |app|
19
+ initializer 'dradis-projects.set_configs' do |app|
20
20
  options = app.config.dradis.projects
21
21
  options.template_exporter ||= Dradis::Plugins::Projects::Export::V4::Template
22
22
  options.template_uploader ||= Dradis::Plugins::Projects::Upload::V4::Template::Importer
23
23
  end
24
24
 
25
-
26
25
  # Because this plugin provides two export modules, we have to overwrite
27
26
  # the default .uploaders() method.
28
27
  #
@@ -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-projects
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
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: bundler
@@ -96,8 +96,7 @@ dependencies:
96
96
  version: '0'
97
97
  description: This plugin allows you to dump the contents of the repo into a zip archive
98
98
  and restore the state from one of them.
99
- email:
100
- - etd@nomejortu.com
99
+ email:
101
100
  executables: []
102
101
  extensions: []
103
102
  extra_rdoc_files: []
@@ -146,7 +145,7 @@ files:
146
145
  - spec/lib/dradis/plugins/projects/upload/v1/template_spec.rb
147
146
  - spec/lib/dradis/plugins/projects/upload/v2/template_spec.rb
148
147
  - spec/lib/dradis/plugins/projects/upload/v4/template_spec.rb
149
- homepage: http://dradisframework.org
148
+ homepage: http://dradis.com
150
149
  licenses:
151
150
  - GPL-2
152
151
  metadata: {}