dradis-projects 4.9.0 → 4.11.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: 1b7835a990963a1839fdd202a226846d24979d5ce56dc9991a0b33b08ca274a2
4
- data.tar.gz: cb67cd3c48680a650e5ce2bff9a38abf23cc78cd6f7f00475b1043bd0a244184
3
+ metadata.gz: 122f2e5016198050c734c2fcd3daff50250c912e327d0a751da9f0be79c684e7
4
+ data.tar.gz: 15c0ed3e0c1c2c5c0d175bbed8b47ae54cdd8beb280a3b464b8bafa34c625e5a
5
5
  SHA512:
6
- metadata.gz: 13d379353149b40944deabe88f5da8222a0174e6619f74748f60dc4e0242deb65e20ae977de65cc4b3cc79285a1fbe91168d624df78c604f39d1c2d0f8abc6e7
7
- data.tar.gz: b9fe36e2bd9e28c9a242033a6bcb289f1058848e8912cc203711aebb20a518d4b8393cf5aebcd8721f2e66f72108d99ff1b7a2be1ce5edda8859e8777cfa35de
6
+ metadata.gz: d1b8dc2d1f586f9c15070ec1e935033ee9772dcea50ae4dc5cde9b96a890c578d060538a3f1114c7a817e62b0cb3cf88ec22ccdce5e10884922afbb962653934
7
+ data.tar.gz: 29ca3d920c202a83810eade83de902287800b7e7530368b18607dfafc947f6386624e6cfefa9b8b5a5df0e573b42019f8a10cbdcb5c4cfe809c286a7612bacc1
@@ -0,0 +1,45 @@
1
+ Please review [CONTRIBUTING.md](https://github.com/dradis/dradis-ce/blob/develop/CONTRIBUTING.md) and remove this line.
2
+
3
+ ### Summary
4
+
5
+ Provide a general description of the code changes in your pull
6
+ request... were there any bugs you had fixed? If so, mention them. If
7
+ these bugs have open GitHub issues, be sure to tag them here as well,
8
+ to keep the conversation linked together.
9
+
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
+
16
+ ### Other Information
17
+
18
+ If there's anything else that's important and relevant to your pull
19
+ request, mention that information here. This could include
20
+ benchmarks, or other information.
21
+
22
+ Thanks for contributing to Dradis!
23
+
24
+
25
+ ### Copyright assignment
26
+
27
+ Collaboration is difficult with commercial closed source but we want
28
+ to keep as much of the OSS ethos as possible available to users
29
+ who want to fix it themselves.
30
+
31
+ In order to unambiguously own and sell Dradis Framework commercial
32
+ products, we must have the copyright associated with the entire
33
+ codebase. Any code you create which is merged must be owned by us.
34
+ That's not us trying to be a jerks, that's just the way it works.
35
+
36
+ You can delete this section, but the following sentence needs to
37
+ remain in the PR's description:
38
+
39
+ > I assign all rights, including copyright, to any future Dradis
40
+ > work by myself to Security Roots.
41
+
42
+ ### Check List
43
+
44
+ - [ ] Added a CHANGELOG entry
45
+ - [ ] Added specs
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 project 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
@@ -11,12 +11,12 @@ This plugin will work with any database supported by Rails' ActiveResource data
11
11
 
12
12
  ## More information
13
13
 
14
- See the Dradis Framework's [README.md](https://github.com/dradis/dradisframework/blob/master/README.md)
14
+ See the Dradis Framework's [README.md](https://github.com/dradis/dradis-ce/blob/develop/README.md)
15
15
 
16
16
 
17
17
  ## Contributing
18
18
 
19
- See the Dradis Framework's [CONTRIBUTING.md](https://github.com/dradis/dradisframework/blob/master/CONTRIBUTING.md)
19
+ See the Dradis Framework's [CONTRIBUTING.md](https://github.com/dradis/dradis-ce/blob/develop/CONTRIBUTING.md)
20
20
 
21
21
 
22
22
  ## License
@@ -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="form-check">
8
- <%= radio_button_tag :route, :package, true, :class => 'form-check-input' %>
9
- <label class="form-check-label" for='route_package'>Package</label>
10
- </div>
9
+ or
11
10
 
12
- <div class="form-check">
13
- <%= radio_button_tag :route, :template, false, :class => 'form-check-input' %>
14
- <label class="form-check-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='#plugin-projects' class='nav-link' data-bs-toggle='tab'>Project</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 = 'https://dradis.com/ce/'
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 = 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-projects
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
- autorequire:
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: bundler
@@ -97,11 +97,11 @@ dependencies:
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
99
  email:
100
- - etd@nomejortu.com
101
100
  executables: []
102
101
  extensions: []
103
102
  extra_rdoc_files: []
104
103
  files:
104
+ - ".github/pull_request_template.md"
105
105
  - ".gitignore"
106
106
  - ".ruby-version"
107
107
  - CHANGELOG.md
@@ -146,11 +146,11 @@ files:
146
146
  - spec/lib/dradis/plugins/projects/upload/v1/template_spec.rb
147
147
  - spec/lib/dradis/plugins/projects/upload/v2/template_spec.rb
148
148
  - spec/lib/dradis/plugins/projects/upload/v4/template_spec.rb
149
- homepage: http://dradisframework.org
149
+ homepage: https://dradis.com/ce/
150
150
  licenses:
151
151
  - GPL-2
152
152
  metadata: {}
153
- post_install_message:
153
+ post_install_message:
154
154
  rdoc_options: []
155
155
  require_paths:
156
156
  - lib
@@ -165,8 +165,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
165
165
  - !ruby/object:Gem::Version
166
166
  version: '0'
167
167
  requirements: []
168
- rubygems_version: 3.1.4
169
- signing_key:
168
+ rubygems_version: 3.3.7
169
+ signing_key:
170
170
  specification_version: 4
171
171
  summary: Project export/upload for the Dradis Framework.
172
172
  test_files: