lib/contrast/components/interface.rb in contrast-agent-4.6.0 vs lib/contrast/components/interface.rb in contrast-agent-4.7.0
- old
+ new
@@ -132,11 +132,11 @@
next if @_access_component[sym]
if (mods = component_map[sym]) # rubocop:disable Style/GuardClause
# We may support multiple components via one access request.
mods.each do |m|
- name = Contrast::Components.component_const_name(m.name)
+ name = Contrast::Components.component_const_name(m.cs__name)
cs__const_set(name, m::COMPONENT_INTERFACE) if m.cs__const_defined?(:COMPONENT_INTERFACE)
include m::InstanceMethods if m.cs__const_defined?(:InstanceMethods, false)
extend m::ClassMethods if m.cs__const_defined?(:ClassMethods, false)
end
@@ -179,10 +179,11 @@
require 'contrast/components/agent'
Contrast::Components::ComponentReceiverClassInterface::COMPONENT_MAP[:agent] = [Contrast::Components::Agent]
require 'contrast/components/contrast_service'
-Contrast::Components::ComponentReceiverClassInterface::COMPONENT_MAP[:contrast_service] = [Contrast::Components::ContrastService]
+Contrast::Components::ComponentReceiverClassInterface::COMPONENT_MAP[:contrast_service] =
+ [Contrast::Components::ContrastService]
require 'contrast/components/app_context'
Contrast::Components::ComponentReceiverClassInterface::COMPONENT_MAP[:app_context] = [Contrast::Components::AppContext]
require 'contrast/components/heap_dump'