elasticsearch_hermes 0.0.7 → 0.0.8

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ca49773931614d5ca56517d8d3944521fb1ee3a4
4
- data.tar.gz: e9e012689bc7f94c8d9fb4d5d7001aff7653592c
3
+ metadata.gz: b316c65bf4c95f6855434198e9961b1c7be60a06
4
+ data.tar.gz: 1385dc3839fbede3bdf1780b052bd3bf7596e402
5
5
  SHA512:
6
- metadata.gz: 119b0c54f87925b6b7b846e181a0797b4eccebebda877bc509f1b71ec40397510ea056b0d5f676ab2429f688dbd5cc9e122c930001df0b32d31c585d0ed15fab
7
- data.tar.gz: 7fb77764cda5b9a10f4d6b5056494a354c25136c331f6e1eb27e6a6ec532168026233c26f1a3bf10fa911616e3768874799bf6cbe781cf9f6365e82fe4c215ef
6
+ metadata.gz: c1f77c052089896350412915642063cd9afa4606320e4c0c61fa4490a1553275f631709f8b4aba6fd71245ccd09805bd55f89656a2de1e687e15e184ba18e44f
7
+ data.tar.gz: 33ba96fdd202c3ca06b70923f4e3ec997fbb680e8e0e557f417df3f54162c94ddcf3567274610f949d9d312cd32040ba6258ae6337f41d632d2a87c36dff939e
@@ -3,15 +3,14 @@
3
3
  module ElasticsearchHermes
4
4
  class Configuration
5
5
  attr_accessor :request_timeout, :retry_on_failure, :es_user, :es_password
6
- attr_accessor :es_url, :enable_logs, :fields
6
+ attr_accessor :es_url, :enable_logs
7
7
  def initialize
8
8
  @request_timeout = nil
9
9
  @retry_on_failure = nil
10
10
  @es_user = nil
11
11
  @es_password = nil
12
12
  @es_url = nil
13
- @enable_logs = nil
14
- @fields = nil
13
+ @enable_logs = false
15
14
  end
16
15
  end
17
16
  end
@@ -22,7 +22,11 @@ module ElasticsearchHermes
22
22
  def self.default_connect_options
23
23
  base_es_urls = configuration.es_url
24
24
  urls = base_es_urls.split(',').compact.uniq
25
- options = { url: urls, retry_on_failure: 2, log: true }
25
+ options = {
26
+ url: urls,
27
+ retry_on_failure: configuration.retry_on_failure,
28
+ log: configuration.enable_logs
29
+ }
26
30
  options
27
31
  end
28
32
 
@@ -37,14 +41,6 @@ module ElasticsearchHermes
37
41
  def self.connect!
38
42
  return unless client
39
43
 
40
- indices = fields.map { |field| field[:index_name] }.uniq
41
-
42
- indices.each do |index|
43
- Logger.log("Checking index #{index}")
44
- index_s = ElasticsearchHermes::Index.new(name: index)
45
- Logger.log "Missing Index #{index}" unless index_s.exist?
46
- end
47
-
48
44
  info = @client.info
49
45
  cluster_version = info['version']['number']
50
46
  msg = "Connected to Elastic version #{cluster_version}."
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module ElasticsearchHermes
4
- VERSION = '0.0.7'
4
+ VERSION = '0.0.8'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch_hermes
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.7
4
+ version: 0.0.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ronald Ekambi