elasticsearch-model-mongoid_extensions 0.1.0 → 0.1.1

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: c3d6ba1edb6c47a91c710c5578b7bb24c17c5deb
4
- data.tar.gz: 89e96917a42b16caf84b6f1528136204595930ec
3
+ metadata.gz: de73d13b0e1594b982d5bdf4a50889077588093a
4
+ data.tar.gz: c9fec5753d9bc459a02626044bd121ef5421008e
5
5
  SHA512:
6
- metadata.gz: 4a687c4cbf9a4d1b4d3b43588d31858355d16887c56ec6c3f5e46519c3a6064cf6d4eefd75a1263d61868f69711a9ff623f8e9f7dd0d9be99123df18b680937f
7
- data.tar.gz: bb8933aeb9a96b4b1a3c98eda924f2ea1044648901d9d2f769d694f4d0501ae0682b059b16526ec0195610915f70b7f23a07236bed9b720ad8bd22bbadc0abf1
6
+ metadata.gz: 26fd1e390f3e97f6ae8cb6c15465b2e70c8e03aac023161cdd23b3887bb4c32cd2ecb0b03fc04205aa9d8c84c0d58cceb510485d7d6d172a0f6bfd75fefbc069
7
+ data.tar.gz: f9ff83b5dd71034f91948a88bfa5340e9ac867024fc1132b48dc0eb7e773d7ac3244e75307bc6c6717d858b38b09dad1b0344dca9ce9ef3d8485fa6a6aa1d667
@@ -57,8 +57,8 @@ module Elasticsearch
57
57
  end
58
58
 
59
59
  def import(options = {}, &block)
60
- __elasticsearch__.import(options.merge(criteria: criteria.type(to_s)), &block)
61
- descendants.each { |cls| cls.import(options, &block) }
60
+ __elasticsearch__.import(options.merge(criteria: criteria.type(to_s)), &block) +
61
+ descendants.map { |cls| cls.import(options, &block) }.sum
62
62
  end
63
63
  end
64
64
  end
@@ -1,7 +1,7 @@
1
1
  module Elasticsearch
2
2
  module Model
3
3
  module MongoidExtensions
4
- VERSION = '0.1.0'.freeze
4
+ VERSION = '0.1.1'.freeze
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: elasticsearch-model-mongoid_extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tomas Celizna
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-09-16 00:00:00.000000000 Z
11
+ date: 2016-09-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport