elasticsearch-model-mongoid_extensions 0.1.2 → 0.1.3

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: 0ed2b94a0cfda4ff5b9afe35aa78739647dbe8bd
4
- data.tar.gz: 7f1803ad6695d196ece9ce4c4f7f89fa6a7fe370
3
+ metadata.gz: 36210ad309373d7915f8a8ca863c69b31cc3e2ac
4
+ data.tar.gz: 599f88c78d247ac0adbb94591026a8035bf14112
5
5
  SHA512:
6
- metadata.gz: f42ee3be852ac504033a8a1adf8483dcf0f1d0dc9f63c062c8ec34b961c6ae8a3001b30a94aa1ff76f4efe5e459a775a4d3088d88da58ad6346ee29b2aadd0f6
7
- data.tar.gz: 754ddf94b5e9ba6584769413cf06c48353566113dc8480bf84bb95d26b4dc85e334a902491671210946b86c5967216ebea75a5956d569f9c717d8a25e3c8efe5
6
+ metadata.gz: 7c3f44092e0f216d805bad1b6beb34204e0820b62d15565337c9d562ec3375e854c91abb10fce8ac86776f2996561282aa09852f02640e91b24d1dbf114437c8
7
+ data.tar.gz: c2c4c95770b1cce3477ae5461a6571484faff5faf05dc6bb0a605804caf48727496007a632cc3ba071912bde1a9e7626561d7a4783c7e5cc4676c4a3e2243dae
@@ -59,8 +59,8 @@ module Elasticsearch
59
59
  end
60
60
 
61
61
  def import(options = {}, &block)
62
- __elasticsearch__.import(options.merge(criteria: criteria.type(to_s)), &block) +
63
- descendants.map { |cls| cls.import(options, &block) }.sum
62
+ __elasticsearch__.import(options.merge(criteria: criteria.type(to_s)), &block).to_i +
63
+ subclasses.sort_by(&:model_name).map { |cls| cls.import(options, &block) }.sum
64
64
  end
65
65
  end
66
66
  end
@@ -1,7 +1,7 @@
1
1
  module Elasticsearch
2
2
  module Model
3
3
  module MongoidExtensions
4
- VERSION = '0.1.2'.freeze
4
+ VERSION = '0.1.3'.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.2
4
+ version: 0.1.3
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-23 00:00:00.000000000 Z
11
+ date: 2016-10-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport