diplomat 2.1.0 → 2.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/diplomat/rest_client.rb +2 -2
- data/lib/diplomat/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 592187da9061242848c78fb7766bb1f132daa69c83362c5a45bab4ba0fc29b74
|
4
|
+
data.tar.gz: 3ae523b3d012adedac528a97d00dbf97c1fd97972537488870cefcaa6dd1062e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 608a2c2a508ce613d5f45e6075bb06df173b9dae6b21a9c05e8eeaee271891a99acb44867197a5a12d2b0abac27e0d92135fd5a33cd74507b7ee96f1eee9e9b0
|
7
|
+
data.tar.gz: ccccaa4bb45ff1d974bfd9db76835c91b18e6b4011b634907f7ae791d6fd06fa4d450ae666a757c9035a70bfaaed245f92f67a89387563e07cbab4102edad3ea
|
data/lib/diplomat/rest_client.rb
CHANGED
@@ -177,8 +177,8 @@ module Diplomat
|
|
177
177
|
consistency = []
|
178
178
|
|
179
179
|
# Parse options used as header
|
180
|
-
headers = { 'X-Consul-Token'
|
181
|
-
headers = { 'X-Consul-Token'
|
180
|
+
headers = { 'X-Consul-Token' => configuration.acl_token } if configuration.acl_token
|
181
|
+
headers = { 'X-Consul-Token' => options[:token] } if options[:token]
|
182
182
|
|
183
183
|
# Parse options used as query params
|
184
184
|
consistency = 'stale' if options[:stale]
|
data/lib/diplomat/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: diplomat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Hamelink
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2019-03-
|
12
|
+
date: 2019-03-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|