etcdv3 0.11.5 → 0.11.6

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
  SHA256:
3
- metadata.gz: 03fa84076fc6d31e895bc80d55abb4501398a0be305cefa1f492b5e217e52277
4
- data.tar.gz: 020aa912711d848ceb60a842a2d04bc1d5d3aacbf2714a380782cefd37c3b9c4
3
+ metadata.gz: f63c528f864012711cf608ca262674d7efd89caa6ac67674bb23e007df2920ab
4
+ data.tar.gz: 7a6c37da695eb6759a206ca5bfbd953ac647b17c7c19918596e7a6db86d065bf
5
5
  SHA512:
6
- metadata.gz: 7541f20326b9577fa7b595e371a0e94713b0b0d83ced62eaae120b5fe77c853625020425258ed941f49b345d40025f7c9d8398ba7bbb136e666f13d1b64e181b
7
- data.tar.gz: 3e1226dcf9a6f7a3fcfce148148fcdcabe3f07bf92f24335a7a624b8af3e3b07176162a8f52f606b80dc9df864574ce8e430b95c456a54e79444f6466d3b37b4
6
+ metadata.gz: 9b6b51ca358da66d57cd16358146f54f9c220a925f43fea326aa764887c647de76c40b860a05005d48f7bd9528fe239e985be39ceb0c886052147459bdc6e98f
7
+ data.tar.gz: fcf41864b7e54c74d8788a2d94688255880f193a6ad3527262f3a0b0512301693fb5cb90b72db9a52f0abcb9fad1541427dfda1970a9348225ec9579d651345d
data/lib/etcdv3/auth.rb CHANGED
@@ -10,7 +10,7 @@ class Etcdv3
10
10
  }
11
11
 
12
12
  def initialize(hostname, credentials, timeout, metadata = {})
13
- @stub = Etcdserverpb::Auth::Stub.new(hostname, credentials)
13
+ @stub = Etcdserverpb::Auth::Stub.new(hostname, credentials, **metadata.delete(:client_options) || {})
14
14
  @timeout = timeout
15
15
  @metadata = metadata
16
16
  end
data/lib/etcdv3/kv.rb CHANGED
@@ -5,7 +5,7 @@ class Etcdv3
5
5
  include GRPC::Core::TimeConsts
6
6
 
7
7
  def initialize(hostname, credentials, timeout, metadata={})
8
- @stub = Etcdserverpb::KV::Stub.new(hostname, credentials)
8
+ @stub = Etcdserverpb::KV::Stub.new(hostname, credentials, **metadata.delete(:client_options) || {})
9
9
  @timeout = timeout
10
10
  @metadata = metadata
11
11
  end
data/lib/etcdv3/lease.rb CHANGED
@@ -3,7 +3,7 @@ class Etcdv3
3
3
  include GRPC::Core::TimeConsts
4
4
 
5
5
  def initialize(hostname, credentials, timeout, metadata={})
6
- @stub = Etcdserverpb::Lease::Stub.new(hostname, credentials)
6
+ @stub = Etcdserverpb::Lease::Stub.new(hostname, credentials, **metadata.delete(:client_options) || {})
7
7
  @timeout = timeout
8
8
  @metadata = metadata
9
9
  end
data/lib/etcdv3/lock.rb CHANGED
@@ -3,7 +3,7 @@ class Etcdv3
3
3
  include GRPC::Core::TimeConsts
4
4
 
5
5
  def initialize(hostname, credentials, timeout, metadata = {})
6
- @stub = V3lockpb::Lock::Stub.new(hostname, credentials)
6
+ @stub = V3lockpb::Lock::Stub.new(hostname, credentials, **metadata.delete(:client_options) || {})
7
7
  @timeout = timeout
8
8
  @metadata = metadata
9
9
  end
@@ -13,7 +13,7 @@ class Etcdv3
13
13
  }
14
14
 
15
15
  def initialize(hostname, credentials, _timeout, metadata = {})
16
- @stub = Etcdserverpb::Maintenance::Stub.new(hostname, credentials)
16
+ @stub = Etcdserverpb::Maintenance::Stub.new(hostname, credentials, **metadata.delete(:client_options) || {})
17
17
  @metadata = metadata
18
18
  end
19
19
 
@@ -5,7 +5,7 @@ class Etcdv3::Namespace
5
5
  include GRPC::Core::TimeConsts
6
6
 
7
7
  def initialize(hostname, credentials, timeout, namespace, metadata={})
8
- @stub = Etcdserverpb::KV::Stub.new(hostname, credentials)
8
+ @stub = Etcdserverpb::KV::Stub.new(hostname, credentials, **metadata.delete(:client_options) || {})
9
9
  @timeout = timeout
10
10
  @namespace = namespace
11
11
  @metadata = metadata
@@ -4,7 +4,7 @@ class Etcdv3::Namespace
4
4
  include Etcdv3::Namespace::Utilities
5
5
 
6
6
  def initialize(hostname, credentials, timeout, namespace, metadata = {})
7
- @stub = V3lockpb::Lock::Stub.new(hostname, credentials)
7
+ @stub = V3lockpb::Lock::Stub.new(hostname, credentials, **metadata.delete(:client_options) || {})
8
8
  @timeout = timeout
9
9
  @namespace = namespace
10
10
  @metadata = metadata
@@ -4,7 +4,7 @@ class Etcdv3::Namespace
4
4
  include Etcdv3::Namespace::Utilities
5
5
 
6
6
  def initialize(hostname, credentials, timeout, namespace, metadata = {})
7
- @stub = Etcdserverpb::Watch::Stub.new(hostname, credentials)
7
+ @stub = Etcdserverpb::Watch::Stub.new(hostname, credentials, **metadata.delete(:client_options) || {})
8
8
  @timeout = timeout
9
9
  @namespace = namespace
10
10
  @metadata = metadata
@@ -1,3 +1,3 @@
1
1
  class Etcdv3
2
- VERSION = '0.11.5'.freeze
2
+ VERSION = '0.11.6'.freeze
3
3
  end
data/lib/etcdv3/watch.rb CHANGED
@@ -3,7 +3,7 @@ class Etcdv3
3
3
  include GRPC::Core::TimeConsts
4
4
 
5
5
  def initialize(hostname, credentials, timeout, metadata = {})
6
- @stub = Etcdserverpb::Watch::Stub.new(hostname, credentials)
6
+ @stub = Etcdserverpb::Watch::Stub.new(hostname, credentials, **metadata.delete(:client_options) || {})
7
7
  @timeout = timeout
8
8
  @metadata = metadata
9
9
  end
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.11.5
4
+ version: 0.11.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Shaun Davis
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-12-01 00:00:00.000000000 Z
11
+ date: 2023-05-10 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: grpc
@@ -134,7 +134,7 @@ homepage: https://github.com/davissp14/etcdv3-ruby
134
134
  licenses:
135
135
  - MIT
136
136
  metadata: {}
137
- post_install_message:
137
+ post_install_message:
138
138
  rdoc_options: []
139
139
  require_paths:
140
140
  - lib
@@ -149,8 +149,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  - !ruby/object:Gem::Version
150
150
  version: '0'
151
151
  requirements: []
152
- rubygems_version: 3.1.6
153
- signing_key:
152
+ rubygems_version: 3.3.7
153
+ signing_key:
154
154
  specification_version: 4
155
155
  summary: A Etcd client library for Version 3
156
156
  test_files: