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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3dbcce270c919c7131cfea3830acf2c621914f66
4
- data.tar.gz: 2a2ca9a12228a75a064294b09714e400f5987e96
3
+ metadata.gz: 9260c44c8f72c7b2c173eea97d06b39e7ca6e3b2
4
+ data.tar.gz: 86a1f475db4f2f119ce84bb8d56f0febdb80b42f
5
5
  SHA512:
6
- metadata.gz: 1df72ce11257681fc579b3403d38a7e4ac4fd102cd74c566abee139f0141e089af1ce6819928efece84383e0167d1f02297465e5a514e0eb4558ffefb3e6a3b6
7
- data.tar.gz: 8c6286c81340fe879f8e888bc9e4d6223a53e78da30400fcfdae19d7466ce06346551f4cd1f6c716017daf06a34271a6d279f898e776e63b4aa66a011faee120
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
- if conditions[:keywords] and ![nil, ''].include?(conditions[:keywords].values.first)
64
- conditions[:keywords].values.first
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
@@ -1,3 +1,3 @@
1
1
  module Trample
2
- VERSION = "0.18.2"
2
+ VERSION = "0.18.3"
3
3
  end
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.2
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-10 00:00:00.000000000 Z
11
+ date: 2016-10-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: virtus