redi_search 6.2.0 → 6.2.1

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
  SHA256:
3
- metadata.gz: abbf004d9d5da6b9b1a8365f1f6a667b4168f26a6b215a0409eefb9d8f4f5cf9
4
- data.tar.gz: 89b83febf81d470c2b99a9e2e78ba89e9714d754c8d9b9ee889c5df3fa23c836
3
+ metadata.gz: f5e01a6fcd9583418d4f6398b622f6c1e7ba773df081841de2787f17634712fe
4
+ data.tar.gz: d164a38b4997bf6605f07a596bb361ce770961d38dbb8f2610ec50c3dd3ccb78
5
5
  SHA512:
6
- metadata.gz: 566b82144d8637430556a3da5467c416a83a52b040239cc33d21a2786933f4f832384790b3397f48af2040c607a4ebab0ccb77c996a71d4a2dc06ee98c358bf9
7
- data.tar.gz: a0ffb2e0db34056b9a8985214801b9065401988540fc3e4e0b0f4ddf1600aac0c8a7c7513e33d95e2f71847df8c788e142bdb99e60cc302f8dfdcf48ed23c17a
6
+ metadata.gz: d3c5da280f8c65055b3b23cfa31ad78a427087f580feb0c2b5e087cb980d26c11d1afbb52ff3ee07c1443562b443e3fe5546bb6405fb16e9bf7f5403068418a9
7
+ data.tar.gz: e7885f5201b2504d38aa882ef67b01bac6e2924f935da876f15a908179e2949edb60840e9d613d1dfe331bf78321903a9b11d8e4fbe91ef0413c08bda454a5cb
@@ -15,6 +15,8 @@ module RediSearch
15
15
  end
16
16
 
17
17
  def to_s
18
+ return prior_clause if field.nil?
19
+
18
20
  [
19
21
  prior_clause,
20
22
  "(#{not_operator}@#{field}:#{queryify_term})"
@@ -52,7 +52,7 @@ module RediSearch
52
52
 
53
53
  def stringify_query
54
54
  term.to_s.
55
- tr("`", "\`").
55
+ tr("`", "`").
56
56
  then { |str| "#{fuzzy_operator}#{str}#{fuzzy_operator}" }.
57
57
  then { |str| "#{optional_operator}#{str}" }.
58
58
  then { |str| "#{str}#{prefix_operator}" }.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RediSearch
4
- VERSION = "6.2.0"
4
+ VERSION = "6.2.1"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redi_search
3
3
  version: !ruby/object:Gem::Version
4
- version: 6.2.0
4
+ version: 6.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nick Pezza
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2022-09-01 00:00:00.000000000 Z
11
+ date: 2022-11-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport