couchbase 3.0.0.alpha.2-universal-darwin-19 → 3.0.0.alpha.3-universal-darwin-19

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.
Files changed (83) hide show
  1. checksums.yaml +4 -4
  2. data/.github/workflows/tests-dev-preview.yml +52 -0
  3. data/.gitmodules +3 -0
  4. data/.idea/vcs.xml +1 -0
  5. data/.yardopts +1 -0
  6. data/README.md +1 -1
  7. data/Rakefile +5 -1
  8. data/bin/init-cluster +13 -5
  9. data/couchbase.gemspec +2 -1
  10. data/examples/managing_query_indexes.rb +1 -1
  11. data/examples/managing_search_indexes.rb +62 -0
  12. data/examples/search.rb +187 -0
  13. data/ext/.clang-tidy +1 -0
  14. data/ext/build_version.hxx.in +1 -1
  15. data/ext/couchbase/bucket.hxx +0 -40
  16. data/ext/couchbase/couchbase.cxx +2578 -1368
  17. data/ext/couchbase/io/http_session.hxx +27 -7
  18. data/ext/couchbase/io/mcbp_parser.hxx +2 -0
  19. data/ext/couchbase/io/mcbp_session.hxx +53 -24
  20. data/ext/couchbase/io/session_manager.hxx +6 -1
  21. data/ext/couchbase/operations.hxx +13 -0
  22. data/ext/couchbase/operations/bucket_create.hxx +1 -0
  23. data/ext/couchbase/operations/bucket_drop.hxx +1 -0
  24. data/ext/couchbase/operations/bucket_flush.hxx +1 -0
  25. data/ext/couchbase/operations/bucket_get.hxx +1 -0
  26. data/ext/couchbase/operations/bucket_get_all.hxx +1 -0
  27. data/ext/couchbase/operations/bucket_update.hxx +1 -0
  28. data/ext/couchbase/operations/cluster_developer_preview_enable.hxx +1 -0
  29. data/ext/couchbase/operations/collection_create.hxx +6 -1
  30. data/ext/couchbase/operations/collection_drop.hxx +1 -0
  31. data/ext/couchbase/operations/command.hxx +86 -11
  32. data/ext/couchbase/operations/document_decrement.hxx +1 -0
  33. data/ext/couchbase/operations/document_exists.hxx +1 -0
  34. data/ext/couchbase/operations/document_get.hxx +1 -0
  35. data/ext/couchbase/operations/document_get_and_lock.hxx +1 -0
  36. data/ext/couchbase/operations/document_get_and_touch.hxx +1 -0
  37. data/ext/couchbase/operations/document_get_projected.hxx +243 -0
  38. data/ext/couchbase/operations/document_increment.hxx +4 -1
  39. data/ext/couchbase/operations/document_insert.hxx +1 -0
  40. data/ext/couchbase/operations/document_lookup_in.hxx +1 -0
  41. data/ext/couchbase/operations/document_mutate_in.hxx +1 -0
  42. data/ext/couchbase/operations/document_query.hxx +13 -2
  43. data/ext/couchbase/operations/document_remove.hxx +1 -0
  44. data/ext/couchbase/operations/document_replace.hxx +1 -0
  45. data/ext/couchbase/operations/document_search.hxx +337 -0
  46. data/ext/couchbase/operations/document_touch.hxx +1 -0
  47. data/ext/couchbase/operations/document_unlock.hxx +1 -0
  48. data/ext/couchbase/operations/document_upsert.hxx +1 -0
  49. data/ext/couchbase/operations/query_index_build_deferred.hxx +1 -0
  50. data/ext/couchbase/operations/query_index_create.hxx +1 -0
  51. data/ext/couchbase/operations/query_index_drop.hxx +1 -0
  52. data/ext/couchbase/operations/query_index_get_all.hxx +1 -0
  53. data/ext/couchbase/operations/scope_create.hxx +1 -0
  54. data/ext/couchbase/operations/scope_drop.hxx +1 -0
  55. data/ext/couchbase/operations/scope_get_all.hxx +2 -0
  56. data/ext/couchbase/operations/search_index.hxx +62 -0
  57. data/ext/couchbase/operations/search_index_analyze_document.hxx +92 -0
  58. data/ext/couchbase/operations/search_index_control_ingest.hxx +78 -0
  59. data/ext/couchbase/operations/search_index_control_plan_freeze.hxx +80 -0
  60. data/ext/couchbase/operations/search_index_control_query.hxx +80 -0
  61. data/ext/couchbase/operations/search_index_drop.hxx +77 -0
  62. data/ext/couchbase/operations/search_index_get.hxx +80 -0
  63. data/ext/couchbase/operations/search_index_get_all.hxx +82 -0
  64. data/ext/couchbase/operations/search_index_get_documents_count.hxx +81 -0
  65. data/ext/couchbase/operations/search_index_upsert.hxx +106 -0
  66. data/ext/couchbase/protocol/client_opcode.hxx +10 -0
  67. data/ext/couchbase/protocol/cmd_get_collection_id.hxx +117 -0
  68. data/ext/couchbase/timeout_defaults.hxx +32 -0
  69. data/ext/couchbase/version.hxx +1 -1
  70. data/ext/test/main.cxx +5 -5
  71. data/lib/couchbase/binary_collection.rb +16 -12
  72. data/lib/couchbase/binary_collection_options.rb +4 -0
  73. data/lib/couchbase/cluster.rb +88 -8
  74. data/lib/couchbase/collection.rb +39 -15
  75. data/lib/couchbase/collection_options.rb +19 -2
  76. data/lib/couchbase/json_transcoder.rb +2 -2
  77. data/lib/couchbase/management/bucket_manager.rb +37 -23
  78. data/lib/couchbase/management/collection_manager.rb +15 -6
  79. data/lib/couchbase/management/query_index_manager.rb +16 -6
  80. data/lib/couchbase/management/search_index_manager.rb +61 -14
  81. data/lib/couchbase/search_options.rb +1492 -0
  82. data/lib/couchbase/version.rb +1 -1
  83. metadata +22 -2
@@ -14,5 +14,5 @@
14
14
 
15
15
  module Couchbase
16
16
  VERSION = {} unless defined?(VERSION)
17
- VERSION.update(:sdk => "3.0.0.alpha.2".freeze)
17
+ VERSION.update(:sdk => "3.0.0.alpha.3".freeze)
18
18
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: couchbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0.alpha.2
4
+ version: 3.0.0.alpha.3
5
5
  platform: universal-darwin-19
6
6
  authors:
7
7
  - Sergey Avseyev
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-06-02 00:00:00.000000000 Z
11
+ date: 2020-06-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -74,6 +74,7 @@ extensions: []
74
74
  extra_rdoc_files: []
75
75
  files:
76
76
  - ".github/workflows/tests-6.0.3.yml"
77
+ - ".github/workflows/tests-dev-preview.yml"
77
78
  - ".github/workflows/tests.yml"
78
79
  - ".gitignore"
79
80
  - ".gitmodules"
@@ -81,6 +82,7 @@ files:
81
82
  - ".idea/dictionaries/gem_terms.xml"
82
83
  - ".idea/inspectionProfiles/Project_Default.xml"
83
84
  - ".idea/vcs.xml"
85
+ - ".yardopts"
84
86
  - Gemfile
85
87
  - LICENSE.txt
86
88
  - README.md
@@ -93,8 +95,10 @@ files:
93
95
  - examples/managing_buckets.rb
94
96
  - examples/managing_collections.rb
95
97
  - examples/managing_query_indexes.rb
98
+ - examples/managing_search_indexes.rb
96
99
  - examples/query.rb
97
100
  - examples/query_with_consistency.rb
101
+ - examples/search.rb
98
102
  - examples/subdocument.rb
99
103
  - ext/.clang-format
100
104
  - ext/.clang-tidy
@@ -158,6 +162,7 @@ files:
158
162
  - ext/couchbase/operations/document_get.hxx
159
163
  - ext/couchbase/operations/document_get_and_lock.hxx
160
164
  - ext/couchbase/operations/document_get_and_touch.hxx
165
+ - ext/couchbase/operations/document_get_projected.hxx
161
166
  - ext/couchbase/operations/document_increment.hxx
162
167
  - ext/couchbase/operations/document_insert.hxx
163
168
  - ext/couchbase/operations/document_lookup_in.hxx
@@ -165,6 +170,7 @@ files:
165
170
  - ext/couchbase/operations/document_query.hxx
166
171
  - ext/couchbase/operations/document_remove.hxx
167
172
  - ext/couchbase/operations/document_replace.hxx
173
+ - ext/couchbase/operations/document_search.hxx
168
174
  - ext/couchbase/operations/document_touch.hxx
169
175
  - ext/couchbase/operations/document_unlock.hxx
170
176
  - ext/couchbase/operations/document_upsert.hxx
@@ -175,6 +181,16 @@ files:
175
181
  - ext/couchbase/operations/scope_create.hxx
176
182
  - ext/couchbase/operations/scope_drop.hxx
177
183
  - ext/couchbase/operations/scope_get_all.hxx
184
+ - ext/couchbase/operations/search_index.hxx
185
+ - ext/couchbase/operations/search_index_analyze_document.hxx
186
+ - ext/couchbase/operations/search_index_control_ingest.hxx
187
+ - ext/couchbase/operations/search_index_control_plan_freeze.hxx
188
+ - ext/couchbase/operations/search_index_control_query.hxx
189
+ - ext/couchbase/operations/search_index_drop.hxx
190
+ - ext/couchbase/operations/search_index_get.hxx
191
+ - ext/couchbase/operations/search_index_get_all.hxx
192
+ - ext/couchbase/operations/search_index_get_documents_count.hxx
193
+ - ext/couchbase/operations/search_index_upsert.hxx
178
194
  - ext/couchbase/platform/base64.cc
179
195
  - ext/couchbase/platform/base64.h
180
196
  - ext/couchbase/platform/random.cc
@@ -193,6 +209,7 @@ files:
193
209
  - ext/couchbase/protocol/cmd_get_and_lock.hxx
194
210
  - ext/couchbase/protocol/cmd_get_and_touch.hxx
195
211
  - ext/couchbase/protocol/cmd_get_cluster_config.hxx
212
+ - ext/couchbase/protocol/cmd_get_collection_id.hxx
196
213
  - ext/couchbase/protocol/cmd_get_collections_manifest.hxx
197
214
  - ext/couchbase/protocol/cmd_get_error_map.hxx
198
215
  - ext/couchbase/protocol/cmd_hello.hxx
@@ -220,6 +237,7 @@ files:
220
237
  - ext/couchbase/protocol/status.hxx
221
238
  - ext/couchbase/protocol/unsigned_leb128.h
222
239
  - ext/couchbase/service_type.hxx
240
+ - ext/couchbase/timeout_defaults.hxx
223
241
  - ext/couchbase/utils/byteswap.hxx
224
242
  - ext/couchbase/utils/crc32.hxx
225
243
  - ext/couchbase/utils/url_codec.hxx
@@ -2134,6 +2152,7 @@ files:
2134
2152
  - lib/couchbase/management/view_index_manager.rb
2135
2153
  - lib/couchbase/mutation_state.rb
2136
2154
  - lib/couchbase/scope.rb
2155
+ - lib/couchbase/search_options.rb
2137
2156
  - lib/couchbase/subdoc.rb
2138
2157
  - lib/couchbase/version.rb
2139
2158
  - rbi/couchbase.rbi
@@ -2144,6 +2163,7 @@ metadata:
2144
2163
  homepage_uri: https://www.couchbase.com
2145
2164
  source_code_uri: https://github.com/couchbase/couchbase-ruby-client
2146
2165
  changelog_uri: https://github.com/couchbase/couchbase-ruby-client/releases
2166
+ github_repo: ssh://github.com/couchbase/couchbase-ruby-client
2147
2167
  post_install_message:
2148
2168
  rdoc_options:
2149
2169
  - "--exclude"