Sha256: c357320d19f53bc7a6158f637125a02fd2263a450a5a4aaf05e9d5d241f8c9a8

Contents?: true

Size: 344 Bytes

Versions: 12

Compression:

Stored size: 344 Bytes

Contents

module Hyperstack
  def self.deprecation_warning(name, message)
    return if env.production?
    @deprecation_messages ||= []
    message = "Warning: Deprecated feature used in #{name}. #{message}"
    return if @deprecation_messages.include? message
    @deprecation_messages << message
    `console.warn.apply(console, [message])`
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
hyperstack-config-1.0.alpha1.8 lib/hyperstack/deprecation_warning.rb
hyperstack-config-1.0.alpha1.7 lib/hyperstack/deprecation_warning.rb
hyperstack-config-1.0.alpha1.6 lib/hyperstack/deprecation_warning.rb
hyperstack-config-1.0.alpha1.5 lib/hyperstack/deprecation_warning.rb
hyperstack-config-1.0.alpha1.4 lib/hyperstack/deprecation_warning.rb
hyperstack-config-1.0.alpha1.3 lib/hyperstack/deprecation_warning.rb
hyperstack-config-1.0.alpha1.2 lib/hyperstack/deprecation_warning.rb
hyperstack-config-1.0.alpha1.1 lib/hyperstack/deprecation_warning.rb
hyperstack-config-1.0.0.pre.alpha1 lib/hyperstack/deprecation_warning.rb
hyperstack-config-1.0.alpha1 lib/hyperstack/deprecation_warning.rb
hyperstack-config-1.0.pre.alpha1 lib/hyperstack/deprecation_warning.rb
hyperstack-config-0.1 lib/hyperstack/deprecation_warning.rb