couchbase 3.6.0-x86_64-linux → 3.7.0-x86_64-linux

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cdc2b97bd871eb187c612273f23478f5a30881d99123ab595fdd48219acfe82b
4
- data.tar.gz: ec350bb1ddbef4312e6d0a48b9d8cfd57a89e9e296e2547892b7989e5cd14f89
3
+ metadata.gz: 130d0c58154d82f0e434df21db4a08c2d7062290bb3c17fc78a329416338ce2f
4
+ data.tar.gz: 44d3dc2dc11b2caa2a2dcfd87a489810ea6a86806f27568b9ae14f6a619f0dfc
5
5
  SHA512:
6
- metadata.gz: 06430e9beabd75b3c74a92c7d33469fa18f2ef81664132e55db46d79f3aca4607173e90d88425d3d5054234fb958d566e5692e04e3a3334a6758d4bc6d3a77bd
7
- data.tar.gz: ba3227e122c7c1e46221c80f09b0a77f74739a790eb53c7d9015c4f900521720b5e536dcf2fd549810787ac222bb9d89d3f3dc81d3b2daa243ef20a526abfd77
6
+ metadata.gz: 23219ceb9a9d6f8059264a4a480b4408fedc4d68c67152f0b0af7e7250887a43859fbe012f424040acb4b2170edde31f2e7af43bc94b59a235b12364c75964cc
7
+ data.tar.gz: 40b17592a5c6b87582c670429bf5144e46f61fdcd0de0c9d6e7a6b5b7f4e53e38d25f88577f6bdff79b492eccd79a7d0829c3db3a8d8d2fbbe05c8d8752d0877
data/README.md CHANGED
@@ -23,7 +23,7 @@ The library has been tested with MRI 3.1, 3.2, 3.3 and 3.4. Supported platforms
23
23
  Add this line to your application's Gemfile:
24
24
 
25
25
  ```ruby
26
- gem "couchbase", "3.6.0"
26
+ gem "couchbase", "3.7.0"
27
27
  ```
28
28
 
29
29
  And then execute:
Binary file
Binary file
Binary file
Binary file
@@ -38,7 +38,7 @@ module Couchbase
38
38
 
39
39
  def self.convert_search_row(proto_row, options)
40
40
  Couchbase::Cluster::SearchRow.new do |r|
41
- r.instance_variable_set(:@fields, (proto_row.fields.to_h.transform_values { |v| JSON.parse(v) }).to_json)
41
+ r.instance_variable_set(:@fields, proto_row.fields.to_h.transform_values { |v| JSON.parse(v) }.to_json)
42
42
  r.transcoder = options.transcoder
43
43
  r.index = proto_row.index
44
44
  r.id = proto_row.id
@@ -321,8 +321,8 @@ module Couchbase
321
321
  # @yieldparam [BooleanFieldQuery] query
322
322
  #
323
323
  # @return [BooleanFieldQuery]
324
- def self.boolean_field(value)
325
- BooleanFieldQuery.new(value)
324
+ def self.boolean_field(value, &)
325
+ BooleanFieldQuery.new(value, &)
326
326
  end
327
327
 
328
328
  # Allow to match `true`/`false` in a field mapped as boolean.
@@ -1073,6 +1073,9 @@ module Couchbase
1073
1073
  # @return [Float, nil]
1074
1074
  attr_accessor :boost
1075
1075
 
1076
+ # @return [SearchQuery, nil]
1077
+ attr_accessor :prefilter
1078
+
1076
1079
  # Constructs a +VectorQuery+ instance
1077
1080
  #
1078
1081
  # @overload initialize(vector_field_name, vector_query)
@@ -1111,6 +1114,8 @@ module Couchbase
1111
1114
  boost: boost,
1112
1115
  }.compact
1113
1116
 
1117
+ h[:filter] = prefilter.to_h unless prefilter.nil?
1118
+
1114
1119
  raise Error::InvalidArgument, "The vector cannot be nil" if !h.include?(:vector) && !h.include?(:vector_base64)
1115
1120
  raise Error::InvalidArgument, "The vector query cannot be an empty array" if h.include?(:vector) && h[:vector].empty?
1116
1121
 
@@ -21,5 +21,5 @@ module Couchbase
21
21
  # $ ruby -rcouchbase -e 'pp Couchbase::VERSION'
22
22
  # {:sdk=>"3.4.0", :ruby_abi=>"3.1.0", :revision=>"416fe68e6029ec8a4c40611cf6e6b30d3b90d20f"}
23
23
  VERSION = {} unless defined?(VERSION) # rubocop:disable Style/MutableConstant
24
- VERSION.update(:sdk => "3.6.0")
24
+ VERSION.update(:sdk => "3.7.0")
25
25
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couchbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.0
4
+ version: 3.7.0
5
5
  platform: x86_64-linux
6
6
  authors:
7
7
  - Sergey Avseyev
8
8
  bindir: exe
9
9
  cert_chain: []
10
- date: 2025-06-02 00:00:00.000000000 Z
10
+ date: 2025-09-29 00:00:00.000000000 Z
11
11
  dependencies:
12
12
  - !ruby/object:Gem::Dependency
13
13
  name: grpc
@@ -163,9 +163,9 @@ metadata:
163
163
  homepage_uri: https://docs.couchbase.com/ruby-sdk/current/hello-world/start-using-sdk.html
164
164
  bug_tracker_uri: https://jira.issues.couchbase.com/browse/RCBC
165
165
  mailing_list_uri: https://www.couchbase.com/forums/c/ruby-sdk
166
- source_code_uri: https://github.com/couchbase/couchbase-ruby-client/tree/3.6.0
167
- changelog_uri: https://github.com/couchbase/couchbase-ruby-client/releases/tag/3.6.0
168
- documentation_uri: https://docs.couchbase.com/sdk-api/couchbase-ruby-client-3.6.0/index.html
166
+ source_code_uri: https://github.com/couchbase/couchbase-ruby-client/tree/3.7.0
167
+ changelog_uri: https://github.com/couchbase/couchbase-ruby-client/releases/tag/3.7.0
168
+ documentation_uri: https://docs.couchbase.com/sdk-api/couchbase-ruby-client-3.7.0/index.html
169
169
  github_repo: https://github.com/couchbase/couchbase-ruby-client
170
170
  rubygems_mfa_required: 'true'
171
171
  rdoc_options: