dradis-calculator_dread 4.11.0 → 4.13.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/README.md +1 -2
- 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 +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 56c87df30f8c0186ffa3a9d34e66c479c4a76c0655f632ebc258cbb718fe4e34
|
4
|
+
data.tar.gz: 0272411af65a9418dd2abcb42b5a04e53d23f4034d962911631bdeaa49520911
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 781ba1cfbba9179f3e2f51fe45a9a7dc23e516e108b7e042cee0fb8304b22f6ec53bdc442364edc83e56090c17d95b47f3b850382895649c860ff6f532685324
|
7
|
+
data.tar.gz: f449d0c7a74e2b7cf11fe9db555628f66e82daa8348408ae20244742fda594463f530effddd0af6ae5bcecbcdb9f55315e5dba842a4c61f901688703576737e9
|
data/CHANGELOG.md
CHANGED
data/README.md
CHANGED
@@ -6,8 +6,7 @@ This simple addon adds a new page under `/calculators/dread` for you to perform
|
|
6
6
|
|
7
7
|
DREAD stands for (D)amage, (R)eproducibility, (E)xploitability, (A)ffected users, (D)iscoverability and is a common risk assessment model [introduced by Microsoft](http://blogs.msdn.com/b/david_leblanc/archive/2007/08/13/dreadful.aspx).
|
8
8
|
|
9
|
-
The add-on requires [Dradis CE](https://
|
10
|
-
|
9
|
+
The add-on requires [Dradis CE](https://dradis.com/ce/) > 3.0, or [Dradis Pro](https://dradis.com/).
|
11
10
|
|
12
11
|
## Install
|
13
12
|
|
@@ -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.13.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: 2024-
|
11
|
+
date: 2024-08-07 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
|
@@ -108,7 +108,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
108
108
|
- !ruby/object:Gem::Version
|
109
109
|
version: '0'
|
110
110
|
requirements: []
|
111
|
-
rubygems_version: 3.
|
111
|
+
rubygems_version: 3.5.6
|
112
112
|
signing_key:
|
113
113
|
specification_version: 4
|
114
114
|
summary: This plugin adds a DREAD score calculator to Dradis.
|