Sha256: 2577a4c3694a321a971c647413e3d32e72c456b5043eafb9278217f46de8ac76

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

  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.25 lib/embulk/version.rb
embulk-0.8.25-java lib/embulk/version.rb