Sha256: ba5dab6aa64a1463a33d689f98bb97aeb154d23ef4f4644372218a7115f171f4

Contents?: true

Size: 381 Bytes

Versions: 17

Compression:

Stored size: 381 Bytes

Contents

# frozen_string_literal: true

module RSpec::Buildkite::Analytics
  class Object
    module CustomObjectSleep
      def sleep(duration)
        tracer = RSpec::Buildkite::Analytics::Uploader.tracer
        tracer&.enter("sleep")

        super
      ensure
        tracer&.leave
      end
    end

    def self.configure
      ::Object.prepend(CustomObjectSleep)
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
rspec-buildkite-analytics-0.8.2 lib/rspec/buildkite/analytics/object.rb
rspec-buildkite-analytics-0.8.1 lib/rspec/buildkite/analytics/object.rb
rspec-buildkite-analytics-0.8.0 lib/rspec/buildkite/analytics/object.rb
rspec-buildkite-analytics-0.7.0 lib/rspec/buildkite/analytics/object.rb
rspec-buildkite-analytics-0.6.3 lib/rspec/buildkite/analytics/object.rb
rspec-buildkite-analytics-0.6.1 lib/rspec/buildkite/analytics/object.rb
rspec-buildkite-analytics-0.6.0 lib/rspec/buildkite/analytics/object.rb
rspec-buildkite-analytics-0.5.0 lib/rspec/buildkite/analytics/object.rb
rspec-buildkite-analytics-0.4.0 lib/rspec/buildkite/analytics/object.rb
rspec-buildkite-analytics-0.3.6 lib/rspec/buildkite/analytics/object.rb
rspec-buildkite-analytics-0.3.5 lib/rspec/buildkite/analytics/object.rb
rspec-buildkite-analytics-0.3.4 lib/rspec/buildkite/analytics/object.rb
rspec-buildkite-analytics-0.3.3 lib/rspec/buildkite/analytics/object.rb
rspec-buildkite-analytics-0.3.2 lib/rspec/buildkite/analytics/object.rb
rspec-buildkite-analytics-0.3.1 lib/rspec/buildkite/analytics/object.rb
rspec-buildkite-analytics-0.3.0 lib/rspec/buildkite/analytics/object.rb
rspec-buildkite-analytics-0.2.0 lib/rspec/buildkite/analytics/object.rb