dradis-calculator_dread 4.15.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 486a22d8f42911e76ef50bb892c1d0ebae562e471a9005e8efbc5c1aefc86cf9
4
- data.tar.gz: c34eedfb9fdcdb3e86d6683b45a44974f5eb69b05e9d34fdc3b34d0e86df99c3
3
+ metadata.gz: cd736f8a8acc3de8abc9a959415d16b327735ed4f692f5ba9516c2d4dfacd9a3
4
+ data.tar.gz: 4f7754f19825abf6707a39277c0e325f5ce270bb9a88e4b7d37f52b6d5039104
5
5
  SHA512:
6
- metadata.gz: 3fb3ee3b6598bf4e8e78e9142fb7e5b56bc776ebdeffec1b4b155f2bc5824214f4d99c68b524dcaa2462f708914bafc493bf6550398e7de1b48615973e7c5f37
7
- data.tar.gz: a35c827b6918e76350d054b29aaaef0ec7accff1547bd052cdec1113f7005d0e3672db29988d6cd0bc8a68f722b1d0092bef9be2ebed99dae899d0032262c8c1
6
+ metadata.gz: 2c7100e8f82051d4a4feeaf1026807b672448deef86012fc377db1ee0f8da846d02d157847480631cc52941a9523f73c6a855b027a5979d914863068ec56e7ef
7
+ data.tar.gz: d648c5e5491b0d0f6b55d1a6bd91bec8d8c56fac0321f65f27270c870196acac85c68e05fdc6f78639295f3526fc58ebc4d1bc57e2fc3ee16ec981d1750796dd
data/CHANGELOG.md CHANGED
@@ -1,100 +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
+
1
7
  v4.15.0 (December 2024)
2
- - No changes
8
+
9
+ - No changes
3
10
 
4
11
  v4.14.0 (October 2024)
5
- - No changes
12
+
13
+ - No changes
6
14
 
7
15
  v4.13.0 (July 2024)
8
- - Add ability to enable/disable calculator in the Tools Manager
16
+
17
+ - Add ability to enable/disable calculator in the Tools Manager
9
18
 
10
19
  v4.12.0 (May 2024)
11
- - Update Dradis links in README
20
+
21
+ - Update Dradis links in README
12
22
 
13
23
  v4.11.0 (January 2024)
14
- - No changes
24
+
25
+ - No changes
15
26
 
16
27
  v4.10.0 (September 2023)
17
- - Update views for compatibility with Font Awesome 6
18
- - Update gemspec links
28
+
29
+ - Update views for compatibility with Font Awesome 6
30
+ - Update gemspec links
19
31
 
20
32
  v4.9.0 (June 2023)
21
- - Update views for compatibility with Bootstrap 5
33
+
34
+ - Update views for compatibility with Bootstrap 5
22
35
 
23
36
  v4.8.0 (April 2023)
24
- - No changes
37
+
38
+ - No changes
25
39
 
26
40
  v4.7.0 (February 2023)
27
- - No changes
41
+
42
+ - No changes
28
43
 
29
44
  v4.6.0 (November 2022)
30
- - Show DREAD in Tools menu
45
+
46
+ - Show DREAD in Tools menu
31
47
 
32
48
  v4.5.0 (August 2022)
33
- - No changes
49
+
50
+ - No changes
34
51
 
35
52
  v4.4.0 (June 2022)
36
- - No changes
53
+
54
+ - No changes
37
55
 
38
56
  v4.3.0 (April 2022)
39
- - No changes
57
+
58
+ - No changes
40
59
 
41
60
  v4.2.0 (February 2022)
42
- - No changes
61
+
62
+ - No changes
43
63
 
44
64
  v4.1.0 (November 2021)
45
- - Settings: show/hide the calculator in the Issues view
65
+
66
+ - Settings: show/hide the calculator in the Issues view
46
67
 
47
68
  v4.0.0 (July 2021)
48
- - No changes
69
+
70
+ - No changes
49
71
 
50
72
  v3.22.0 (April 2021)
51
- - No changes
73
+
74
+ - No changes
52
75
 
53
76
  v3.21.0 (February 2021)
54
- - Specify exact js and css file name when precompiling assets
77
+
78
+ - Specify exact js and css file name when precompiling assets
55
79
 
56
80
  v3.20.0 (December 2020)
57
- - Integrate calculator in Issues view
58
- - Use Bootstrap gem vs vendored assets
81
+
82
+ - Integrate calculator in Issues view
83
+ - Use Bootstrap gem vs vendored assets
59
84
 
60
85
  v3.19.0 (September 2020)
61
- - No changes
86
+
87
+ - No changes
62
88
 
63
89
  v3.18.0 (July 2020)
64
- - No changes
90
+
91
+ - No changes
65
92
 
66
93
  v3.17.0 (May 2020)
67
- - No changes
94
+
95
+ - No changes
68
96
 
69
97
  v3.16.0 (February 2020)
70
- - No changes
98
+
99
+ - No changes
71
100
 
72
101
  v3.15.0 (November 2019)
73
- - No changes
102
+
103
+ - No changes
74
104
 
75
105
  v3.14.0 (August 2019)
76
- - No changes
106
+
107
+ - No changes
77
108
 
78
109
  v3.13.0 (June 2019)
79
- - No changes
110
+
111
+ - No changes
80
112
 
81
113
  v3.12.0 (March 2019)
82
- - No changes
114
+
115
+ - No changes
83
116
 
84
117
  v3.11.0 (November 2018)
85
- - No changes
118
+
119
+ - No changes
86
120
 
87
121
  v3.10.0 (August 2018)
88
- - No changes
122
+
123
+ - No changes
89
124
 
90
125
  v3.9.0 (January 2018)
91
- - No changes
126
+
127
+ - No changes
92
128
 
93
129
  v3.8.0 (September 2017)
94
- - No changes
130
+
131
+ - No changes
95
132
 
96
133
  v3.7.0 (July 2017)
97
- - No changes
134
+
135
+ - No changes
98
136
 
99
137
  v3.6.0 (March 2017)
100
- - No changes
138
+
139
+ - No changes
@@ -51,7 +51,7 @@
51
51
  input.toFixed(3)
52
52
 
53
53
 
54
- document.addEventListener "turbolinks:load", ->
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,4 +1,2 @@
1
1
  //= require jquery
2
- //= require turbolinks
3
-
4
2
  //= require dradis/plugins/calculators/dread/calculator
@@ -1 +1,7 @@
1
- <%= link_to 'Risk Calculators - DREAD', dread_calculator.calculators_dread_path, class: 'dropdown-item', data: { turbolinks: false } %>
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-turbolinks-track' => true %>
6
- <%= javascript_include_tag 'dradis/plugins/calculators/dread/manifests/application', 'data-turbolinks-track' => true %>
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: { turbolinks: false } do %>
18
- Back to the app &rarr;
18
+ <%= link_to main_app.root_path, class: 'nav-link', data: { turbo: false } do %>
19
+ Back to the app &rarr;
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/tylium.js'
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
- # 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
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
@@ -9,7 +9,7 @@ module Dradis
9
9
 
10
10
  module VERSION
11
11
  MAJOR = 4
12
- MINOR = 15
12
+ MINOR = 16
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.15.0
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: 2024-12-20 00:00:00.000000000 Z
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/tylium.js
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