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.
data/config/routes.rb CHANGED
@@ -1,3 +1,12 @@
1
1
  Dradis::Plugins::Calculators::CVSS::Engine.routes.draw do
2
- get '/cvss' => "base#index"
3
- end
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 'Provides a CVSS score calculator under /calculators/cvss'
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 => '/calculators/', as: :cvss_calculator
21
+ mount Dradis::Plugins::Calculators::CVSS::Engine => '/', as: :cvss_calculator
22
22
  end
23
23
  end
24
24
 
@@ -9,7 +9,7 @@ module Dradis
9
9
 
10
10
  module VERSION
11
11
  MAJOR = 3
12
- MINOR = 11
12
+ MINOR = 12
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: 3.11.0
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: 2018-11-07 00:00:00.000000000 Z
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