mt-libcouchbase 1.4.0 → 1.4.02
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 +4 -4
- data/lib/mt-libcouchbase/connection.rb +5 -1
- data/lib/mt-libcouchbase/version.rb +1 -1
- data/spec/bucket_spec.rb +1 -1
- data/spec/connection_spec.rb +1 -1
- data/spec/fts_spec.rb +1 -1
- data/spec/n1ql_spec.rb +2 -2
- data/spec/results_libuv_spec.rb +2 -2
- data/spec/results_native_spec.rb +2 -2
- data/spec/subdoc_spec.rb +1 -1
- data/spec/view_spec.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 76c99133f1f92aa3573a4f83c6c12f8407f059b8842b79c03c03d86b8d1b3a33
|
4
|
+
data.tar.gz: b48fa7a6a9a55fef3633a0c24ce406508dcef06f537759f5de4845fc4a0efe02
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2e1dde2fd37f3c565ddb86d613d4783381df8172124845823af9dd833cb796f2e87a6ccb41008ccaad0eea2be79183b4c64d2ee09041fd09a00cb64733c271e0
|
7
|
+
data.tar.gz: c75f7dc0f3f2eb84951813dc1e67127a037fad75cad748fbc00308c05119f83f8e45b83c2b98a849e9022e086802d0676d766a185b0554a99c500b1d48325acf
|
@@ -63,7 +63,11 @@ module MTLibcouchbase
|
|
63
63
|
def initialize(hosts: Defaults.host, bucket: Defaults.bucket, username: Defaults.username, password: Defaults.password, thread: nil, **opts)
|
64
64
|
# build host string http://docs.couchbase.com/sdk-api/couchbase-c-client-2.5.6/group__lcb-init.html
|
65
65
|
hosts = Array(hosts).flatten.join(',')
|
66
|
-
|
66
|
+
if hosts.start_with? 'couchbase'
|
67
|
+
connstr = "#{hosts}/#{bucket}"
|
68
|
+
else
|
69
|
+
connstr = "couchbase://#{hosts}/#{bucket}"
|
70
|
+
end
|
67
71
|
connstr = "#{connstr}?#{opts.map { |k, v| "#{k}=#{v}" }.join('&') }" unless opts.empty?
|
68
72
|
|
69
73
|
# It's good to know
|
data/spec/bucket_spec.rb
CHANGED
data/spec/connection_spec.rb
CHANGED
data/spec/fts_spec.rb
CHANGED
@@ -7,7 +7,7 @@ describe MTLibcouchbase::QueryFullText, full_text_search: true do
|
|
7
7
|
before :each do
|
8
8
|
# This will load the couchbase connection on a different thread
|
9
9
|
@bucket = MTLibcouchbase::Bucket.new
|
10
|
-
@reactor = ::
|
10
|
+
@reactor = ::MTLibuv::Reactor.default
|
11
11
|
@log = []
|
12
12
|
end
|
13
13
|
|
data/spec/n1ql_spec.rb
CHANGED
@@ -97,7 +97,7 @@ describe MTLibcouchbase::N1QL, n1ql_query: true do
|
|
97
97
|
context "without error syntax query" do
|
98
98
|
before :each do
|
99
99
|
@n1ql.select('*').from(:default).where('type == "mod"')
|
100
|
-
@reactor = ::
|
100
|
+
@reactor = ::MTLibuv::Reactor.default
|
101
101
|
end
|
102
102
|
|
103
103
|
it "should iterate results" do
|
@@ -160,7 +160,7 @@ describe MTLibcouchbase::N1QL, n1ql_query: true do
|
|
160
160
|
context "with error syntax query" do
|
161
161
|
before :each do
|
162
162
|
@n1ql.select('*azdzadazdzadza').from(:default).where('type == "mod"')
|
163
|
-
@reactor = ::
|
163
|
+
@reactor = ::MTLibuv::Reactor.default
|
164
164
|
end
|
165
165
|
it "should cancel iteration" do
|
166
166
|
results = @n1ql.results
|
data/spec/results_libuv_spec.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true, encoding: ASCII-8BIT
|
2
2
|
|
3
3
|
require 'mt-libcouchbase'
|
4
|
-
require 'uv-rays'
|
4
|
+
require 'mt-uv-rays'
|
5
5
|
|
6
6
|
|
7
7
|
class MockQuery
|
@@ -63,7 +63,7 @@ end
|
|
63
63
|
describe MTLibcouchbase::ResultsLibuv do
|
64
64
|
before :each do
|
65
65
|
@log = []
|
66
|
-
@reactor = ::
|
66
|
+
@reactor = ::MTLibuv::Reactor.default
|
67
67
|
@reactor.notifier do |err|
|
68
68
|
@reactor.stop
|
69
69
|
@log << err
|
data/spec/results_native_spec.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
# frozen_string_literal: true, encoding: ASCII-8BIT
|
2
2
|
|
3
3
|
require 'mt-libcouchbase'
|
4
|
-
require 'uv-rays'
|
4
|
+
require 'mt-uv-rays'
|
5
5
|
|
6
6
|
|
7
7
|
class NativeMockQuery
|
@@ -70,7 +70,7 @@ end
|
|
70
70
|
|
71
71
|
describe MTLibcouchbase::ResultsNative do
|
72
72
|
before :each do
|
73
|
-
reactor = ::
|
73
|
+
reactor = ::MTLibuv::Reactor.default
|
74
74
|
@qlog = []
|
75
75
|
@query = NativeMockQuery.new(@qlog, reactor)
|
76
76
|
@log = []
|
data/spec/subdoc_spec.rb
CHANGED
data/spec/view_spec.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mt-libcouchbase
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.02
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Giallombardo Nathan
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2023-07-28 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|