lib/contrast/extension/assess/array.rb in contrast-agent-3.13.2 vs lib/contrast/extension/assess/array.rb in contrast-agent-3.14.0
- old
+ new
@@ -1,11 +1,11 @@
# 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/patch'
-cs__scoped_require 'contrast/agent/patching/policy/patcher'
-cs__scoped_require 'contrast/components/interface'
+require 'contrast/agent/patching/policy/patch'
+require 'contrast/agent/patching/policy/patcher'
+require 'contrast/components/interface'
module Contrast
module Extension
module Assess
# This is our patch of the Array class required to handle propagation
@@ -61,10 +61,10 @@
end
end
def instrument_array_track
@_instrument_array_track ||= begin
- cs__scoped_require 'cs__assess_array/cs__assess_array'
+ require 'cs__assess_array/cs__assess_array'
true
end
rescue StandardError, LoadError => e
logger.error('Error loading assess track patch', e)
false