lsolr 0.1.8 → 0.1.9
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/lsolr.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e49132ead477dd5f50d86d46cec871e47a7b33db
|
4
|
+
data.tar.gz: 9ce3049d5577571cea8a650635f0af9d3517285b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a1db34ed53ab514e0c80f92897bdb74187d3e157a63486eae973dae95429530ec279490aee62f2f5aaabf87e94b78bbfa0715046b9f2dfacd6da41c6b33a16c
|
7
|
+
data.tar.gz: 2587c78f6de1121226ed98b026e2afa1b0611750037caae7d0c5a9a2acf51250a5bf7810c13462f1dc675bbc7e61faaf1087d10d3716c03b2b0cb43e8ba7d5d6
|
data/lib/lsolr.rb
CHANGED
@@ -255,7 +255,7 @@ class LSolr
|
|
255
255
|
#
|
256
256
|
# @return [LSolr] self instance
|
257
257
|
def match_in(values)
|
258
|
-
raise ArgumentError, "#{values.inspect} given. Must be a not empty array." if values.nil? || values.
|
258
|
+
raise ArgumentError, "#{values.inspect} given. Must be a not empty array." if values.nil? || !values.is_a?(Array) || values.empty?
|
259
259
|
|
260
260
|
values = values.map { |v| clean(v) }
|
261
261
|
@value = "(#{values.join(MULTI_VALUE_MATCH_DELIMITER)})"
|