Sha256: 0cd73323ec5216bf317badd1c7d86252c3f890b5e1ca9a06c50ff953beb8ecb6

Contents?: true

Size: 843 Bytes

Versions: 3

Compression:

Stored size: 843 Bytes

Contents

module DeprecationHelper
  def self.deprecate_dasherized_filename(correct_filename)
    warn "[Deprecation Warning] Dasherized filename \"#{correct_filename.gsub('_', '-')}\" is deprecated and will be removed in 4.0; use \"#{correct_filename}\" instead" # rubocop:disable Style/LineLength
  end

  def self.deprecate_old_breadcrumbs_configuration(logger)
    deprecated_usage =
      if logger == :sentry_logger
        "require \"raven/breadcrumbs/logger\""
      else
        "Raven.configuration.rails_activesupport_breadcrumbs = true"
      end
    recommended_usage = "Raven.configuration.breadcrumbs_logger = :#{logger}"

    warn "[Deprecation Warning] The way you enable breadcrumbs logger (#{deprecated_usage}) is deprecated and will be removed in 4.0; use '#{recommended_usage}' instead" # rubocop:disable Style/LineLength
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
sentry-raven-3.1.2 lib/raven/helpers/deprecation_helper.rb
sentry-raven-3.1.1 lib/raven/helpers/deprecation_helper.rb
sentry-raven-3.1.0 lib/raven/helpers/deprecation_helper.rb