Sha256: d8d1cfc73e40264400fad3b24b3501d79259a07af98c88ebd7da458f2769d9ff
Contents?: true
Size: 877 Bytes
Versions: 18
Compression:
Stored size: 877 Bytes
Contents
# frozen_string_literal: true require_relative '../integration' require_relative 'patcher' require_relative 'request_middleware' module Datadog module AppSec module Contrib module Sinatra # Description of Sinatra integration class Integration include Datadog::AppSec::Contrib::Integration MINIMUM_VERSION = Gem::Version.new('1.4.0') register_as :sinatra def self.version Gem.loaded_specs['sinatra'] && Gem.loaded_specs['sinatra'].version end def self.loaded? !defined?(::Sinatra).nil? end def self.compatible? super && version >= MINIMUM_VERSION end def self.auto_instrument? true end def patcher Patcher end end end end end end
Version data entries
18 entries across 18 versions & 1 rubygems