delayed_job_es 0.1.9 → 0.2.0

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: 4cf677b865196edeed33fa77adafef89c6b28ed7
4
- data.tar.gz: 5da6373cdd509f35031c53792260b40e440d625a
3
+ metadata.gz: f5523da7d2aafcb586959a491f68805596507895
4
+ data.tar.gz: 3e63a43b462e3b500c6bbb8bd26d9647cd2b1757
5
5
  SHA512:
6
- metadata.gz: 706550fb31f8cef2288ac0ab12ef6cdea94944074c78a1c15c359e9cbd20cb19a433a2248b9cb10af9f5ddb103b69a2da6f1ef773a9762597c0bdfa6086b2928
7
- data.tar.gz: 0d998e5362862ce58500636779516bd7e147ad1e90968ca85c97c09b5ef96bbdbdcda72d73b0bbc9135e7d0a784cec16d8af2b1e1aeaa929684f1b01d0cad77d
6
+ metadata.gz: 3b8be80b09994543f4f9047a65ba9b986eb955d956d57daedf3c7eb58888e1eedea25616135c6262b96fe9ea1e360d941c296d7d54477f552e98620d2ef946d6
7
+ data.tar.gz: ef40f372b4fd9322bbc424a88bb05c1c761c557cbd01f736b988706342f17a4cce5bf467c9d5ad2d6a13ae7448efef9e1f23fea8ee3bac2118cd8f4e643b1724
@@ -89,10 +89,20 @@ module Delayed
89
89
  response = get_client.indices.create :index => INDEX_NAME, :body => {
90
90
  mappings: {DOCUMENT_TYPE => { :properties => mappings}}
91
91
  }
92
+ puts "Created delayed job index with response."
93
+ puts response.to_s
92
94
  end
93
95
 
94
96
  def self.delete_index
95
- response = get_client.indices.delete :index => INDEX_NAME
97
+ if Elasticsearch::Persistence.client.indices.exists? index: INDEX_NAME
98
+
99
+ puts "delayed job index exists."
100
+ response = get_client.indices.delete :index => INDEX_NAME
101
+ puts "delete response:"
102
+ puts response.to_s
103
+ else
104
+ puts "delayed job index does not exist."
105
+ end
96
106
  end
97
107
 
98
108
  def self.create_indexes
@@ -1,3 +1,3 @@
1
1
  module DelayedJobEs
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.0"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: delayed_job_es
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Great Manta
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-08-18 00:00:00.000000000 Z
11
+ date: 2020-08-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler