redi_search 6.2.1 → 6.2.2

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: 2a7656af524f13d697c28b1ad9978b0e1ec5e70a8fb5555a94467972934a6a27
4
+ data.tar.gz: 04a3be5fcd957856bf53debf35f8451bb4cf87ebf3d67ef682bd3c9207843191
5
5
  SHA512:
6
- metadata.gz: d3c5da280f8c65055b3b23cfa31ad78a427087f580feb0c2b5e087cb980d26c11d1afbb52ff3ee07c1443562b443e3fe5546bb6405fb16e9bf7f5403068418a9
7
- data.tar.gz: e7885f5201b2504d38aa882ef67b01bac6e2924f935da876f15a908179e2949edb60840e9d613d1dfe331bf78321903a9b11d8e4fbe91ef0413c08bda454a5cb
6
+ metadata.gz: 652a6ac7111fb71d5de4edf02a200258a4a7ad6d8af9f3e936edb5dbdea007b23693a07c531c51db73ba815f49e9938b7fd7119df7f7c5c217a5e17326db730e
7
+ data.tar.gz: c061ac90f9da7fe321979635a36d6251a6714f853a67767d632d137f27a7c137c43868a280b4a840341f975b66b54ee5a753eed73a1acb36df70c4ba0c4d2f37
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 3.1.2
1
+ 3.2.0-preview3
data/bin/console CHANGED
@@ -41,4 +41,6 @@ def reload!
41
41
  exec($0)
42
42
  end
43
43
 
44
+ seed_users(10)
45
+
44
46
  IRB.start
@@ -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.2"
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.2
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-19 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