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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 10f4f1b98604be3e46e36b461ad511a8f58022631c3aef4daa56f663aed7013c
4
- data.tar.gz: 2ab6d76bcc195ab6fcf39cc00990b1aca1560898ef06731f301e82100b58110b
3
+ metadata.gz: 76c99133f1f92aa3573a4f83c6c12f8407f059b8842b79c03c03d86b8d1b3a33
4
+ data.tar.gz: b48fa7a6a9a55fef3633a0c24ce406508dcef06f537759f5de4845fc4a0efe02
5
5
  SHA512:
6
- metadata.gz: 01e568b51b54718c8e27b091ab048927d3ff1ac5d5067ce84d7744c3a2151c15f3ca818c03dce4c984e3f970f12236c65fc405ec00e7ee7a7acf50d8580fa575
7
- data.tar.gz: 3620b0685c28b7f2beaf9b132dff4220c0837861385d20dbae2025317fd3a0c1416ef3582a9a7e5ac029c584a2b2a1e425ea455eebd937bed20850322f0bb340
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
- connstr = "couchbase://#{hosts}/#{bucket}"
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
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true, encoding: ASCII-8BIT
2
2
 
3
3
  module MTLibcouchbase
4
- VERSION = '1.4.0'
4
+ VERSION = '1.4.02'
5
5
  end
data/spec/bucket_spec.rb CHANGED
@@ -8,7 +8,7 @@ describe MTLibcouchbase::Bucket do
8
8
  before :each do
9
9
  # This will load the couchbase connection on a different thread
10
10
  @bucket = MTLibcouchbase::Bucket.new
11
- @reactor = ::Libuv::Reactor.default
11
+ @reactor = ::MTLibuv::Reactor.default
12
12
  @log = []
13
13
  end
14
14
 
@@ -7,7 +7,7 @@ describe MTLibcouchbase::Connection do
7
7
  before :each do
8
8
  @log = []
9
9
  expect(@log).to eq([])
10
- @reactor = ::Libuv::Reactor.default
10
+ @reactor = ::MTLibuv::Reactor.default
11
11
  end
12
12
 
13
13
  after :each do
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 = ::Libuv::Reactor.default
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 = ::Libuv::Reactor.default
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 = ::Libuv::Reactor.default
163
+ @reactor = ::MTLibuv::Reactor.default
164
164
  end
165
165
  it "should cancel iteration" do
166
166
  results = @n1ql.results
@@ -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 = ::Libuv::Reactor.default
66
+ @reactor = ::MTLibuv::Reactor.default
67
67
  @reactor.notifier do |err|
68
68
  @reactor.stop
69
69
  @log << err
@@ -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 = ::Libuv::Reactor.default
73
+ reactor = ::MTLibuv::Reactor.default
74
74
  @qlog = []
75
75
  @query = NativeMockQuery.new(@qlog, reactor)
76
76
  @log = []
data/spec/subdoc_spec.rb CHANGED
@@ -16,7 +16,7 @@ describe MTLibcouchbase::SubdocRequest do
16
16
  },
17
17
  another: false
18
18
  })
19
- @reactor = ::Libuv::Reactor.default
19
+ @reactor = ::MTLibuv::Reactor.default
20
20
  @log = []
21
21
  end
22
22
 
data/spec/view_spec.rb CHANGED
@@ -7,7 +7,7 @@ describe MTLibcouchbase::QueryView 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 = ::Libuv::Reactor.default
10
+ @reactor = ::MTLibuv::Reactor.default
11
11
  @log = []
12
12
  end
13
13
 
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.0
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: 2022-03-25 00:00:00.000000000 Z
11
+ date: 2023-07-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi