Sha256: ea7513656896e14432156d5a505e775fcf3089e5ab9a8df96b971329ffb3d8c7

Contents?: true

Size: 940 Bytes

Versions: 9

Compression:

Stored size: 940 Bytes

Contents

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

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

9 entries across 9 versions & 1 rubygems

Version Path
contrast-agent-4.3.2 lib/contrast/framework/sinatra/patch/support.rb
contrast-agent-4.3.1 lib/contrast/framework/sinatra/patch/support.rb
contrast-agent-4.3.0 lib/contrast/framework/sinatra/patch/support.rb
contrast-agent-4.2.0 lib/contrast/framework/sinatra/patch/support.rb
contrast-agent-4.1.0 lib/contrast/framework/sinatra/patch/support.rb
contrast-agent-4.0.0 lib/contrast/framework/sinatra/patch/support.rb
contrast-agent-3.16.0 lib/contrast/framework/sinatra/patch/support.rb
contrast-agent-3.15.0 lib/contrast/framework/sinatra/patch/support.rb
contrast-agent-3.14.0 lib/contrast/framework/sinatra/patch/support.rb