mt-libcouchbase 1.4.01 → 1.4.03

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: 43d2701d4c63b09ba54f884912c54cfa50f3895db157d3223c783d42132baac4
4
- data.tar.gz: 212470c2403694e7d2c0a3bbefced7f1b2fff3c35a27f7c61e6d965c79d6f654
3
+ metadata.gz: bd112941cd59b79494818db26ef0d161f1bb10d107e3b3d552c9c42e5512674c
4
+ data.tar.gz: e387c8996003fc462176640e1c1cce73f8b063566e11636c073789772c98a2f5
5
5
  SHA512:
6
- metadata.gz: 2314a4098b853010e7c9392e4c8aaafcc3e6e48ca4eb6fb23d032e4eab6fd4ab67d08eff7fb9bf12c8a155a10b5e88a9188a2863e79787456325d90b057b4449
7
- data.tar.gz: de4aabbde6450ac10ed270c53b7fb196b932b712afca0ec0038bf669cae4328b70af4d0a1bb0ad01f29bf01e10980ae619f16fdfda94e988481de381cf6dab75
6
+ metadata.gz: f23b1b6e6ad49b1b6ca7dfaeced43af3a3e5900399c75896f755fb587ba5e449409561ee52d23d9ac7908a1c9425e9bfe1bb4aa2e7a9f82bac57478067dcea43
7
+ data.tar.gz: 6c5b1a4523de6bfa0ab573e3e910212a155386d8ee4d44f8cf645634ac9fd78571a7d8fe5075e486540f310082f3e5f3d3410bed5c9903b8611db82e0d56a4bf
@@ -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.include? '://'
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.01'
4
+ VERSION = '1.4.03'
5
5
  end
@@ -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
@@ -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
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.01
4
+ version: 1.4.03
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