etcdv3 0.5.0 → 0.5.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c30c373c3727bf2bf9fb11361e12c868f23b0c63
4
- data.tar.gz: bf013c81510a227345e7cb8924a80ceb5549cf3e
3
+ metadata.gz: 688201ef38aa54b086f120a6b5eaaaef142167de
4
+ data.tar.gz: ed7714479e957b95959e26610db9aaab66fdef89
5
5
  SHA512:
6
- metadata.gz: 1f58b5adcdb86fafa2cbc5e924e1406d71d4e26988a5000211870e54b48dfa9a8f72cd663dcfc09dcfe9507b60cf8d6d337fe284e41bc85361486787407748ad
7
- data.tar.gz: b6c432b3e2963cc7cb20b2c1151d27c55da1022094fb3047ff685b9de129ce8ffd16f8ee0dc35eec7942fdeaca454ddef986fe551e6f44bd57428ac1a75e927d
6
+ metadata.gz: 56fe98b7cde847d737d30767894f1e964fbda6935e6775259c94f25cb1bb04af49a9644b2f62a02d05edf58571bf4d379e28f30fc64dc5f6226229ce5a39ab51
7
+ data.tar.gz: f00d91763751a2872e09c71790043c639dadc0ffa5e8ce05df6dd9bd6a3f0cf16f646bc84f525be44df801b820d98e05262625c55d46565c807053de7cb8711d
data/LICENSE ADDED
@@ -0,0 +1,22 @@
1
+ Copyright (c) 2017 Shaun Davis
2
+
3
+ MIT LICENSE
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining
6
+ a copy of this software and associated documentation files (the
7
+ "Software"), to deal in the Software without restriction, including
8
+ without limitation the rights to use, copy, modify, merge, publish,
9
+ distribute, sublicense, and/or sell copies of the Software, and to
10
+ permit persons to whom the Software is furnished to do so, subject to
11
+ the following conditions:
12
+
13
+ The above copyright notice and this permission notice shall be
14
+ included in all copies or substantial portions of the Software.
15
+
16
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
17
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
18
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
19
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
20
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
21
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
22
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.md CHANGED
@@ -52,8 +52,8 @@ conn = Etcdv3.new(url: 'https://hostname:port', user: "gary", password: "secret"
52
52
 
53
53
  ## User Management
54
54
  ```ruby
55
- # Add User
56
- conn.user_add('admin', 'secret')
55
+ # Add User
56
+ conn.user_add('admin', 'secret')
57
57
 
58
58
  # Delete User
59
59
  conn.user_delete('admin')
data/lib/etcdv3/auth.rb CHANGED
@@ -82,12 +82,12 @@ class Etcdv3
82
82
 
83
83
  def user_delete(user)
84
84
  request = Etcdserverpb::AuthUserDeleteRequest.new(name: user)
85
- @stub.user_delete(request)
85
+ @stub.user_delete(request, metadata: @metadata)
86
86
  end
87
87
 
88
88
  def user_get(user)
89
89
  request = Etcdserverpb::AuthUserGetRequest.new(name: user)
90
- @stub.user_get(request)
90
+ @stub.user_get(request, metadata: @metadata)
91
91
  end
92
92
 
93
93
  def user_change_password(user, new_password)
@@ -24,7 +24,7 @@ class Etcdv3
24
24
  memberID: member_id,
25
25
  alarm: action == :deactivate ? ALARM_TYPES[:NOSPACE] : alarm
26
26
  )
27
- @stub.alarm(request)
27
+ @stub.alarm(request, metadata: @metadata)
28
28
  end
29
29
 
30
30
  def member_status
@@ -1,3 +1,3 @@
1
1
  class Etcdv3
2
- VERSION = '0.5.0'.freeze
2
+ VERSION = '0.5.1'.freeze
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.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun Davis
@@ -48,6 +48,7 @@ files:
48
48
  - ".rspec"
49
49
  - ".travis.yml"
50
50
  - Gemfile
51
+ - LICENSE
51
52
  - README.md
52
53
  - etcdv3.gemspec
53
54
  - lib/etcdv3.rb
@@ -97,7 +98,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
97
98
  version: '0'
98
99
  requirements: []
99
100
  rubyforge_project:
100
- rubygems_version: 2.4.5.1
101
+ rubygems_version: 2.6.11
101
102
  signing_key:
102
103
  specification_version: 4
103
104
  summary: A Etcd client library for Version 3