dradis-calculator_cvss 3.11.0 → 3.12.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 +4 -0
- data/app/assets/javascripts/dradis/plugins/calculators/cvss/calculator.js.coffee +45 -32
- data/app/assets/javascripts/dradis/plugins/calculators/cvss/manifests/application.js.coffee +2 -0
- data/app/assets/javascripts/dradis/plugins/calculators/cvss/manifests/snowcrash.js.coffee +2 -0
- data/app/controllers/dradis/plugins/calculators/cvss/base_controller.rb +3 -0
- data/app/controllers/dradis/plugins/calculators/cvss/issues_controller.rb +37 -0
- data/app/models/dradis/plugins/calculators/cvss/v3.rb +26 -0
- data/app/views/dradis/plugins/calculators/cvss/_addons_menu.html.erb +1 -0
- data/app/views/dradis/plugins/calculators/cvss/base/_base.html.erb +123 -0
- data/app/views/dradis/plugins/calculators/cvss/base/_environmental.html.erb +192 -0
- data/app/views/dradis/plugins/calculators/cvss/base/_temporal.html.erb +67 -0
- data/app/views/dradis/plugins/calculators/cvss/base/index.html.erb +17 -223
- data/app/views/dradis/plugins/calculators/cvss/issues/_show-content.html.erb +21 -0
- data/app/views/dradis/plugins/calculators/cvss/issues/_show-tabs.html.erb +1 -0
- data/app/views/dradis/plugins/calculators/cvss/issues/edit.html.erb +78 -0
- data/app/views/layouts/dradis/plugins/calculators/cvss/base.html.erb +3 -4
- data/config/routes.rb +11 -2
- data/lib/dradis/plugins/calculators/cvss/engine.rb +2 -2
- data/lib/dradis/plugins/calculators/cvss/gem_version.rb +1 -1
- metadata +12 -2
data/config/routes.rb
CHANGED
@@ -1,3 +1,12 @@
|
|
1
1
|
Dradis::Plugins::Calculators::CVSS::Engine.routes.draw do
|
2
|
-
get '/cvss' =>
|
3
|
-
|
2
|
+
get '/calculators/cvss' => 'base#index'
|
3
|
+
|
4
|
+
resources :projects, only: [] do
|
5
|
+
resources :issues, only: [] do
|
6
|
+
member do
|
7
|
+
get 'cvss' => 'issues#edit'
|
8
|
+
patch 'cvss' => 'issues#update'
|
9
|
+
end
|
10
|
+
end
|
11
|
+
end
|
12
|
+
end
|
@@ -4,7 +4,7 @@ module Dradis::Plugins::Calculators::CVSS
|
|
4
4
|
|
5
5
|
include Dradis::Plugins::Base
|
6
6
|
provides :addon
|
7
|
-
description '
|
7
|
+
description 'Risk Calculator: CVSSv3'
|
8
8
|
|
9
9
|
initializer 'calculator_cvss.asset_precompile_paths' do |app|
|
10
10
|
app.config.assets.precompile += ["dradis/plugins/calculators/cvss/manifests/*"]
|
@@ -18,7 +18,7 @@ module Dradis::Plugins::Calculators::CVSS
|
|
18
18
|
|
19
19
|
initializer 'calculator_cvss.mount_engine' do
|
20
20
|
Rails.application.routes.append do
|
21
|
-
mount Dradis::Plugins::Calculators::CVSS::Engine => '/
|
21
|
+
mount Dradis::Plugins::Calculators::CVSS::Engine => '/', as: :cvss_calculator
|
22
22
|
end
|
23
23
|
end
|
24
24
|
|
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: 3.
|
4
|
+
version: 3.12.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: 2019-04-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dradis-plugins
|
@@ -68,10 +68,20 @@ files:
|
|
68
68
|
- Rakefile
|
69
69
|
- app/assets/javascripts/dradis/plugins/calculators/cvss/calculator.js.coffee
|
70
70
|
- app/assets/javascripts/dradis/plugins/calculators/cvss/manifests/application.js.coffee
|
71
|
+
- app/assets/javascripts/dradis/plugins/calculators/cvss/manifests/snowcrash.js.coffee
|
71
72
|
- app/assets/javascripts/dradis/plugins/calculators/cvss/vendor/cvsscalc30.js
|
72
73
|
- app/assets/stylesheets/dradis/plugins/calculators/cvss/manifests/application.css.scss
|
73
74
|
- app/controllers/dradis/plugins/calculators/cvss/base_controller.rb
|
75
|
+
- app/controllers/dradis/plugins/calculators/cvss/issues_controller.rb
|
76
|
+
- app/models/dradis/plugins/calculators/cvss/v3.rb
|
77
|
+
- app/views/dradis/plugins/calculators/cvss/_addons_menu.html.erb
|
78
|
+
- app/views/dradis/plugins/calculators/cvss/base/_base.html.erb
|
79
|
+
- app/views/dradis/plugins/calculators/cvss/base/_environmental.html.erb
|
80
|
+
- app/views/dradis/plugins/calculators/cvss/base/_temporal.html.erb
|
74
81
|
- app/views/dradis/plugins/calculators/cvss/base/index.html.erb
|
82
|
+
- app/views/dradis/plugins/calculators/cvss/issues/_show-content.html.erb
|
83
|
+
- app/views/dradis/plugins/calculators/cvss/issues/_show-tabs.html.erb
|
84
|
+
- app/views/dradis/plugins/calculators/cvss/issues/edit.html.erb
|
75
85
|
- app/views/layouts/dradis/plugins/calculators/cvss/base.html.erb
|
76
86
|
- config/routes.rb
|
77
87
|
- dradis-calculator_cvss.gemspec
|