Sha256: 74c2bc4c1446f72d34823e758bce469cc903c21b30f811b92a1e99422613678e

Contents?: true

Size: 951 Bytes

Versions: 6

Compression:

Stored size: 951 Bytes

Contents

# Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details.
# frozen_string_literal: true

cs__scoped_require 'contrast/agent/patching/policy/after_load_patch'

module Contrast
  module Framework
    module Sinatra
      module Patch
        # Extension point allowing for the registration of Patches required to
        # support the Sinatra framework.
        module Support
          # (See BaseSupport#after_load_patches)
          def after_load_patches
            Set.new([
                      Contrast::Agent::Patching::Policy::AfterLoadPatch.new(
                          'Sinatra::Base',
                          'contrast/framework/sinatra/patch/base',
                          method_to_instrument: nil,
                          instrumenting_module: 'Contrast::Framework::Sinatra::Patch::Base')
                    ])
          end
        end
      end
    end
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
contrast-agent-3.13.2 lib/contrast/framework/sinatra/patch/support.rb
contrast-agent-3.13.1 lib/contrast/framework/sinatra/patch/support.rb
contrast-agent-3.13.0 lib/contrast/framework/sinatra/patch/support.rb
contrast-agent-3.12.2 lib/contrast/framework/sinatra/patch/support.rb
contrast-agent-3.12.1 lib/contrast/framework/sinatra/patch/support.rb
contrast-agent-3.12.0 lib/contrast/framework/sinatra/patch/support.rb