libcouchbase 1.2.4 → 1.2.5

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
  SHA1:
3
- metadata.gz: 2e0fecefcadf6aba5e497d297195f7c75a8ac93d
4
- data.tar.gz: 68a30faba8a468ab280aac7c8a7e387a0b59fbb1
3
+ metadata.gz: ae6fb8112f104f4c1ac7c749a21270e1498299be
4
+ data.tar.gz: a69d3ffd0b14eef01154a2de7c8c90ed473b0f8b
5
5
  SHA512:
6
- metadata.gz: 362de9a1a26005ab3b5e0cc43afb28245a45a2f12f659c8cbd2c7f6e76cd14c2d4ec43abd6de670545411ccf84e14ed6ebe6124662faab5de2a6e088aa7b6725
7
- data.tar.gz: be6115fcb1f03c7a8f55dffe186d6d74c564c6197d2228f72398592532b5bb982afc2c645b17595eeeadc7de152c937cd7dc0f2770bf4324f27d5dd7f67eb6a0
6
+ metadata.gz: af20781de12723ebc3ff5c926371c9288953c9a14e60d1c58fb55be8ce8d97cc548e90f86e29519a3f857fc2a6219c48ff55660c57a6914b35812bd23cfe5d64
7
+ data.tar.gz: d74882d88fc23ea72d2aafd1c3f88dea504d277f344182b49fe1cd068f71afcc7063b1199a9aa185258e27a78dfefc64b4d2f9d4ffbd6b4fc465fd21ecdf525e
@@ -485,7 +485,7 @@ module Libcouchbase
485
485
  #
486
486
  # @return [Libcouchbase::DesignDocs]
487
487
  def design_docs(**opts)
488
- DesignDocs.new(self, @connection, method(:result), **opts)
488
+ DesignDocs.new(self, @connection, proc { |promise, async| result(promise, async) }, **opts)
489
489
  end
490
490
 
491
491
  # Returns an enumerable for the results in a view.
@@ -675,7 +675,7 @@ module Libcouchbase
675
675
 
676
676
  current = ::Libuv::Reactor.current
677
677
  if current && current.running?
678
- co promise
678
+ promise.value
679
679
  elsif Object.const_defined?(:EventMachine) && EM.reactor_thread?
680
680
  # Assume this is being run in em-synchrony
681
681
  f = Fiber.current
@@ -749,7 +749,7 @@ module Libcouchbase
749
749
 
750
750
  attempt = 0
751
751
  begin
752
- co @connection.connect
752
+ @connection.connect.value
753
753
  rescue Libcouchbase::Error::ConnectError => e
754
754
  attempt += 1
755
755
  if attempt < 3
@@ -786,7 +786,7 @@ module Libcouchbase
786
786
 
787
787
  attempt = 0
788
788
  begin
789
- co @connection.connect
789
+ @connection.connect.value
790
790
  rescue Libcouchbase::Error::ConnectError => e
791
791
  attempt += 1
792
792
  if attempt < 3
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true, encoding: ASCII-8BIT
2
2
 
3
3
  module Libcouchbase
4
- VERSION = '1.2.4'
4
+ VERSION = '1.2.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: libcouchbase
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.4
4
+ version: 1.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stephen von Takach
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-11-10 00:00:00.000000000 Z
11
+ date: 2017-11-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi