Sha256: 6c2074a2ade548b79a01901b8553a4ec984a8402fd1c6ffd46a055242bcb74f6

Contents?: true

Size: 545 Bytes

Versions: 15

Compression:

Stored size: 545 Bytes

Contents

# frozen_string_literal: true

require "datadog/tracing/contrib/patcher"
require_relative "instrumentation"

module Datadog
  module CI
    module Contrib
      module Cucumber
        # Patcher enables patching of 'cucumber' module.
        module Patcher
          include Datadog::Tracing::Contrib::Patcher

          module_function

          def target_version
            Integration.version
          end

          def patch
            ::Cucumber::Runtime.include(Instrumentation)
          end
        end
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
datadog-ci-1.0.0.beta1 lib/datadog/ci/contrib/cucumber/patcher.rb
datadog-ci-0.8.3 lib/datadog/ci/contrib/cucumber/patcher.rb
datadog-ci-0.8.2 lib/datadog/ci/contrib/cucumber/patcher.rb
datadog-ci-0.8.1 lib/datadog/ci/contrib/cucumber/patcher.rb
datadog-ci-0.8.0 lib/datadog/ci/contrib/cucumber/patcher.rb
datadog-ci-0.7.0 lib/datadog/ci/contrib/cucumber/patcher.rb
datadog-ci-0.6.0 lib/datadog/ci/contrib/cucumber/patcher.rb
datadog-ci-0.5.1 lib/datadog/ci/contrib/cucumber/patcher.rb
datadog-ci-0.5.0 lib/datadog/ci/contrib/cucumber/patcher.rb
datadog-ci-0.4.1 lib/datadog/ci/contrib/cucumber/patcher.rb
datadog-ci-0.4.0 lib/datadog/ci/contrib/cucumber/patcher.rb
datadog-ci-0.3.0 lib/datadog/ci/contrib/cucumber/patcher.rb
datadog-ci-0.2.0 lib/datadog/ci/contrib/cucumber/patcher.rb
datadog-ci-0.1.1 lib/datadog/ci/contrib/cucumber/patcher.rb
datadog-ci-0.1.0 lib/datadog/ci/contrib/cucumber/patcher.rb