etcdv3 0.8.0 → 0.8.1
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/README.md +8 -12
- data/lib/etcdv3/version.rb +1 -1
- data/lib/etcdv3.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: d5cb68206b321dcde53c5fe389e97597642ae6bf
|
4
|
+
data.tar.gz: e2f667853d2ca23b277e8e3bb6f8ca3842777e10
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ba38ead308d65d0e094b782700883b561d2dcd5ce38f4d41324c4082f2e8992c3d17ece7924535c94393f420ec9fb9f939e506ccdac3a095377ab65b109644af
|
7
|
+
data.tar.gz: b349451c5c9df95d768fa9142fb143e02f8153a90c5c8ffc1590569871c0068876aa023a424cbd516808b73f20332f3c4d6a4b819332db62470cfde5326f8866
|
data/README.md
CHANGED
@@ -29,9 +29,6 @@ conn = Etcdv3.new(endpoints: 'https://hostname:port', user: 'root', password: 'm
|
|
29
29
|
# Secure connection specifying custom certificates
|
30
30
|
# Coming soon...
|
31
31
|
|
32
|
-
# Per-request timeouts
|
33
|
-
conn = Etcdv3.new(endpoints: 'https://hostname:port', command_timeout: 5) # seconds
|
34
|
-
|
35
32
|
```
|
36
33
|
**High Availability**
|
37
34
|
|
@@ -175,25 +172,24 @@ conn.alarm_deactivate
|
|
175
172
|
|
176
173
|
## Timeouts
|
177
174
|
|
178
|
-
The default timeout for all requests is 120 seconds.
|
175
|
+
The default timeout for all requests is 120 seconds.
|
179
176
|
|
180
177
|
```ruby
|
181
|
-
|
182
|
-
|
183
|
-
|
184
|
-
Or a timeout can be set on an individual request.
|
178
|
+
# Specify `command_timeout` to override the default global timeout.
|
179
|
+
conn = Etcdv3.new(endpoints: 'https://hostname:port', command_timeout: 5) # 5 seconds
|
185
180
|
|
186
|
-
|
187
|
-
conn
|
188
|
-
conn.get("foo", timeout: 2) # Timeout of 2 seconds
|
181
|
+
# You can also specify request specific timeouts.
|
182
|
+
conn.get("foo", timeout: 2)
|
189
183
|
```
|
190
184
|
|
191
|
-
|
185
|
+
Timeouts apply to and can be set when:
|
192
186
|
- Adding, Fetching and Deleting keys
|
193
187
|
- User, Role, and Authentication Management
|
194
188
|
- Leases
|
195
189
|
- Transactions
|
196
190
|
|
191
|
+
_Note: Timeouts currently do not affect Watch or Maintenance related commands._
|
192
|
+
|
197
193
|
## Contributing
|
198
194
|
|
199
195
|
If you're looking to get involved, [Fork the project](https://github.com/davissp14/etcdv3-ruby) and send pull requests.
|
data/lib/etcdv3/version.rb
CHANGED
data/lib/etcdv3.rb
CHANGED
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.8.
|
4
|
+
version: 0.8.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shaun Davis
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-10-
|
11
|
+
date: 2017-10-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: grpc
|