elasticsearch-model-mongoid_extensions 0.1.1 → 0.1.2

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: de73d13b0e1594b982d5bdf4a50889077588093a
4
- data.tar.gz: c9fec5753d9bc459a02626044bd121ef5421008e
3
+ metadata.gz: 0ed2b94a0cfda4ff5b9afe35aa78739647dbe8bd
4
+ data.tar.gz: 7f1803ad6695d196ece9ce4c4f7f89fa6a7fe370
5
5
  SHA512:
6
- metadata.gz: 26fd1e390f3e97f6ae8cb6c15465b2e70c8e03aac023161cdd23b3887bb4c32cd2ecb0b03fc04205aa9d8c84c0d58cceb510485d7d6d172a0f6bfd75fefbc069
7
- data.tar.gz: f9ff83b5dd71034f91948a88bfa5340e9ac867024fc1132b48dc0eb7e773d7ac3244e75307bc6c6717d858b38b09dad1b0344dca9ce9ef3d8485fa6a6aa1d667
6
+ metadata.gz: f42ee3be852ac504033a8a1adf8483dcf0f1d0dc9f63c062c8ec34b961c6ae8a3001b30a94aa1ff76f4efe5e459a775a4d3088d88da58ad6346ee29b2aadd0f6
7
+ data.tar.gz: 754ddf94b5e9ba6584769413cf06c48353566113dc8480bf84bb95d26b4dc85e334a902491671210946b86c5967216ebea75a5956d569f9c717d8a25e3c8efe5
@@ -42,13 +42,15 @@ module Elasticsearch
42
42
  end
43
43
 
44
44
  def create_index!(options = {})
45
- __elasticsearch__.create_index!(options)
46
- descendants.each { |cls| cls.__elasticsearch__.create_index!(options) }
45
+ res = Array(__elasticsearch__.create_index!(options))
46
+ descendants.each { |cls| res << cls.__elasticsearch__.create_index!(options) }
47
+ res.compact
47
48
  end
48
49
 
49
50
  def refresh_index!(options = {})
50
- __elasticsearch__.refresh_index!(options)
51
- descendants.each { |cls| cls.__elasticsearch__.refresh_index!(options) }
51
+ res = Array(__elasticsearch__.refresh_index!(options))
52
+ descendants.each { |cls| res << cls.__elasticsearch__.refresh_index!(options) }
53
+ res.compact
52
54
  end
53
55
 
54
56
  def search(query_or_payload, options = {})
@@ -1,7 +1,7 @@
1
1
  module Elasticsearch
2
2
  module Model
3
3
  module MongoidExtensions
4
- VERSION = '0.1.1'.freeze
4
+ VERSION = '0.1.2'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-model-mongoid_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna