Sha256: 03c03cd70ee8b54c29edf819edc2506988f9b894fdaab8995398ea86d3bdbede

Contents?: true

Size: 813 Bytes

Versions: 5

Compression:

Stored size: 813 Bytes

Contents

# typed: false
require 'ddtrace/contrib/integration'
require 'ddtrace/contrib/rake/configuration/settings'
require 'ddtrace/contrib/rake/patcher'

module Datadog
  module Contrib
    module Rake
      # Description of Rake integration
      class Integration
        include Contrib::Integration

        MINIMUM_VERSION = Gem::Version.new('12.0')

        register_as :rake

        def self.version
          Gem.loaded_specs['rake'] && Gem.loaded_specs['rake'].version
        end

        def self.loaded?
          !defined?(::Rake::Task).nil?
        end

        def self.compatible?
          super && version >= MINIMUM_VERSION
        end

        def default_configuration
          Configuration::Settings.new
        end

        def patcher
          Patcher
        end
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
ddtrace-0.54.2 lib/ddtrace/contrib/rake/integration.rb
ddtrace-0.54.1 lib/ddtrace/contrib/rake/integration.rb
ddtrace-0.54.0 lib/ddtrace/contrib/rake/integration.rb
ddtrace-0.53.0 lib/ddtrace/contrib/rake/integration.rb
ddtrace-0.52.0 lib/ddtrace/contrib/rake/integration.rb