redi_search 6.2.1 → 6.2.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
  SHA256:
3
- metadata.gz: f5e01a6fcd9583418d4f6398b622f6c1e7ba773df081841de2787f17634712fe
4
- data.tar.gz: d164a38b4997bf6605f07a596bb361ce770961d38dbb8f2610ec50c3dd3ccb78
3
+ metadata.gz: 63f3598056b4046322f6e50414541041778818d7c7acde364329c8d36d1cebe2
4
+ data.tar.gz: 9b4c6c195b823c4c8e9110b5266004c6a1e74cb64fca4902723761dcf85c007a
5
5
  SHA512:
6
- metadata.gz: d3c5da280f8c65055b3b23cfa31ad78a427087f580feb0c2b5e087cb980d26c11d1afbb52ff3ee07c1443562b443e3fe5546bb6405fb16e9bf7f5403068418a9
7
- data.tar.gz: e7885f5201b2504d38aa882ef67b01bac6e2924f935da876f15a908179e2949edb60840e9d613d1dfe331bf78321903a9b11d8e4fbe91ef0413c08bda454a5cb
6
+ metadata.gz: 4d3f448529f1d98d046b6432c4016e0548d17dba2c4d8f88904ea04ab341dd1315bb4e2793ad200cb143161343d3bf104a7f141a69157b15ee7bf9cd851ff9d0
7
+ data.tar.gz: 02b8cffcdedd94b78bc38c0fa19b9aba0d28642f96396dc6cfcf5cd4f6cef6eead62c5dbb2562ef00de6d27eefd72cbcf115d852b9373becf5009477dcb30089
@@ -31,7 +31,7 @@ jobs:
31
31
  runs-on: ubuntu-latest
32
32
  strategy:
33
33
  matrix:
34
- redisearch: [ '2.4.14' ]
34
+ redisearch: [ '2.4.16' ]
35
35
  services:
36
36
  redisearch:
37
37
  image: redislabs/redisearch:${{ matrix.redisearch }}
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.2
1
+ 3.2.0-preview3
@@ -20,7 +20,7 @@ module RediSearch
20
20
  record.instance_exec(&value_block)
21
21
  else
22
22
  record.public_send(name)
23
- end
23
+ end.to_s
24
24
  end
25
25
 
26
26
  private
@@ -15,7 +15,7 @@ module RediSearch
15
15
  end
16
16
 
17
17
  def to_s
18
- return prior_clause if field.nil?
18
+ return prior_clause.to_s if field.nil?
19
19
 
20
20
  [
21
21
  prior_clause,
@@ -60,11 +60,13 @@ module RediSearch
60
60
  def where(**condition)
61
61
  @term_clause = Where.new(self, condition, @term_clause)
62
62
 
63
- if condition.empty?
64
- @term_clause
65
- else
66
- self
67
- end
63
+ self
64
+ end
65
+
66
+ def not(**condition)
67
+ raise NoMethodError unless @term_clause.is_a?(Where)
68
+
69
+ @term_clause.not(condition)
68
70
  end
69
71
 
70
72
  def and(new_term = nil, **term_options)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RediSearch
4
- VERSION = "6.2.1"
4
+ VERSION = "6.2.3"
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.1
4
+ version: 6.2.3
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-11-08 00:00:00.000000000 Z
11
+ date: 2022-11-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -211,7 +211,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
211
211
  - !ruby/object:Gem::Version
212
212
  version: '0'
213
213
  requirements: []
214
- rubygems_version: 3.3.7
214
+ rubygems_version: 3.4.0.dev
215
215
  signing_key:
216
216
  specification_version: 4
217
217
  summary: RediSearch ruby wrapper that can integrate with Rails