Sha256: 2ff94e1460959bc975bb006b434273f3f13e33883873d55e6a6269e91dc37646

Contents?: true

Size: 1.04 KB

Versions: 11

Compression:

Stored size: 1.04 KB

Contents

module Dradis::Plugins::Calculators::CVSS
  class Engine < ::Rails::Engine
    isolate_namespace Dradis::Plugins::Calculators::CVSS

    include Dradis::Plugins::Base
    provides :addon
    description 'Risk Calculator: CVSS'

    addon_settings :calculator_cvss do
      settings.default_show = 1
    end

    initializer 'calculator_cvss.asset_precompile_paths' do |app|
      app.config.assets.precompile += [
        'dradis/plugins/calculators/cvss/manifests/application.css',
        'dradis/plugins/calculators/cvss/manifests/application.js',
        'dradis/plugins/calculators/cvss/manifests/tylium.js',
        'dradis/plugins/calculators/cvss/manifests/tylium.css'
      ]
    end

    initializer "calculator_cvss.inflections" do |app|
      ActiveSupport::Inflector.inflections do |inflect|
        inflect.acronym('CVSS')
      end
    end

    initializer 'calculator_cvss.mount_engine' do
      Rails.application.routes.append do
        mount Dradis::Plugins::Calculators::CVSS::Engine => '/', as: :cvss_calculator
      end
    end

  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
dradis-calculator_cvss-4.11.0 lib/dradis/plugins/calculators/cvss/engine.rb
dradis-calculator_cvss-4.10.0 lib/dradis/plugins/calculators/cvss/engine.rb
dradis-calculator_cvss-4.9.0 lib/dradis/plugins/calculators/cvss/engine.rb
dradis-calculator_cvss-4.8.0 lib/dradis/plugins/calculators/cvss/engine.rb
dradis-calculator_cvss-4.7.0 lib/dradis/plugins/calculators/cvss/engine.rb
dradis-calculator_cvss-4.6.0 lib/dradis/plugins/calculators/cvss/engine.rb
dradis-calculator_cvss-4.5.0 lib/dradis/plugins/calculators/cvss/engine.rb
dradis-calculator_cvss-4.4.0 lib/dradis/plugins/calculators/cvss/engine.rb
dradis-calculator_cvss-4.3.0 lib/dradis/plugins/calculators/cvss/engine.rb
dradis-calculator_cvss-4.2.0 lib/dradis/plugins/calculators/cvss/engine.rb
dradis-calculator_cvss-4.1.0 lib/dradis/plugins/calculators/cvss/engine.rb