dradis-calculator_cvss 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: 7e67ffa3e5bb684be2dde584761663436af37c178aede04c7a988fe5ec64587b
4
- data.tar.gz: 0f5d543c45ccf0a4b0b5fbf56ba974e3869e5c29f86c0e9549efd30bd520d09e
3
+ metadata.gz: 7420c952000fe3b5911584ff2a5a27f1f08fcc3dd3d13ba0ab6885dab3c8c8ba
4
+ data.tar.gz: 2d88cdeafd8924b0787ab9869b0786a278700f2b1a3516a171fa15e732d82b07
5
5
  SHA512:
6
- metadata.gz: 060d4ef4a0faacba6ef4a22a95a256792c59ffaa80a0254013e0f8ce53c2236c383707abd0418ccd270555eb2d195749cf7d4654130d4dfaab5db95d751f5318
7
- data.tar.gz: 9f2c12f67e3ab107bc80613db98583f4a82eaf5b933c462d4b6db4882f9077f1e350e8edb5592d9a00afd6ce2729f37abd7ff6358a040ff80bddfe9f17d4e0e4
6
+ metadata.gz: 8a0250c568f04aa98673bdbe418b28374afd18b2c4e3bdd24f7b3248b49953962626b198885909f4ffeaaed619063abe5718e5f1e8dd7b32a07547c8cf5852fb
7
+ data.tar.gz: ffb9c324d3a2181dbbc50bae4b3f341989b93eb1fda265f53a8843f5b8cc6a043657cead566eb71aadee3f0f9f3219fd3ebda3eb36c538f7361e37cb2230fc64
data/CHANGELOG.md CHANGED
@@ -1,101 +1,140 @@
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
- - Add CVSS v4 support
20
+
21
+ - Add CVSS v4 support
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 gemspec links
18
- - Update views for compatibility with Font Awesome 6
28
+
29
+ - Update gemspec links
30
+ - Update views for compatibility with Font Awesome 6
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 CVSS in Tools menu
45
+
46
+ - Show CVSS 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
46
- - Toggle between CVSSv3.0 and CVSSv3.1
65
+
66
+ - Settings: show/hide the calculator in the Issues view
67
+ - Toggle between CVSSv3.0 and CVSSv3.1
47
68
 
48
69
  v4.0.0 (July 2021)
49
- - No changes
70
+
71
+ - No changes
50
72
 
51
73
  v3.22.0 (April 2021)
52
- - Update css manifest to use font-awesome assets from vendor files (rather than old gem)
74
+
75
+ - Update css manifest to use font-awesome assets from vendor files (rather than old gem)
53
76
 
54
77
  v3.21.0 (February 2021)
55
- - Specify exact js and css file name when precompiling assets
78
+
79
+ - Specify exact js and css file name when precompiling assets
56
80
 
57
81
  v3.20.0 (December 2020)
58
- - Use Bootstrap gem vs vendored assets
82
+
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
- - Update REGEX reference for compatibility
94
+
95
+ - Update REGEX reference for compatibility
68
96
 
69
97
  v3.16.0 (February 2020)
70
- - Update for compatibility with Tylium
98
+
99
+ - Update for compatibility with Tylium
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
- - Allow empty 'CVSSv3.Vector' field to trigger the per-issue calculator.
110
+
111
+ - Allow empty 'CVSSv3.Vector' field to trigger the per-issue calculator.
80
112
 
81
113
  v3.12.0 (March 2019)
82
- - Present a per-issue CVSSv3 calculator
114
+
115
+ - Present a per-issue CVSSv3 calculator
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
- - Fix vertical button selection behavior
122
+
123
+ - Fix vertical button selection behavior
89
124
 
90
125
  v3.9.0 (January 2018)
91
- - Add metric-specific fields to calculator output (v3.8.1)
126
+
127
+ - Add metric-specific fields to calculator output (v3.8.1)
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
- - Add mouseover details to each button
98
- - Add "High" as an option for Exploit Code Maturity (E)
134
+
135
+ - Add mouseover details to each button
136
+ - Add "High" as an option for Exploit Code Maturity (E)
99
137
 
100
138
  v3.6.0 (March 2017)
101
- - No changes
139
+
140
+ - No changes
@@ -1,4 +1,4 @@
1
- $(document).on('turbolinks:load', function () {
1
+ $(document).on('turbo:load', function () {
2
2
  if ($('[data-behavior~=cvss-version]').length) {
3
3
  function handleVersionSelection() {
4
4
  var selectedValue = $('[data-behavior~=cvss-version]').val();
@@ -1,7 +1,6 @@
1
1
  //= require jquery3
2
2
  //= require popper
3
3
  //= require bootstrap
4
- //= require turbolinks
5
4
 
6
5
  //= require dradis/plugins/calculators/cvss/v3/vendor/cvsscalc30
7
6
  //= require dradis/plugins/calculators/cvss/v3/vendor/cvsscalc30_helptext
@@ -1,6 +1,5 @@
1
1
  @import '_bootstrap';
2
2
  @import 'font-awesome';
3
3
 
4
- @import 'tylium/variables';
5
- @import 'shared/mixins';
6
- @import 'tylium/modules/buttons';
4
+ @import 'hera/variables';
5
+ @import 'hera/modules/buttons';
@@ -0,0 +1 @@
1
+ @import 'hera/variables';
@@ -1 +1,7 @@
1
- <%= link_to 'Risk Calculators - CVSS', cvss_calculator.calculators_cvss_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 - CVSS', cvss_calculator.calculators_cvss_path, class: 'dropdown-item', data: { turbolinks: false } %>
5
+ </li>
6
+ <% end %>
7
+ <% end %>
@@ -1,6 +1,6 @@
1
1
  <div class="d-flex align-items-center justify-content-end gap-2 small">
2
2
  <label class="form-label m-0" for="cvss-version">Version:</label>
3
- <select id="cvss-version" class="form-select" aria-label="cvss version select" data-behavior="cvss-version">
3
+ <select id="cvss-version" class="form-select" aria-label="cvss version select" data-behavior="cvss-version" data-combobox-config="no-combobox">
4
4
  <option value="40" <%= 'selected' if @cvss_version == '4.0' %>>v4.0</option>
5
5
  <option value="31" <%= 'selected' if @cvss_version == '3.1' %>>v3.1</option>
6
6
  <option value="30" <%= 'selected' if @cvss_version == '3.0' %>>v3.0</option>
@@ -8,7 +8,7 @@
8
8
 
9
9
  <%= hidden_field_tag :cr, @cvss3_vector['CR'] %>
10
10
 
11
- <div class="btn-group mb-4t>
11
+ <div class="btn-group mb-4">
12
12
  <button type="button" class="btn <%= 'active btn-primary' if @cvss3_vector['CR'] == 'X' %>" name="cr" value="X" data-label="Not Defined" data-cvss="CR_X_Label">N/D <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
13
13
 
14
14
  <button type="button" class="btn <%= 'active btn-primary' if @cvss3_vector['CR'] == 'L' %>" name="cr" value="L" data-label="Low" data-cvss="CR_L_Label">Low <i class="fa-regular fa-question-circle" aria-hidden="true"></i></button>
@@ -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
+ CVSS Risk Scoring
19
+ </li>
20
+ </ol>
21
+
7
22
  <div class="content-container">
8
23
  <h4 class="header-underline d-flex justify-content-between">
9
24
  <span>Edit CVSS Risk Scoring</span>
@@ -2,9 +2,10 @@
2
2
  <html>
3
3
  <head>
4
4
  <title>CVSS Score Calculator | Dradis Framework</title>
5
- <%= stylesheet_link_tag 'dradis/plugins/calculators/cvss/manifests/application', media: 'all', 'data-turbolinks-track': 'reload' %>
6
- <%= javascript_include_tag 'dradis/plugins/calculators/cvss/manifests/application', 'data-turbolinks-track': 'reload' %>
5
+ <%= stylesheet_link_tag 'dradis/plugins/calculators/cvss/manifests/application', media: 'all', 'data-turbo-track': 'reload' %>
6
+ <%= javascript_include_tag 'dradis/plugins/calculators/cvss/manifests/application', 'data-turbo-track': 'reload' %>
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,7 +15,7 @@
14
15
  <a href="javascript:void(0)" class="navbar-brand">CVSS 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
+ <%= link_to main_app.root_path, class: 'nav-link', data: { turbo: false } do %>
18
19
  Back to the app &rarr;
19
20
  <% end %>
20
21
  </li>
@@ -10,8 +10,8 @@ module Dradis::Plugins::Calculators::CVSS
10
10
  app.config.assets.precompile += [
11
11
  'dradis/plugins/calculators/cvss/manifests/application.css',
12
12
  'dradis/plugins/calculators/cvss/manifests/application.js',
13
- 'dradis/plugins/calculators/cvss/manifests/tylium.js',
14
- 'dradis/plugins/calculators/cvss/manifests/tylium.css'
13
+ 'dradis/plugins/calculators/cvss/manifests/hera.js',
14
+ 'dradis/plugins/calculators/cvss/manifests/hera.css'
15
15
  ]
16
16
  end
17
17
 
@@ -22,17 +22,12 @@ module Dradis::Plugins::Calculators::CVSS
22
22
  end
23
23
 
24
24
  initializer 'calculator_cvss.mount_engine' do
25
- # By default, this engine is loaded into the main app. So, upon app
26
- # initialization, we first check if the DB is loaded and the Configuration
27
- # table has been created, before checking if the engine is enabled
28
25
  Rails.application.reloader.to_prepare do
29
- if (ActiveRecord::Base.connection rescue false) && ::Configuration.table_exists?
30
- Rails.application.routes.append do
31
- # Enabling/disabling integrations calls Rails.application.reload_routes! we need the enable
32
- # check inside the block to ensure the routes can be re-enabled without a server restart
33
- if Engine.enabled?
34
- mount Engine => '/', as: :cvss_calculator
35
- end
26
+ Rails.application.routes.append do
27
+ # Enabling/disabling integrations calls Rails.application.reload_routes! we need the enable
28
+ # check inside the block to ensure the routes can be re-enabled without a server restart
29
+ if Engine.enabled?
30
+ mount Engine => '/', as: :cvss_calculator
36
31
  end
37
32
  end
38
33
  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_cvss
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/cvss/cvss.js
72
72
  - app/assets/javascripts/dradis/plugins/calculators/cvss/manifests/application.js
73
- - app/assets/javascripts/dradis/plugins/calculators/cvss/manifests/tylium.js
73
+ - app/assets/javascripts/dradis/plugins/calculators/cvss/manifests/hera.js
74
74
  - app/assets/javascripts/dradis/plugins/calculators/cvss/v3/calculator.js.coffee
75
75
  - app/assets/javascripts/dradis/plugins/calculators/cvss/v3/vendor/cvsscalc30.js
76
76
  - app/assets/javascripts/dradis/plugins/calculators/cvss/v3/vendor/cvsscalc30_helptext.js
@@ -85,7 +85,7 @@ files:
85
85
  - app/assets/javascripts/dradis/plugins/calculators/cvss/v4/vendor/max_severity.js
86
86
  - app/assets/javascripts/dradis/plugins/calculators/cvss/v4/vendor/metrics.js
87
87
  - app/assets/stylesheets/dradis/plugins/calculators/cvss/manifests/application.css.scss
88
- - app/assets/stylesheets/dradis/plugins/calculators/cvss/manifests/tylium.scss
88
+ - app/assets/stylesheets/dradis/plugins/calculators/cvss/manifests/hera.scss
89
89
  - app/controllers/dradis/plugins/calculators/cvss/base_controller.rb
90
90
  - app/controllers/dradis/plugins/calculators/cvss/issues_controller.rb
91
91
  - app/models/dradis/plugins/calculators/cvss/v3.rb
@@ -1 +0,0 @@
1
- @import 'tylium/variables';