lib/contrast/agent/patching/policy/patcher.rb in contrast-agent-3.11.0 vs lib/contrast/agent/patching/policy/patcher.rb in contrast-agent-3.12.0
- old
+ new
@@ -49,15 +49,13 @@
class << self
# Hook to install the Contrast changes needed to allow for the
# instrumentation of the application - this only occurs once, during
# startup to catchup on everything we didn't see get loaded
def patch
- logger.debug_with_time('Patching') do
- catchup_after_load_patches
- patch_methods
- Contrast::Agent::Assess::Policy::RewriterPatch.rewrite_interpolations
- end
+ catchup_after_load_patches
+ patch_methods
+ Contrast::Agent::Assess::Policy::RewriterPatch.rewrite_interpolations
end
# Hook to only monkeypatch Contrast. This will not trigger any
# other functions, like rewriting or scanning. Exposed for those
# situations, like ActiveRecord dynamically defining functions,
@@ -220,17 +218,17 @@
result: Contrast::Agent::Patching::Policy::PatchStatus.get_status(
module_data.mod).patch_status)
end
# Includes the given module with the
- # Contrast::CoreExtensions::Assess::AssessExtension
+ # Contrast::Extension::Assess::AssessExtension
# @param module_data [Contrast::Agent::ModuleData] the module, and
# its name, that's being patched into
def include_module module_data
return false unless Contrast::Agent::Assess::Policy::Policy.instance.tracked_classes.include?(module_data.name)
- module_data.mod.send(:include, Contrast::CoreExtensions::Assess::AssessExtension)
+ module_data.mod.send(:include, Contrast::Extension::Assess::AssessExtension)
true
end
# Get all of the instance methods on the given module, excluding
# those from super classes. this list will always include the
@@ -298,12 +296,12 @@
end
end
end
# core extensions
-cs__scoped_require 'contrast/extensions/ruby_core/module'
-cs__scoped_require 'contrast/extensions/ruby_core/assess'
-cs__scoped_require 'contrast/extensions/ruby_core/inventory'
-cs__scoped_require 'contrast/extensions/ruby_core/protect'
-cs__scoped_require 'contrast/extensions/ruby_core/protect/kernel'
+cs__scoped_require 'contrast/extension/module'
+cs__scoped_require 'contrast/extension/assess'
+cs__scoped_require 'contrast/extension/inventory'
+cs__scoped_require 'contrast/extension/protect'
+cs__scoped_require 'contrast/extension/protect/kernel'
cs__scoped_require 'cs__contrast_patch/cs__contrast_patch'