etcdv3 0.10.1 → 0.11.5
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 +5 -5
- data/.gitignore +6 -5
- data/.travis.yml +1 -0
- data/README.md +40 -0
- data/lib/etcdv3/connection.rb +26 -5
- data/lib/etcdv3/connection_wrapper.rb +22 -7
- data/lib/etcdv3/lock.rb +2 -2
- data/lib/etcdv3/namespace/kv/requests.rb +54 -0
- data/lib/etcdv3/namespace/kv/transaction.rb +91 -0
- data/lib/etcdv3/namespace/kv.rb +62 -0
- data/lib/etcdv3/namespace/lock.rb +32 -0
- data/lib/etcdv3/namespace/utilities.rb +44 -0
- data/lib/etcdv3/namespace/watch.rb +38 -0
- data/lib/etcdv3/version.rb +1 -1
- data/lib/etcdv3.rb +16 -2
- data/spec/etcdv3/connection_spec.rb +3 -3
- data/spec/etcdv3/connection_wrapper_spec.rb +39 -8
- data/spec/etcdv3/lock_spec.rb +19 -5
- data/spec/etcdv3/namespace/kv_spec.rb +82 -0
- data/spec/etcdv3/namespace/lock_spec.rb +42 -0
- data/spec/etcdv3/namespace/watch_spec.rb +36 -0
- data/spec/etcdv3/watch_spec.rb +12 -5
- data/spec/etcdv3_spec.rb +257 -1
- data/spec/helpers/connections.rb +18 -2
- data/spec/helpers/metadata_passthrough.rb +21 -0
- data/spec/helpers/shared_examples_for_timeout.rb +4 -4
- data/spec/helpers/test_instance.rb +2 -0
- data/spec/spec_helper.rb +4 -0
- metadata +17 -4
data/spec/spec_helper.rb
CHANGED
@@ -1,5 +1,7 @@
|
|
1
1
|
$LOAD_PATH.unshift File.expand_path('../lib', __FILE__)
|
2
2
|
$LOAD_PATH.unshift File.expand_path('./helpers', __FILE__)
|
3
|
+
$LOAD_PATH.unshift File.expand_path('./namespace', __FILE__)
|
4
|
+
|
3
5
|
|
4
6
|
require 'simplecov'
|
5
7
|
require 'codecov'
|
@@ -9,12 +11,14 @@ SimpleCov.formatter = SimpleCov::Formatter::Codecov
|
|
9
11
|
require 'etcdv3'
|
10
12
|
require 'helpers/test_instance'
|
11
13
|
require 'helpers/connections'
|
14
|
+
require 'helpers/metadata_passthrough'
|
12
15
|
require 'helpers/shared_examples_for_timeout'
|
13
16
|
|
14
17
|
$instance = Helpers::TestInstance.new
|
15
18
|
|
16
19
|
RSpec.configure do |config|
|
17
20
|
config.include(Helpers::Connections)
|
21
|
+
config.include(Helpers::MetadataPassthrough)
|
18
22
|
|
19
23
|
config.expect_with :rspec do |expectations|
|
20
24
|
expectations.include_chain_clauses_in_custom_matcher_descriptions = true
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: etcdv3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shaun Davis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-12-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|
@@ -97,6 +97,12 @@ files:
|
|
97
97
|
- lib/etcdv3/lease.rb
|
98
98
|
- lib/etcdv3/lock.rb
|
99
99
|
- lib/etcdv3/maintenance.rb
|
100
|
+
- lib/etcdv3/namespace/kv.rb
|
101
|
+
- lib/etcdv3/namespace/kv/requests.rb
|
102
|
+
- lib/etcdv3/namespace/kv/transaction.rb
|
103
|
+
- lib/etcdv3/namespace/lock.rb
|
104
|
+
- lib/etcdv3/namespace/utilities.rb
|
105
|
+
- lib/etcdv3/namespace/watch.rb
|
100
106
|
- lib/etcdv3/protos/annotations.proto
|
101
107
|
- lib/etcdv3/protos/auth.proto
|
102
108
|
- lib/etcdv3/protos/descriptor.proto
|
@@ -114,9 +120,13 @@ files:
|
|
114
120
|
- spec/etcdv3/lease_spec.rb
|
115
121
|
- spec/etcdv3/lock_spec.rb
|
116
122
|
- spec/etcdv3/maintenance_spec.rb
|
123
|
+
- spec/etcdv3/namespace/kv_spec.rb
|
124
|
+
- spec/etcdv3/namespace/lock_spec.rb
|
125
|
+
- spec/etcdv3/namespace/watch_spec.rb
|
117
126
|
- spec/etcdv3/watch_spec.rb
|
118
127
|
- spec/etcdv3_spec.rb
|
119
128
|
- spec/helpers/connections.rb
|
129
|
+
- spec/helpers/metadata_passthrough.rb
|
120
130
|
- spec/helpers/shared_examples_for_timeout.rb
|
121
131
|
- spec/helpers/test_instance.rb
|
122
132
|
- spec/spec_helper.rb
|
@@ -139,8 +149,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
149
|
- !ruby/object:Gem::Version
|
140
150
|
version: '0'
|
141
151
|
requirements: []
|
142
|
-
|
143
|
-
rubygems_version: 2.4.5.1
|
152
|
+
rubygems_version: 3.1.6
|
144
153
|
signing_key:
|
145
154
|
specification_version: 4
|
146
155
|
summary: A Etcd client library for Version 3
|
@@ -152,9 +161,13 @@ test_files:
|
|
152
161
|
- spec/etcdv3/lease_spec.rb
|
153
162
|
- spec/etcdv3/lock_spec.rb
|
154
163
|
- spec/etcdv3/maintenance_spec.rb
|
164
|
+
- spec/etcdv3/namespace/kv_spec.rb
|
165
|
+
- spec/etcdv3/namespace/lock_spec.rb
|
166
|
+
- spec/etcdv3/namespace/watch_spec.rb
|
155
167
|
- spec/etcdv3/watch_spec.rb
|
156
168
|
- spec/etcdv3_spec.rb
|
157
169
|
- spec/helpers/connections.rb
|
170
|
+
- spec/helpers/metadata_passthrough.rb
|
158
171
|
- spec/helpers/shared_examples_for_timeout.rb
|
159
172
|
- spec/helpers/test_instance.rb
|
160
173
|
- spec/spec_helper.rb
|