Sha256: 22e64373ea66b108791ea94283d8cb5b380254bd0a49995fb41497092180154b

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.24'

  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.24 lib/embulk/version.rb
embulk-0.8.24-java lib/embulk/version.rb