Sha256: 1608c1df2b6bc592c0015dd8312ed2b78a634f0c54aead2a0199971d093331c8

Contents?: true

Size: 804 Bytes

Versions: 6

Compression:

Stored size: 804 Bytes

Contents

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

    include Dradis::Plugins::Base
    provides :addon
    description 'Provides a CVSS score calculator under /calculators/cvss'

    initializer 'calculator_cvss.asset_precompile_paths' do |app|
      app.config.assets.precompile += ["dradis/plugins/calculators/cvss/manifests/*"]
    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 => '/calculators/', as: :cvss_calculator
      end
    end

  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
dradis-calculator_cvss-3.11.0 lib/dradis/plugins/calculators/cvss/engine.rb
dradis-calculator_cvss-3.10.0 lib/dradis/plugins/calculators/cvss/engine.rb
dradis-calculator_cvss-3.9.0 lib/dradis/plugins/calculators/cvss/engine.rb
dradis-calculator_cvss-3.8.0 lib/dradis/plugins/calculators/cvss/engine.rb
dradis-calculator_cvss-3.7.0 lib/dradis/plugins/calculators/cvss/engine.rb
dradis-calculator_cvss-3.6.0 lib/dradis/plugins/calculators/cvss/engine.rb