dradis-calculator_dread 4.14.0 → 4.16.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 +4 -4
- data/CHANGELOG.md +76 -34
- data/app/assets/javascripts/dradis/plugins/calculators/dread/calculator.js.coffee +1 -1
- data/app/assets/javascripts/dradis/plugins/calculators/dread/manifests/application.js +0 -2
- data/app/views/dradis/plugins/calculators/dread/_tools_menu.html.erb +7 -1
- data/app/views/dradis/plugins/calculators/dread/issues/edit.html.erb +15 -0
- data/app/views/layouts/dradis/plugins/calculators/dread/base.html.erb +5 -4
- data/lib/dradis/plugins/calculators/dread/engine.rb +7 -13
- data/lib/dradis/plugins/calculators/dread/gem_version.rb +1 -1
- metadata +3 -3
- /data/app/assets/javascripts/dradis/plugins/calculators/dread/manifests/{tylium.js → hera.js} +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: cd736f8a8acc3de8abc9a959415d16b327735ed4f692f5ba9516c2d4dfacd9a3
|
4
|
+
data.tar.gz: 4f7754f19825abf6707a39277c0e325f5ce270bb9a88e4b7d37f52b6d5039104
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2c7100e8f82051d4a4feeaf1026807b672448deef86012fc377db1ee0f8da846d02d157847480631cc52941a9523f73c6a855b027a5979d914863068ec56e7ef
|
7
|
+
data.tar.gz: d648c5e5491b0d0f6b55d1a6bd91bec8d8c56fac0321f65f27270c870196acac85c68e05fdc6f78639295f3526fc58ebc4d1bc57e2fc3ee16ec981d1750796dd
|
data/CHANGELOG.md
CHANGED
@@ -1,97 +1,139 @@
|
|
1
|
+
v4.16.0 (May 2025)
|
2
|
+
|
3
|
+
- Hera layout compatibility changes
|
4
|
+
- Update turbolinks references to turbo
|
5
|
+
- Improve navigation for contributors
|
6
|
+
|
7
|
+
v4.15.0 (December 2024)
|
8
|
+
|
9
|
+
- No changes
|
10
|
+
|
1
11
|
v4.14.0 (October 2024)
|
2
|
-
|
12
|
+
|
13
|
+
- No changes
|
3
14
|
|
4
15
|
v4.13.0 (July 2024)
|
5
|
-
|
16
|
+
|
17
|
+
- Add ability to enable/disable calculator in the Tools Manager
|
6
18
|
|
7
19
|
v4.12.0 (May 2024)
|
8
|
-
|
20
|
+
|
21
|
+
- Update Dradis links in README
|
9
22
|
|
10
23
|
v4.11.0 (January 2024)
|
11
|
-
|
24
|
+
|
25
|
+
- No changes
|
12
26
|
|
13
27
|
v4.10.0 (September 2023)
|
14
|
-
|
15
|
-
|
28
|
+
|
29
|
+
- Update views for compatibility with Font Awesome 6
|
30
|
+
- Update gemspec links
|
16
31
|
|
17
32
|
v4.9.0 (June 2023)
|
18
|
-
|
33
|
+
|
34
|
+
- Update views for compatibility with Bootstrap 5
|
19
35
|
|
20
36
|
v4.8.0 (April 2023)
|
21
|
-
|
37
|
+
|
38
|
+
- No changes
|
22
39
|
|
23
40
|
v4.7.0 (February 2023)
|
24
|
-
|
41
|
+
|
42
|
+
- No changes
|
25
43
|
|
26
44
|
v4.6.0 (November 2022)
|
27
|
-
|
45
|
+
|
46
|
+
- Show DREAD in Tools menu
|
28
47
|
|
29
48
|
v4.5.0 (August 2022)
|
30
|
-
|
49
|
+
|
50
|
+
- No changes
|
31
51
|
|
32
52
|
v4.4.0 (June 2022)
|
33
|
-
|
53
|
+
|
54
|
+
- No changes
|
34
55
|
|
35
56
|
v4.3.0 (April 2022)
|
36
|
-
|
57
|
+
|
58
|
+
- No changes
|
37
59
|
|
38
60
|
v4.2.0 (February 2022)
|
39
|
-
|
61
|
+
|
62
|
+
- No changes
|
40
63
|
|
41
64
|
v4.1.0 (November 2021)
|
42
|
-
|
65
|
+
|
66
|
+
- Settings: show/hide the calculator in the Issues view
|
43
67
|
|
44
68
|
v4.0.0 (July 2021)
|
45
|
-
|
69
|
+
|
70
|
+
- No changes
|
46
71
|
|
47
72
|
v3.22.0 (April 2021)
|
48
|
-
|
73
|
+
|
74
|
+
- No changes
|
49
75
|
|
50
76
|
v3.21.0 (February 2021)
|
51
|
-
|
77
|
+
|
78
|
+
- Specify exact js and css file name when precompiling assets
|
52
79
|
|
53
80
|
v3.20.0 (December 2020)
|
54
|
-
|
55
|
-
|
81
|
+
|
82
|
+
- Integrate calculator in Issues view
|
83
|
+
- Use Bootstrap gem vs vendored assets
|
56
84
|
|
57
85
|
v3.19.0 (September 2020)
|
58
|
-
|
86
|
+
|
87
|
+
- No changes
|
59
88
|
|
60
89
|
v3.18.0 (July 2020)
|
61
|
-
|
90
|
+
|
91
|
+
- No changes
|
62
92
|
|
63
93
|
v3.17.0 (May 2020)
|
64
|
-
|
94
|
+
|
95
|
+
- No changes
|
65
96
|
|
66
97
|
v3.16.0 (February 2020)
|
67
|
-
|
98
|
+
|
99
|
+
- No changes
|
68
100
|
|
69
101
|
v3.15.0 (November 2019)
|
70
|
-
|
102
|
+
|
103
|
+
- No changes
|
71
104
|
|
72
105
|
v3.14.0 (August 2019)
|
73
|
-
|
106
|
+
|
107
|
+
- No changes
|
74
108
|
|
75
109
|
v3.13.0 (June 2019)
|
76
|
-
|
110
|
+
|
111
|
+
- No changes
|
77
112
|
|
78
113
|
v3.12.0 (March 2019)
|
79
|
-
|
114
|
+
|
115
|
+
- No changes
|
80
116
|
|
81
117
|
v3.11.0 (November 2018)
|
82
|
-
|
118
|
+
|
119
|
+
- No changes
|
83
120
|
|
84
121
|
v3.10.0 (August 2018)
|
85
|
-
|
122
|
+
|
123
|
+
- No changes
|
86
124
|
|
87
125
|
v3.9.0 (January 2018)
|
88
|
-
|
126
|
+
|
127
|
+
- No changes
|
89
128
|
|
90
129
|
v3.8.0 (September 2017)
|
91
|
-
|
130
|
+
|
131
|
+
- No changes
|
92
132
|
|
93
133
|
v3.7.0 (July 2017)
|
94
|
-
|
134
|
+
|
135
|
+
- No changes
|
95
136
|
|
96
137
|
v3.6.0 (March 2017)
|
97
|
-
|
138
|
+
|
139
|
+
- No changes
|
@@ -51,7 +51,7 @@
|
|
51
51
|
input.toFixed(3)
|
52
52
|
|
53
53
|
|
54
|
-
document.addEventListener "
|
54
|
+
document.addEventListener "turbo:load", ->
|
55
55
|
if $('[data-behavior~=dread-buttons]').length
|
56
56
|
DREADCalculator.calculate()
|
57
57
|
$('input[type=radio]').on 'change', DREADCalculator.calculate
|
@@ -1 +1,7 @@
|
|
1
|
-
|
1
|
+
<% if defined?(Dradis::Pro) %>
|
2
|
+
<% unless current_user.role?(:contributor) %>
|
3
|
+
<li>
|
4
|
+
<%= link_to 'Risk Calculators - DREAD', dread_calculator.calculators_dread_path, class: 'dropdown-item', data: { turbo: false } %>
|
5
|
+
</li>
|
6
|
+
<% end %>
|
7
|
+
<% end %>
|
@@ -4,6 +4,21 @@
|
|
4
4
|
<%= render 'issues/sidebar'%>
|
5
5
|
<% end %>
|
6
6
|
|
7
|
+
<ol class="breadcrumb">
|
8
|
+
<li class="breadcrumb-item">
|
9
|
+
<%= link_to current_project.name, main_app.project_path(current_project) %>
|
10
|
+
</li>
|
11
|
+
<li class="breadcrumb-item">
|
12
|
+
<%= link_to 'All issues', main_app.project_issues_path(current_project) %>
|
13
|
+
</li>
|
14
|
+
<li class="breadcrumb-item">
|
15
|
+
<%= link_to @issue.title? ? @issue.title : "Issue ##{@issue.id}", main_app.project_issue_path(current_project, @issue) %>
|
16
|
+
</li>
|
17
|
+
<li class="breadcrumb-item active">
|
18
|
+
DREAD Risk Scoring
|
19
|
+
</li>
|
20
|
+
</ol>
|
21
|
+
|
7
22
|
<div class="content-container">
|
8
23
|
<h4 class="header-underline">Edit DREAD Risk Scoring</h4>
|
9
24
|
<div id="issues_editor">
|
@@ -2,9 +2,10 @@
|
|
2
2
|
<html>
|
3
3
|
<head>
|
4
4
|
<title>DREAD Score Calculator | Dradis Framework</title>
|
5
|
-
<%= stylesheet_link_tag 'dradis/plugins/calculators/dread/manifests/application', media: 'all', 'data-
|
6
|
-
<%= javascript_include_tag 'dradis/plugins/calculators/dread/manifests/application', 'data-
|
5
|
+
<%= stylesheet_link_tag 'dradis/plugins/calculators/dread/manifests/application', media: 'all', 'data-turbo-track' => true %>
|
6
|
+
<%= javascript_include_tag 'dradis/plugins/calculators/dread/manifests/application', 'data-turbo-track' => true %>
|
7
7
|
<%= csrf_meta_tags %>
|
8
|
+
<%= javascript_importmap_tags %>
|
8
9
|
|
9
10
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
10
11
|
</head>
|
@@ -14,8 +15,8 @@
|
|
14
15
|
<a href="javascript:void(0)" class="navbar-brand">DREAD score calculator</a>
|
15
16
|
<ul class="navbar-nav pull-right">
|
16
17
|
<li class="nav-item">
|
17
|
-
<%= link_to main_app.root_path, class: 'nav-link', data: {
|
18
|
-
|
18
|
+
<%= link_to main_app.root_path, class: 'nav-link', data: { turbo: false } do %>
|
19
|
+
Back to the app →
|
19
20
|
<% end %>
|
20
21
|
</li>
|
21
22
|
</ul>
|
@@ -10,7 +10,7 @@ module Dradis::Plugins::Calculators::DREAD
|
|
10
10
|
app.config.assets.precompile += [
|
11
11
|
'dradis/plugins/calculators/dread/manifests/application.css',
|
12
12
|
'dradis/plugins/calculators/dread/manifests/application.js',
|
13
|
-
'dradis/plugins/calculators/dread/manifests/
|
13
|
+
'dradis/plugins/calculators/dread/manifests/hera.js'
|
14
14
|
]
|
15
15
|
end
|
16
16
|
|
@@ -21,20 +21,14 @@ module Dradis::Plugins::Calculators::DREAD
|
|
21
21
|
end
|
22
22
|
|
23
23
|
initializer 'calculator_dread.mount_engine' do
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
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
|
24
|
+
Rails.application.routes.append do
|
25
|
+
# Enabling/disabling integrations calls Rails.application.reload_routes! we need the enable
|
26
|
+
# check inside the block to ensure the routes can be re-enabled without a server restart
|
27
|
+
if Engine.enabled?
|
28
|
+
mount Engine => '/', as: :dread_calculator
|
35
29
|
end
|
36
30
|
end
|
37
|
-
end
|
31
|
+
# end
|
38
32
|
end
|
39
33
|
end
|
40
34
|
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.16.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:
|
11
|
+
date: 2025-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dradis-plugins
|
@@ -70,7 +70,7 @@ files:
|
|
70
70
|
- Rakefile
|
71
71
|
- app/assets/javascripts/dradis/plugins/calculators/dread/calculator.js.coffee
|
72
72
|
- app/assets/javascripts/dradis/plugins/calculators/dread/manifests/application.js
|
73
|
-
- app/assets/javascripts/dradis/plugins/calculators/dread/manifests/
|
73
|
+
- app/assets/javascripts/dradis/plugins/calculators/dread/manifests/hera.js
|
74
74
|
- app/assets/stylesheets/dradis/plugins/calculators/dread/manifests/application.css.scss
|
75
75
|
- app/controllers/dradis/plugins/calculators/dread/base_controller.rb
|
76
76
|
- app/controllers/dradis/plugins/calculators/dread/issues_controller.rb
|
/data/app/assets/javascripts/dradis/plugins/calculators/dread/manifests/{tylium.js → hera.js}
RENAMED
File without changes
|