Sha256: 0153de8d1064f2e9566544a315b987b62b6c4d2634866483466841919d209e1e

Contents?: true

Size: 329 Bytes

Versions: 17

Compression:

Stored size: 329 Bytes

Contents

# frozen_string_literal: true

module Bridgetown
  module Deprecator
    def self.deprecation_message(message)
      Bridgetown.logger.warn "Deprecation:", message

      caller_locations[0..1].each_with_index do |backtrace_line, index|
        Bridgetown.logger.debug "#{index + 1}:", backtrace_line
      end
    end
  end
end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
bridgetown-core-2.0.0.beta3 lib/bridgetown-core/deprecator.rb
bridgetown-core-2.0.0.beta2 lib/bridgetown-core/deprecator.rb
bridgetown-core-2.0.0.beta1 lib/bridgetown-core/deprecator.rb
bridgetown-core-1.3.4 lib/bridgetown-core/deprecator.rb
bridgetown-core-1.3.3 lib/bridgetown-core/deprecator.rb
bridgetown-core-1.3.2 lib/bridgetown-core/deprecator.rb
bridgetown-core-1.3.1 lib/bridgetown-core/deprecator.rb
bridgetown-core-1.3.0 lib/bridgetown-core/deprecator.rb
bridgetown-core-1.3.0.beta3 lib/bridgetown-core/deprecator.rb
bridgetown-core-1.3.0.beta2 lib/bridgetown-core/deprecator.rb
bridgetown-core-1.3.0.beta1 lib/bridgetown-core/deprecator.rb
bridgetown-core-1.2.0 lib/bridgetown-core/deprecator.rb
bridgetown-core-1.2.0.beta5 lib/bridgetown-core/deprecator.rb
bridgetown-core-1.2.0.beta4 lib/bridgetown-core/deprecator.rb
bridgetown-core-1.2.0.beta3 lib/bridgetown-core/deprecator.rb
bridgetown-core-1.2.0.beta2 lib/bridgetown-core/deprecator.rb
bridgetown-core-1.2.0.beta1 lib/bridgetown-core/deprecator.rb