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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 548056c69c835ad0572929605d5d7e5660c5fcb3
4
- data.tar.gz: b619d3ece12e977d1b4de36f82582f748e88c1ce
3
+ metadata.gz: d5cb68206b321dcde53c5fe389e97597642ae6bf
4
+ data.tar.gz: e2f667853d2ca23b277e8e3bb6f8ca3842777e10
5
5
  SHA512:
6
- metadata.gz: a009124afa1bd5d169ca16f453aa99972cd56c9f538e2b03cfd48f0fab5a5c6622c075ce24da2265a99c0c6390807a0800c398e01068de72d10702f3c4345cda
7
- data.tar.gz: 81593332c0d9f8460714c1a7b74d2cea5e4a9d22254bdf8a37a4a23dece3ca6555e4f2b69e4a20227536309765a986889d4f567affb29a6af5d6e686b6a3d5a2
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. A timeout can be set on the connection:
175
+ The default timeout for all requests is 120 seconds.
179
176
 
180
177
  ```ruby
181
- conn = Etcdv3.new(endpoints: 'https://hostname:port', command_timeout: 5) # seconds
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
- ```ruby
187
- conn = Etcdv3.new(endpoints: 'https://hostname:port', command_timeout: 5)
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
- This timeout applies to and can be set when:
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.
@@ -1,3 +1,3 @@
1
1
  class Etcdv3
2
- VERSION = '0.8.0'.freeze
2
+ VERSION = '0.8.1'.freeze
3
3
  end
data/lib/etcdv3.rb CHANGED
@@ -185,7 +185,7 @@ class Etcdv3
185
185
  @conn.handle(:watch, 'watch', [key, range_end, block])
186
186
  end
187
187
 
188
- def transaction(timeout: timeout, &block)
188
+ def transaction(timeout: nil, &block)
189
189
  @conn.handle(:kv, 'transaction', [block, timeout: timeout])
190
190
  end
191
191
 
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.0
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-04 00:00:00.000000000 Z
11
+ date: 2017-10-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc