trample_search 0.18.2 → 0.18.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/trample/backend/searchkick.rb +4 -2
- data/lib/trample/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9260c44c8f72c7b2c173eea97d06b39e7ca6e3b2
|
4
|
+
data.tar.gz: 86a1f475db4f2f119ce84bb8d56f0febdb80b42f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6a1319f305e3abf044bb68371911549e508fe2875f067ad9fc5fb8ce824ca6c173c3c41bf01a3da224911a8bf777ebd5952d01d073e96ccfcf3a32c6877d9bb4
|
7
|
+
data.tar.gz: 6dce0129188d5a91700cbeb26d000ab1644a7411146f2a77cfd58baef709ca64cde302c33c2ecaa88d7bdd9f2040d9cbefa8fd47eea7c413e74e19606f3e4024
|
@@ -60,8 +60,10 @@ module Trample
|
|
60
60
|
end
|
61
61
|
|
62
62
|
def keywords(conditions)
|
63
|
-
|
64
|
-
|
63
|
+
condition = conditions[:keywords]
|
64
|
+
value = condition.values.first if condition and condition.values
|
65
|
+
if ![nil, ''].include?(value)
|
66
|
+
value
|
65
67
|
else
|
66
68
|
'*'
|
67
69
|
end
|
data/lib/trample/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: trample_search
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.18.
|
4
|
+
version: 0.18.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- richmolj
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-10-
|
11
|
+
date: 2016-10-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: virtus
|