Sha256: 97d135ece3a5cfe5630bad7179e671d181f5a97ebe9df4a7ff4d5370a2e72f78

Contents?: true

Size: 398 Bytes

Versions: 5

Compression:

Stored size: 398 Bytes

Contents

# frozen_string_literal: true

require 'cucumber/platform'
require 'cucumber/gherkin/formatter/ansi_escapes'

module Cucumber
  def self.deprecate(message, method, remove_after_version)
    $stderr.puts(
      "\nWARNING: ##{method} is deprecated" \
        " and will be removed after version #{remove_after_version}. #{message}.\n" \
        "(Called from #{caller(3..3).first})"
    )
  end
end

Version data entries

5 entries across 5 versions & 2 rubygems

Version Path
cucumber-9.2.0 lib/cucumber/deprecate.rb
cucumber-9.1.2 lib/cucumber/deprecate.rb
cucumber-9.1.1 lib/cucumber/deprecate.rb
honeybadger-5.4.0 vendor/bundle/ruby/3.2.0/gems/cucumber-9.1.0/lib/cucumber/deprecate.rb
cucumber-9.1.0 lib/cucumber/deprecate.rb