Sha256: b35a916e2da2b7e01dd939a29925953d7721c5e8392472ae7eee64f11d22b7d9

Contents?: true

Size: 820 Bytes

Versions: 6

Compression:

Stored size: 820 Bytes

Contents

begin
  require 'elastic/transport'
  ::TRANSPORT_CLASS = Elastic::Transport
rescue LoadError
end
begin
  require 'elasticsearch/transport'
  ::TRANSPORT_CLASS = Elasticsearch::Transport
rescue LoadError
end
if Gem::Version.new(Elasticsearch::VERSION) < Gem::Version.new("8.0.0")
  begin
    require 'elasticsearch/xpack'
  rescue LoadError
  end
end

begin
  require 'elastic/transport/transport/connections/selector'
  ::SELECTOR_CLASS = Elastic::Transport::Transport::Connections::Selector
rescue LoadError
end
begin
  require 'elasticsearch/transport/transport/connections/selector'
  ::SELECTOR_CLASS = Elasticsearch::Transport::Transport::Connections::Selector
rescue LoadError
end
unless defined?(::Elasticsearch::UnsupportedProductError)
  class ::Elasticsearch::UnsupportedProductError < StandardError; end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
fluent-plugin-elasticsearch-5.4.0 lib/fluent/plugin/elasticsearch_compat.rb
fluent-plugin-elasticsearch-5.3.0 lib/fluent/plugin/elasticsearch_compat.rb
fluent-plugin-elasticsearch-5.2.5 lib/fluent/plugin/elasticsearch_compat.rb
fluent-plugin-elasticsearch-5.2.4 lib/fluent/plugin/elasticsearch_compat.rb
fluent-plugin-elasticsearch-5.2.3 lib/fluent/plugin/elasticsearch_compat.rb
fluent-plugin-elasticsearch-5.2.2 lib/fluent/plugin/elasticsearch_compat.rb