Sha256: 72b61a400ef7a3b0c4f9df53db139550c2df645c2d8b03f0319d4f5940b7be4e

Contents?: true

Size: 1.61 KB

Versions: 10

Compression:

Stored size: 1.61 KB

Contents

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

# Used to prevent deprecation warnings from flooding stdout
ENV['PB_IGNORE_DEPRECATIONS'] = 'true'

# Top-level namespace for Contrast Security agent
module Contrast
end

# Some developers override various methods on Object, which can often involve
# changing expected method parity/behavior which in turn prevents us from being
# able to reliably use affected methods.
# We alias these method so that we always have access to them.
#
# Because we use these methods in constructing classes (e.g., calling #freeze
# on constants within class definitions) we do this aliasing ASAP.
class Object
  alias_method :cs__class, :class
  alias_method :cs__freeze, :freeze
  alias_method :cs__frozen?, :frozen?
  alias_method :cs__is_a?, :is_a?
  alias_method :cs__method, :method
  alias_method :cs__respond_to?, :respond_to?
  alias_method :cs__singleton_class, :singleton_class
end

# component interface for class creation
# config gets built as a consequence of this require
require 'contrast/components/interface'

# This needs to be required very early, after component interfaces, and before instrumentation attempts
require 'contrast/funchook/funchook'

# shared configuration support
require 'contrast/config'
require 'contrast/configuration'

require 'contrast/agent/version'

# errors and exceptions
require 'contrast/security_exception'

# shared utils
require 'contrast/utils/timer'
require 'contrast/utils/preflight_util'

require 'contrast/utils/assess/sampling_util'
require 'contrast/agent'

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
contrast-agent-4.4.1 lib/contrast.rb
contrast-agent-4.4.0 lib/contrast.rb
contrast-agent-4.3.2 lib/contrast.rb
contrast-agent-4.3.1 lib/contrast.rb
contrast-agent-4.3.0 lib/contrast.rb
contrast-agent-4.2.0 lib/contrast.rb
contrast-agent-4.1.0 lib/contrast.rb
contrast-agent-4.0.0 lib/contrast.rb
contrast-agent-3.16.0 lib/contrast.rb
contrast-agent-3.15.0 lib/contrast.rb