lib/contrast/components/app_context.rb in contrast-agent-3.12.2 vs lib/contrast/components/app_context.rb in contrast-agent-3.13.0
- old
+ new
@@ -1,9 +1,8 @@
# 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/utils/sinatra_helper'
cs__scoped_require 'rubygems/version'
module Contrast
module Components
module AppContext
@@ -20,15 +19,9 @@
DEFAULT_APP_NAME = 'rails'
DEFAULT_APP_PATH = '/'
DEFAULT_SERVER_NAME = 'localhost'
DEFAULT_SERVER_PATH = '/'
-
- def ready?
- @_ready ||= AGENT.enabled? &&
- Contrast::Utils::ServiceSenderUtil.connection_established? &&
- Contrast::Utils::ServiceResponseUtil.update_received?
- end
def initialize
original_pid
end