dradis-calculator_dread 4.12.0 → 4.14.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: ce9322fae5ea0cffd3de7e4053d12b92c37dc7e34ca36daf252b100e8d43713f
4
- data.tar.gz: 4e291c5dd54c22ec0b2bb58857c514361ea7c6c71d4313d2d6cb80b8df6cfc81
3
+ metadata.gz: 73e06a2ca344087a44b68215e9970ce6e65178e0acf5de9bacdc803b551d5cc3
4
+ data.tar.gz: 493662e1e74239e24fc54876c629c9e43f38b2c9d978b471b03a928b4a6692e6
5
5
  SHA512:
6
- metadata.gz: cc0df3c98d9b953ada49e24fd51d86b7f9f1dc2e4b7e73fdb012d8e5502abc86dfcb9b95258f8ab7e1c25b8b478158af4f756fe9361cbc1c4b94778d87f9aa84
7
- data.tar.gz: 9600ebeac7798baf8407a7ccc163ddba025e6f913ad2f49f09b0ffbdb916c5acf72ce303d048652220e3566db7ea2f0c9ded30d949a57f5608fe54e05bd032bd
6
+ metadata.gz: c532090081981d340ddef8ff54f166f504940f1e90a7809bc6c9be51dc39163811047b14660948b54d69f3795d7b20094114eef905dc59d3b4972938203eee71
7
+ data.tar.gz: 2b54c5ee5c71537315091b03558fea60468d58f90d0e559a3bd18bd763e1aa61b97fb0df35a70288ab83e9009370b97673cf4adb6c01a0763870366cb41b3395
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ v4.14.0 (October 2024)
2
+ - No changes
3
+
4
+ v4.13.0 (July 2024)
5
+ - Add ability to enable/disable calculator in the Tools Manager
6
+
1
7
  v4.12.0 (May 2024)
2
8
  - Update Dradis links in README
3
9
 
@@ -1,4 +1,3 @@
1
- <% if Dradis::Plugins::Calculators::DREAD::Engine.settings.show.to_i == 1 %>
2
1
  <div class="tab-pane" id="dread-tab">
3
2
  <div class="inner">
4
3
  <h4 class="header-underline">DREAD Risk Scoring -
@@ -19,4 +18,3 @@
19
18
  </div>
20
19
  </div>
21
20
  </div>
22
- <% end %>
@@ -1,5 +1,3 @@
1
- <% if Dradis::Plugins::Calculators::DREAD::Engine.settings.show.to_i == 1 %>
2
1
  <li class="nav-item">
3
2
  <a href="#dread-tab" data-bs-toggle="tab" class="nav-link"><i class="fa-solid fa-calculator"></i> DREAD</a>
4
3
  </li>
5
- <% end %>
@@ -25,6 +25,6 @@ Gem::Specification.new do |spec|
25
25
  # s.add_dependency 'rails', '~> 4.1.1'
26
26
  spec.add_dependency 'dradis-plugins', '~> 4.0'
27
27
 
28
- spec.add_development_dependency 'bundler', '~> 1.6'
28
+ spec.add_development_dependency 'bundler', '~> 2.0'
29
29
  spec.add_development_dependency 'rake', '~> 10.0'
30
30
  end
@@ -6,10 +6,6 @@ module Dradis::Plugins::Calculators::DREAD
6
6
  provides :addon
7
7
  description 'Risk Calculators: DREAD'
8
8
 
9
- addon_settings :calculator_dread do
10
- settings.default_show = 1
11
- end
12
-
13
9
  initializer 'calculator_dread.asset_precompile_paths' do |app|
14
10
  app.config.assets.precompile += [
15
11
  'dradis/plugins/calculators/dread/manifests/application.css',
@@ -25,10 +21,20 @@ module Dradis::Plugins::Calculators::DREAD
25
21
  end
26
22
 
27
23
  initializer 'calculator_dread.mount_engine' do
28
- Rails.application.routes.append do
29
- mount Dradis::Plugins::Calculators::DREAD::Engine => '/', as: :dread_calculator
24
+ # By default, this engine is loaded into the main app. So, upon app
25
+ # initialization, we first check if the DB is loaded and the Configuration
26
+ # table has been created, before checking if the engine is enabled
27
+ Rails.application.reloader.to_prepare do
28
+ if (ActiveRecord::Base.connection rescue false) && ::Configuration.table_exists?
29
+ Rails.application.routes.append do
30
+ # Enabling/disabling integrations calls Rails.application.reload_routes! we need the enable
31
+ # check inside the block to ensure the routes can be re-enabled without a server restart
32
+ if Engine.enabled?
33
+ mount Engine => '/', as: :dread_calculator
34
+ end
35
+ end
36
+ end
30
37
  end
31
38
  end
32
-
33
39
  end
34
40
  end
@@ -9,7 +9,7 @@ module Dradis
9
9
 
10
10
  module VERSION
11
11
  MAJOR = 4
12
- MINOR = 12
12
+ MINOR = 14
13
13
  TINY = 0
14
14
  PRE = nil
15
15
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dradis-calculator_dread
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.12.0
4
+ version: 4.14.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: 2024-05-07 00:00:00.000000000 Z
11
+ date: 2024-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dradis-plugins
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - "~>"
32
32
  - !ruby/object:Gem::Version
33
- version: '1.6'
33
+ version: '2.0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - "~>"
39
39
  - !ruby/object:Gem::Version
40
- version: '1.6'
40
+ version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -53,7 +53,7 @@ dependencies:
53
53
  - !ruby/object:Gem::Version
54
54
  version: '10.0'
55
55
  description: Display a DREAD score calculator in Dradis Framework.
56
- email:
56
+ email:
57
57
  executables: []
58
58
  extensions: []
59
59
  extra_rdoc_files: []
@@ -93,7 +93,7 @@ homepage: https://dradis.com/support/guides/projects/calculators.html
93
93
  licenses:
94
94
  - GPL-2
95
95
  metadata: {}
96
- post_install_message:
96
+ post_install_message:
97
97
  rdoc_options: []
98
98
  require_paths:
99
99
  - lib
@@ -108,8 +108,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  - !ruby/object:Gem::Version
109
109
  version: '0'
110
110
  requirements: []
111
- rubygems_version: 3.1.4
112
- signing_key:
111
+ rubygems_version: 3.5.6
112
+ signing_key:
113
113
  specification_version: 4
114
114
  summary: This plugin adds a DREAD score calculator to Dradis.
115
115
  test_files: []