Sha256: 40e542f3caa061975042bde47641f83e4a63e56834ec0074d5fd99708f098153

Contents?: true

Size: 682 Bytes

Versions: 2

Compression:

Stored size: 682 Bytes

Contents

# TODO(v2)[#562]: Remove this file.
# https://github.com/embulk/embulk/issues/562
module Embulk
  @@warned = false

  VERSION_INTERNAL = '0.8.27'

  DEPRECATED_MESSAGE = 'Embulk::VERSION in (J)Ruby is deprecated. Use org.embulk.EmbulkVersion::VERSION instead. If this message is from a plugin, please tell this to the author of the plugin!'
  def self.const_missing(name)
    if name == :VERSION
      unless @@warned
        if Embulk.method_defined?(:logger)
          Embulk.logger.warn(DEPRECATED_MESSAGE)
          @@warned = true
        else
          STDERR.puts(DEPRECATED_MESSAGE)
        end
      end
      return VERSION_INTERNAL
    else
      super
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
embulk-0.8.27 lib/embulk/version.rb
embulk-0.8.27-java lib/embulk/version.rb