libcouchbase 1.2.7 → 1.2.8
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 +4 -4
- data/lib/libcouchbase/bucket.rb +2 -2
- data/lib/libcouchbase/subdoc_request.rb +12 -2
- data/lib/libcouchbase/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 57c24a3675fadb2c90585132fad12c9c096d0954
|
4
|
+
data.tar.gz: 29ddf992c956f4ae85486e7b7bd95665b125eb16
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5fd06f34047dced44d9a717e0a66101c2f279f9ff904fb52fe1d30afd98e63fa0f0f00cf6186e84f8a32cbb6b9e9609c8572b506359b74701927faa82816c5d0
|
7
|
+
data.tar.gz: 85df59fdd0db12c889bf91bd6774a1f929a67f4ad13d913a3f392f7ea524f4f1091f80cee3a28130e5c2f5c9174e94f41b6b1e61dc230879603698044cdc11ef
|
data/lib/libcouchbase/bucket.rb
CHANGED
@@ -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
|
-
:
|
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
|
|
data/lib/libcouchbase/version.rb
CHANGED
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
|
+
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
|
+
date: 2017-12-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: ffi
|