Sha256: 9053e9acb0a676e80ca26cbddf44d4c1af0345c7c4266178b96914afe539e5bc

Contents?: true

Size: 1.69 KB

Versions: 3

Compression:

Stored size: 1.69 KB

Contents

# Copyright 2015 Doximity, Inc.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

require "rubygems"
require "bundler/setup"
Bundler.setup

require "active_support"
require "active_support/core_ext"
require "active_model"
require "elasticsearch"

module Elasticity
  autoload :Bulk,               "elasticity/bulk"
  autoload :Config,             "elasticity/config"
  autoload :IndexConfig,        "elasticity/index_config"
  autoload :IndexMapper,        "elasticity/index_mapper"
  autoload :BaseDocument,       "elasticity/base_document"
  autoload :Document,           "elasticity/document"
  autoload :SegmentedDocument,  "elasticity/segmented_document"
  autoload :InstrumentedClient, "elasticity/instrumented_client"
  autoload :LogSubscriber,      "elasticity/log_subscriber"
  autoload :MultiSearch,        "elasticity/multi_search"
  autoload :Search,             "elasticity/search"
  autoload :Strategies,         "elasticity/strategies"
  autoload :ScrollableSearch,   "elasticity/scrollable_search"

  def self.configure
    @config = Config.new
    yield(@config)
  end

  def self.config
    return @config if defined?(@config)
    @config = Config.new
  end
end

if defined?(Rails)
  require "elasticity/railtie"
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
es-elasticity-0.8.3 lib/elasticity.rb
es-elasticity-0.8.2 lib/elasticity.rb
es-elasticity-0.8.1 lib/elasticity.rb