delayed_job_es 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4fd671a6bb8f35764c38d1acd3c7f2b29e3eea26
4
- data.tar.gz: 9655192518c56711d3a5f06f318a9e3dbd7f5dcd
3
+ metadata.gz: 403ae7ca8d4164ddb47c07d4a31dda199d808cd3
4
+ data.tar.gz: 70383244aa6bd9a525dd03f10b430a6f6b115858
5
5
  SHA512:
6
- metadata.gz: d7863a77e1da57fe74f39731dc069feb2f42a981607bb3e9a86d0a4f10be88dcbea05f017c7500795dea1b25f52db4359972b199d01a89cef925d53b2ae13b3e
7
- data.tar.gz: 84b681c6cd05ffc38665f095a9ccfb718a9fbcbf72a2dcf9d140728fa05f20bd03d18f7a36678a2c82ee8eb2e076d7b9bea54f39ab55ab39d41f0109073be8f4
6
+ metadata.gz: 52c6515ffd9e3fdc18fcbe2c2c80078fe2bd1732d2497c910da740a2ebaa71ef1c90c05f59adb3361f9cca0960796d4e76d10ea21cb89a8c236037075d95a109
7
+ data.tar.gz: 2199f84217ab16b0ab094605169e55c427f5e0e3664a7464d0e0017a4fbd825c70553114c9c526a91d3c61bda71e9e00c8dbf92775cbf381ee053be428f78f12
@@ -35,8 +35,15 @@ module Delayed
35
35
  cattr_accessor :client
36
36
 
37
37
  def self.get_client
38
- client ||= Elasticsearch::Client.new
39
- client
38
+ #puts "the environment is------------>"
39
+ #puts Rails.env.to_s
40
+ #where can we define the settings.
41
+ if Elasticsearch::Persistence.client
42
+ Elasticsearch::Persistence.client
43
+ else
44
+ client ||= Elasticsearch::Client.new
45
+ client
46
+ end
40
47
  end
41
48
 
42
49
  def self.mappings
@@ -1,3 +1,3 @@
1
1
  module DelayedJobEs
2
- VERSION = "0.1.7"
2
+ VERSION = "0.1.8"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_job_es
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Great Manta