co-elastic-query 3.0.0 → 3.0.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: 272fbfdde2a3ddd572f3e0c7844a448d97db7969
4
- data.tar.gz: cfa9c09c6d013de19cae93b59838e42d0bea139f
3
+ metadata.gz: 4389b2a1e238f60babf42360ca0516ce80a44c08
4
+ data.tar.gz: 28812f1413d6fbf0a77fa146b6292d59c9cd75fb
5
5
  SHA512:
6
- metadata.gz: 56a14cc3c46d4b25702a82e9ef4a0f52f9f18713c09315158639717c0c975ad23d4988d7c27d65e6b0252e1eef39e269a90fc0ea0adbefd8713baa5c58aa8fd8
7
- data.tar.gz: bb8c2ab2e0b0bcada7ba7246ce2a3729634b8608f543c2dafdc77a4b33f4da53a143254dfdeefd772e613186710668814b94105693f1d632273b19ded41602e1
6
+ metadata.gz: cdb2822452dad56ea492abcf1a248b766cc81b64b34e5789bd762b502c86076bebf227709385d5be8c660760e481f76e79b4e0f9f980b2d49b08d3e9c9ca82bf
7
+ data.tar.gz: bbec41df09fc57dc948f85dcde4776c17c158f8a4a9f34c1bebc091674c80d95702ad851ec4c1dd8975895e9c6f2d67d0e61101dc92d1e080fbfea463ae360a4
@@ -338,7 +338,7 @@ class Elastic
338
338
  # currently logged in user is an admin of the group). nils are removed
339
339
  # from the list.
340
340
  result = Elastic.search(query)
341
- records = @klass.find_by_id(result[HITS][HITS].map {|entry| entry[ID]}) || []
341
+ records = Array(@klass.find_by_id(result[HITS][HITS].map {|entry| entry[ID]}))
342
342
  {
343
343
  total: result[HITS][TOTAL] || 0,
344
344
  results: block_given? ? (records.map {|record| yield record}).compact : records
@@ -1,3 +1,3 @@
1
1
  module CoElasticQuery
2
- VERSION = "3.0.0"
2
+ VERSION = "3.0.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: co-elastic-query
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen von Takach
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2016-10-20 00:00:00.000000000 Z
12
+ date: 2017-03-04 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  version: '0'
104
104
  requirements: []
105
105
  rubyforge_project:
106
- rubygems_version: 2.5.1
106
+ rubygems_version: 2.6.10
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: Elasticsearch query generator