etcdv3 0.0.3 → 0.0.4

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +18 -15
  3. data/lib/etcdv3/version.rb +1 -1
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f8d31c36685e9b6f41a555be3f2dca42c4f932a6
4
- data.tar.gz: a075e96fecd14e7bbdf535dc1c8292c7caa216d9
3
+ metadata.gz: b63b789cf1ebf2e909c4818190278aed694886f5
4
+ data.tar.gz: d806b91ce19db3ee0c79d2c82e33648805f7de94
5
5
  SHA512:
6
- metadata.gz: fdf348a37bfcc5e45af3d963653d89e70eaa0f18cd70e1bb64a12b6289c277c25939d53c4245d0c2b264f0bc7a844eea3667ea848b4dcd9399b509d0a5107afa
7
- data.tar.gz: ddb529e19d299236a476c784f2b138d63ba939471251dfd0fceb05f0508dce0858d269bd35340f3a96a93c180947c12c81cc7d7ba7bac9dac0f1f04cce481924
6
+ metadata.gz: 2538de053cd4757926e2f3dd542c0cbeaa8d8709917f56e534a708bd2f0928e534784940b61b42dfd0176e9ba0b3ff39534969799bcdfe7960669233fb3c8ea3
7
+ data.tar.gz: 325d9d8fa4692b1dfd57ae332ecb6e345519dc5ae400f57e4a502036c6f0a90903cdd2d60bd5ca597a36b8d0e1836f466fbf4f5551b73d78faf0c7c2561cb257
data/README.md CHANGED
@@ -1,21 +1,10 @@
1
- # Description
1
+ # etcdv3-ruby
2
2
 
3
- Proof of concept Etcd V3 Client.
3
+ Ruby client for Etcd V3
4
4
 
5
- # Install
5
+ **WARNING: This is very much a work in progress and should be considered unstable.**
6
6
 
7
- # Pull down Repository
8
- git clone https://github.ibm.com/shaund/etcdv3-ruby.git
9
-
10
- # Build the Gem
11
- cd etcd3-ruby && gem build etcdv3.gemspec
12
-
13
- # Install Gem
14
- gem install etcdv3
15
-
16
- # Usage
17
-
18
- require 'etcd' # This wasn't a typo.
7
+ ## Usage
19
8
 
20
9
  # Initialize insecure Client
21
10
  conn = Etcd.new(url: 'http://127.0.0.1:2379')
@@ -26,8 +15,22 @@ Proof of concept Etcd V3 Client.
26
15
  # Initialize secure connection with auth
27
16
  conn = Etcd.new(url: 'https://hostname:port', user: "gary", password: "secret")
28
17
 
18
+ **Adding and Fetching Keys**
19
+
29
20
  # Put
30
21
  conn.put("my", "value")
31
22
 
32
23
  # Range
33
24
  conn.range("my")
25
+
26
+ **User Managment**
27
+
28
+ # Add User
29
+ conn.add_user('admin', 'secret')
30
+
31
+ # Delete User
32
+ conn.delete_user('admin')
33
+
34
+ # List users
35
+ conn.user_list
36
+
@@ -1,3 +1,3 @@
1
1
  class Etcd
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: etcdv3
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun Davis