Sha256: 9dc93594deb5e8b93397fb8661c43d43f78f60d929e2696e5164788eb00347a8

Contents?: true

Size: 275 Bytes

Versions: 7

Compression:

Stored size: 275 Bytes

Contents

module Transproc
  module Deprecations
    def self.announce(name, msg)
      warn <<-MSG.gsub(%r{^\s+}, '')
        #{name} is deprecated and will be removed in 1.0.0.
        #{msg}
        #{caller.detect { |l| !l.include?('lib/transproc') } }
      MSG
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
transproc-1.0.3 lib/transproc/support/deprecations.rb
transproc-1.0.2 lib/transproc/support/deprecations.rb
transproc-1.0.1 lib/transproc/support/deprecations.rb
transproc-1.0.0 lib/transproc/support/deprecations.rb
transproc-0.4.2 lib/transproc/support/deprecations.rb
transproc-0.4.1 lib/transproc/support/deprecations.rb
transproc-0.4.0 lib/transproc/support/deprecations.rb