redi_search 6.1.1 → 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: 779fa58ead3f1109819deb5b8884eb9bbcfccbd34017a8288450f19077abdac6
4
- data.tar.gz: caad3d0dec14dfea3ad2098d406a90c1c3f2afa99c416379726f4361f41c7eb2
3
+ metadata.gz: f5e01a6fcd9583418d4f6398b622f6c1e7ba773df081841de2787f17634712fe
4
+ data.tar.gz: d164a38b4997bf6605f07a596bb361ce770961d38dbb8f2610ec50c3dd3ccb78
5
5
  SHA512:
6
- metadata.gz: 778f9c57db20bde51dc953baa1c73deb54f2fe4c7783c017e3f5c76ab1c9b467bc10359ae1614e0fab512acfb170e3f3565edb600b87d580a6e7d82c766875b9
7
- data.tar.gz: 850c1f47ffadcadb6fd98de2fc7a550d1d770179c14e99ffd1fa81e6a9147c6dcbc632f6e798c53437d4997b381dbc273263000b33472a4dd89991d4dccf1433
6
+ metadata.gz: d3c5da280f8c65055b3b23cfa31ad78a427087f580feb0c2b5e087cb980d26c11d1afbb52ff3ee07c1443562b443e3fe5546bb6405fb16e9bf7f5403068418a9
7
+ data.tar.gz: e7885f5201b2504d38aa882ef67b01bac6e2924f935da876f15a908179e2949edb60840e9d613d1dfe331bf78321903a9b11d8e4fbe91ef0413c08bda454a5cb
@@ -31,7 +31,7 @@ jobs:
31
31
  runs-on: ubuntu-latest
32
32
  strategy:
33
33
  matrix:
34
- redisearch: [ '2.4.7' ]
34
+ redisearch: [ '2.4.14' ]
35
35
  services:
36
36
  redisearch:
37
37
  image: redislabs/redisearch:${{ matrix.redisearch }}
data/.ruby-version ADDED
@@ -0,0 +1 @@
1
+ 3.1.2
data/bin/console CHANGED
@@ -22,7 +22,6 @@ class User < ActiveRecord::Base
22
22
  redi_search do
23
23
  text_field :first, phonetic: "dm:en"
24
24
  text_field :last, phonetic: "dm:en"
25
- tag_field :tags
26
25
  text_field :name, phonetic: "dm:en" do
27
26
  "#{first} #{last}"
28
27
  end
@@ -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.1.1"
4
+ VERSION = "6.2.1"
5
5
  end
data/redi_search.gemspec CHANGED
@@ -29,7 +29,7 @@ Gem::Specification.new do |spec|
29
29
  spec.required_ruby_version = ">= 2.7.0"
30
30
 
31
31
  spec.add_runtime_dependency "activesupport", ">= 5.1", "< 7.1"
32
- spec.add_runtime_dependency "redis", ">= 4.0", "< 5.0"
32
+ spec.add_runtime_dependency "redis", ">= 4.0", "< 6.0"
33
33
  spec.add_runtime_dependency "zeitwerk"
34
34
 
35
35
  spec.add_development_dependency "bundler", ">= 1.17", "< 3"
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.1.1
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-05-22 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
@@ -39,7 +39,7 @@ dependencies:
39
39
  version: '4.0'
40
40
  - - "<"
41
41
  - !ruby/object:Gem::Version
42
- version: '5.0'
42
+ version: '6.0'
43
43
  type: :runtime
44
44
  prerelease: false
45
45
  version_requirements: !ruby/object:Gem::Requirement
@@ -49,7 +49,7 @@ dependencies:
49
49
  version: '4.0'
50
50
  - - "<"
51
51
  - !ruby/object:Gem::Version
52
- version: '5.0'
52
+ version: '6.0'
53
53
  - !ruby/object:Gem::Dependency
54
54
  name: zeitwerk
55
55
  requirement: !ruby/object:Gem::Requirement
@@ -125,6 +125,7 @@ files:
125
125
  - ".github/workflows/tests.yml"
126
126
  - ".gitignore"
127
127
  - ".rubocop.yml"
128
+ - ".ruby-version"
128
129
  - Appraisals
129
130
  - CODE_OF_CONDUCT.md
130
131
  - Gemfile