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 +4 -4
- data/lib/co-elastic-query.rb +1 -1
- data/lib/co-elastic-query/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4389b2a1e238f60babf42360ca0516ce80a44c08
|
4
|
+
data.tar.gz: 28812f1413d6fbf0a77fa146b6292d59c9cd75fb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cdb2822452dad56ea492abcf1a248b766cc81b64b34e5789bd762b502c86076bebf227709385d5be8c660760e481f76e79b4e0f9f980b2d49b08d3e9c9ca82bf
|
7
|
+
data.tar.gz: bbec41df09fc57dc948f85dcde4776c17c158f8a4a9f34c1bebc091674c80d95702ad851ec4c1dd8975895e9c6f2d67d0e61101dc92d1e080fbfea463ae360a4
|
data/lib/co-elastic-query.rb
CHANGED
@@ -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
|
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.
|
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:
|
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.
|
106
|
+
rubygems_version: 2.6.10
|
107
107
|
signing_key:
|
108
108
|
specification_version: 4
|
109
109
|
summary: Elasticsearch query generator
|