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 +4 -4
- data/CHANGELOG.md +6 -0
- data/app/views/dradis/plugins/calculators/dread/issues/_show-content.html.erb +0 -2
- data/app/views/dradis/plugins/calculators/dread/issues/_show-tabs.html.erb +0 -2
- data/dradis-calculator_dread.gemspec +1 -1
- data/lib/dradis/plugins/calculators/dread/engine.rb +13 -7
- data/lib/dradis/plugins/calculators/dread/gem_version.rb +1 -1
- metadata +9 -9
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 73e06a2ca344087a44b68215e9970ce6e65178e0acf5de9bacdc803b551d5cc3
|
4
|
+
data.tar.gz: 493662e1e74239e24fc54876c629c9e43f38b2c9d978b471b03a928b4a6692e6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c532090081981d340ddef8ff54f166f504940f1e90a7809bc6c9be51dc39163811047b14660948b54d69f3795d7b20094114eef905dc59d3b4972938203eee71
|
7
|
+
data.tar.gz: 2b54c5ee5c71537315091b03558fea60468d58f90d0e559a3bd18bd763e1aa61b97fb0df35a70288ab83e9009370b97673cf4adb6c01a0763870366cb41b3395
|
data/CHANGELOG.md
CHANGED
@@ -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', '~>
|
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
|
-
|
29
|
-
|
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
|
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.
|
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-
|
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: '
|
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: '
|
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.
|
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: []
|