libcouchbase 0.1.0 → 0.2.0

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
  SHA1:
3
- metadata.gz: a694a8d99cf0101482777db2e8c4f81c9a2e3575
4
- data.tar.gz: 3b484eb067a3ba40c9bf9b852cac90f48616db62
3
+ metadata.gz: 0cf6d5e626047b95ba0715ab37e4a10f93a6ee6a
4
+ data.tar.gz: f01f640c657ac0c1efae62261f399bd1ff2359f3
5
5
  SHA512:
6
- metadata.gz: 3cf8f41d050d5bbb1ff2337de189c8893f36bae402c687d9543e1f996a327610e6f8d6ca7f84cc2cec0e27e8e958d3bb0e5ee05acee4101f70082a7ffaa12e83
7
- data.tar.gz: bfeadf7d0eca8959258c9dccb64f03c6b5a9f4391da856d2ddcdc7aa60631421cb0f37f332809a93e69c6516b364c4b6e553d1f5a8eb76281ebe1c383a45f6d6
6
+ metadata.gz: 33ae11acb6c44814f8904ac8b11b66b35b44dacb56d0eb7ea88272c63a5db6f6b5fed432799464f41a3567298f423e151596814c9549475086698cd45e2c33fe
7
+ data.tar.gz: cabebbf191fcd28a9771a149652a6a2f47b06894a26c3099f92dc9a0b2b724c9f97d848ed022f657c8a6f774fc02e6ad394df9aefa6dc573bfd9a81281f70cf8
@@ -12,8 +12,9 @@ module Libcouchbase
12
12
  # http://www.mikeperham.com/2010/02/24/the-trouble-with-ruby-finalizers/
13
13
  def self.finalize(connection)
14
14
  proc {
15
- connection.reactor.unref
16
- connection.destroy
15
+ connection.destroy.finally do
16
+ connection.reactor.unref
17
+ end
17
18
  }
18
19
  end
19
20
 
@@ -47,7 +47,7 @@ module Libcouchbase
47
47
 
48
48
  pairs = []
49
49
  options.each { |key, val|
50
- if key.to_s.include? 'key'
50
+ if key.to_s.include?('key') && val[0] != "["
51
51
  pairs << "#{key}=#{[val].to_json[1...-1]}"
52
52
  else
53
53
  pairs << "#{key}=#{val}"
@@ -153,7 +153,7 @@ module Libcouchbase
153
153
  @query_in_progress = false
154
154
 
155
155
  elsif not @cancelled
156
- # Do we want to transform the results
156
+ # Do we want to transform the results
157
157
  if @row_modifier
158
158
  begin
159
159
  @results << @row_modifier.call(item)
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true, encoding: ASCII-8BIT
2
2
 
3
3
  module Libcouchbase
4
- VERSION = '0.1.0'
4
+ VERSION = '0.2.0'
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: 0.1.0
4
+ version: 0.2.0
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-03-27 00:00:00.000000000 Z
11
+ date: 2017-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi