lsolr 0.1.1 → 0.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +5 -5
  2. data/lib/lsolr.rb +2 -0
  3. metadata +3 -3
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA256:
3
- metadata.gz: 1e75a43fc67a6ff02216d1c5b0d9fa6daeeee15ff9e5bcff47262de740325370
4
- data.tar.gz: 05dc3a9fca1cf448cafd9a72929eb5c9749b3a79484a77c50530fe705415b6d3
2
+ SHA1:
3
+ metadata.gz: 25bce1dc030cbb341e8d705adc503e0e1e17c8f3
4
+ data.tar.gz: 5fb367c38c9672ff05890c43b0b91fa4bec7c094
5
5
  SHA512:
6
- metadata.gz: 46405ec4cd25e20f6810b633a9a2526b1e2f58a733e46321b9560c917b552c3b2516da21cf1b8f03c483a761a5291646ea2eabe2ff7dfb1749fc6751f57bf20e
7
- data.tar.gz: 1fce5e18a576157be0c77559633092a26adc601208b008078402072882318207d0852ce655f3bf13f9bdead3a4902f27c851cff8db40473c99b30e499c8ff6e0
6
+ metadata.gz: 94ac718ad72a7a49636fec7ecb1a47723e56f285d3d628c2db02beb5db2c8a9ba4f9244efc19c2467460d9f102dbf7b855857e62c4e91e995a57511ca7f3bebb
7
+ data.tar.gz: 943982244f025a615550a34a9bf22b107835f97e7250570b2400086460c44833d1a6ef8bac54fb6b4d770a3f789703373442f6227d51b0452b08cbc269d8855f
@@ -106,6 +106,8 @@ class LSolr
106
106
  end
107
107
 
108
108
  def build_array_query(field, values)
109
+ return LSolr.new(:dummy) if values.empty?
110
+
109
111
  values.map { |v| build_query(field, v) }.reduce { |a, e| a.or(e) }.wrap
110
112
  end
111
113
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lsolr
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
  - Taishi Kasuga
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-12-28 00:00:00.000000000 Z
11
+ date: 2018-01-17 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: LSolr is a query builder of Apache Solr standard Lucene type query for
14
14
  Ruby.
@@ -38,7 +38,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
38
38
  version: '0'
39
39
  requirements: []
40
40
  rubyforge_project:
41
- rubygems_version: 2.7.3
41
+ rubygems_version: 2.6.14
42
42
  signing_key:
43
43
  specification_version: 4
44
44
  summary: A query builder of Apache Solr for Ruby