lib/contrast/agent/static_analysis.rb in contrast-agent-3.16.0 vs lib/contrast/agent/static_analysis.rb in contrast-agent-4.0.0

- old
+ new

@@ -1,10 +1,10 @@ # Copyright (c) 2020 Contrast Security, Inc. See https://www.contrastsecurity.com/enduser-terms-0317a for more details. # frozen_string_literal: true require 'contrast/components/interface' -require 'contrast/utils/gemfile_reader' +require 'contrast/agent/inventory' require 'contrast/api/decorators/application_update' module Contrast module Agent # this module handles one time static analysis tasks @@ -16,10 +16,10 @@ # After the first request is complete, we do a one-time manual catchup to review and # report the already-loaded gems. def catchup @_catchup ||= begin with_contrast_scope do - Contrast::Utils::GemfileReader.instance.map_loaded_classes + Contrast::Agent::Inventory::DependencyUsageAnalysis.instance.catchup send_inventory_message true end end rescue StandardError => e