Sha256: 26f90656b6165409e1b49fe6030e789bc92f31049f15b6c423f1d2f358373536
Contents?: true
Size: 979 Bytes
Versions: 5
Compression:
Stored size: 979 Bytes
Contents
require_relative '../integration' require_relative 'configuration/settings' 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 default_configuration Configuration::Settings.new end def patcher Patcher end end end end end end
Version data entries
5 entries across 5 versions & 1 rubygems