libcouchbase 1.2.7 → 1.2.8

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: b70984004763c1689243385fd15e92e5aa268828
4
- data.tar.gz: d5f228ebea87836ac08855455d3499dbde68ab73
3
+ metadata.gz: 57c24a3675fadb2c90585132fad12c9c096d0954
4
+ data.tar.gz: 29ddf992c956f4ae85486e7b7bd95665b125eb16
5
5
  SHA512:
6
- metadata.gz: 17fe42bb20ea2c06ea1915ec71301cbe2474f475e79afe284bcbbd645f447dc8029694dfeea5219ef9b75afb3882a5c327622ccd31a11a677fb90607ce1795b6
7
- data.tar.gz: 1bce371d70f68c897f76c8d27ac646a919efc450619a68cd310a7e7429ece87d343656e0354a9f46c168c11c9583d4ba940e0781dff45d9681c94c4b67a0b23e
6
+ metadata.gz: 5fd06f34047dced44d9a717e0a66101c2f279f9ff904fb52fe1d30afd98e63fa0f0f00cf6186e84f8a32cbb6b9e9609c8572b506359b74701927faa82816c5d0
7
+ data.tar.gz: 85df59fdd0db12c889bf91bd6774a1f929a67f4ad13d913a3f392f7ea524f4f1091f80cee3a28130e5c2f5c9174e94f41b6b1e61dc230879603698044cdc11ef
@@ -435,8 +435,8 @@ module Libcouchbase
435
435
  end
436
436
 
437
437
  # Touch a key, changing its CAS and optionally setting a timeout
438
- def touch(async: false, **opts)
439
- result @connection.touch(**opts), async
438
+ def touch(key, async: false, **opts)
439
+ result @connection.touch(key, **opts), async
440
440
  end
441
441
 
442
442
  # Perform subdocument operations on a key.
@@ -73,8 +73,7 @@ class Libcouchbase::SubdocRequest
73
73
  end
74
74
 
75
75
  [
76
- :replace, :dict_add, :dict_upsert, :array_add_first, :array_add_last,
77
- :array_add_unique, :array_insert, :counter
76
+ :dict_add, :dict_upsert, :array_add_first, :array_add_last, :array_add_unique, :counter
78
77
  ].each do |cmd|
79
78
  command = :"sdcmd_#{cmd}"
80
79
  define_method cmd do |path, value, create_intermediates: true, **opts|
@@ -84,6 +83,17 @@ class Libcouchbase::SubdocRequest
84
83
  end
85
84
  end
86
85
 
86
+ [
87
+ :replace, :array_insert
88
+ ].each do |cmd|
89
+ command = :"sdcmd_#{cmd}"
90
+ define_method cmd do |path, value, **opts|
91
+ spec = new_spec(false, path, command, :mutate, false)
92
+ set_value(spec, value)
93
+ self
94
+ end
95
+ end
96
+
87
97
 
88
98
  protected
89
99
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true, encoding: ASCII-8BIT
2
2
 
3
3
  module Libcouchbase
4
- VERSION = '1.2.7'
4
+ VERSION = '1.2.8'
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.7
4
+ version: 1.2.8
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-28 00:00:00.000000000 Z
11
+ date: 2017-12-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: ffi