kek 1.0.0 → 1.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rspec +2 -0
- data/.travis.yml +1 -0
- data/README.md +16 -2
- data/Rakefile +8 -0
- data/kek.gemspec +1 -1
- data/lib/kek.rb +1 -0
- data/lib/kek/directory.rb +7 -0
- data/lib/kek/keys.rb +2 -2
- data/lib/kek/version.rb +1 -1
- metadata +10 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 74dc078fb9f4a69bd831f004106740a83ed8b05b
|
4
|
+
data.tar.gz: 5d287ffdc439d8d82ad9270d457bd223d65bec54
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 87671fecb98a075b323dadf81897883ea0784e44554fe27fe361ad2fcb6ca2c0e602270015e44be03a35dc0a793d7760f732f78f13283df955318d63ef0c9fdd
|
7
|
+
data.tar.gz: f698c7e221686b4c2e2c1aac27ea02bb5169657ccea2dc69ece70fb66582ab6eb4f757ae8f7145e94f9fdf959991f6c1ae76be3a2393fc4d8369e3f456ecff25
|
data/.rspec
ADDED
data/.travis.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
language: ruby
|
data/README.md
CHANGED
@@ -1,8 +1,22 @@
|
|
1
|
-
# kek
|
1
|
+
# kek [![Build Status](https://travis-ci.org/kblanks/kek.svg?branch=master)](https://travis-ci.org/kblanks/kek) [![Gem](https://img.shields.io/gem/dt/kek.svg?maxAge=21600)](https://rubygems.org/gems/kek)
|
2
2
|
|
3
|
-
An easy to use [etcd](http://etcd.io) client.
|
3
|
+
An easy to use [etcd](http://etcd.io) client.
|
4
4
|
|
5
5
|
## Basic Usage
|
6
6
|
```
|
7
7
|
$ gem install kek
|
8
8
|
```
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require "kek"
|
12
|
+
etcd = Kek.new 'http://127.0.0.1:2379'
|
13
|
+
|
14
|
+
etcd.set 'ayy', 'lmao', ttl: 10
|
15
|
+
# => true
|
16
|
+
|
17
|
+
etcd.get 'ayy'
|
18
|
+
# => lmao
|
19
|
+
|
20
|
+
etcd.delete 'ayy'
|
21
|
+
# => true
|
22
|
+
```
|
data/Rakefile
CHANGED
data/kek.gemspec
CHANGED
data/lib/kek.rb
CHANGED
data/lib/kek/keys.rb
CHANGED
@@ -8,8 +8,8 @@ class Kek
|
|
8
8
|
@client.get("/v2/keys/#{key}").body.dig(:node, :value)
|
9
9
|
end
|
10
10
|
|
11
|
-
def delete(key)
|
12
|
-
@client.delete("/v2/keys/#{key}").body[:action] == "delete"
|
11
|
+
def delete(key, opts = {})
|
12
|
+
@client.delete("/v2/keys/#{key}", opts).body[:action] == "delete"
|
13
13
|
end
|
14
14
|
|
15
15
|
end
|
data/lib/kek/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kek
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kailan Blanks
|
@@ -25,33 +25,33 @@ dependencies:
|
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 0.9.2
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
|
-
name:
|
28
|
+
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
31
|
- - "~>"
|
32
32
|
- !ruby/object:Gem::Version
|
33
|
-
version: '
|
33
|
+
version: '10.0'
|
34
34
|
type: :development
|
35
35
|
prerelease: false
|
36
36
|
version_requirements: !ruby/object:Gem::Requirement
|
37
37
|
requirements:
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
|
-
version: '
|
40
|
+
version: '10.0'
|
41
41
|
- !ruby/object:Gem::Dependency
|
42
|
-
name:
|
42
|
+
name: rspec
|
43
43
|
requirement: !ruby/object:Gem::Requirement
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version:
|
47
|
+
version: 3.5.0
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version:
|
54
|
+
version: 3.5.0
|
55
55
|
description: A simple etcd client inspired by the redis gem.
|
56
56
|
email:
|
57
57
|
- kailan@kmp.pw
|
@@ -60,6 +60,8 @@ extensions: []
|
|
60
60
|
extra_rdoc_files: []
|
61
61
|
files:
|
62
62
|
- ".gitignore"
|
63
|
+
- ".rspec"
|
64
|
+
- ".travis.yml"
|
63
65
|
- Gemfile
|
64
66
|
- LICENSE.md
|
65
67
|
- README.md
|
@@ -68,6 +70,7 @@ files:
|
|
68
70
|
- bin/setup
|
69
71
|
- kek.gemspec
|
70
72
|
- lib/kek.rb
|
73
|
+
- lib/kek/directory.rb
|
71
74
|
- lib/kek/json.rb
|
72
75
|
- lib/kek/keys.rb
|
73
76
|
- lib/kek/version.rb
|