dryad-consul 0.2.0 → 0.2.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
  SHA256:
3
- metadata.gz: 6b3d7df222cf9cdd2cb3401a03af97b7f5cc5195f84307a71c3570a305d3c93c
4
- data.tar.gz: e953dfcdab5576ff3cf118be53cd1b041eeed557759c86a8bee1d300d7143de1
3
+ metadata.gz: 9530815af9ae6e37deea60fd5a6ccc07132b8deb0b43a617b88de8fdbf113149
4
+ data.tar.gz: 0cf4b631294f4fe9f960bb99ddc6fe3cc4abd3d900e626d2c21961dff11f28fe
5
5
  SHA512:
6
- metadata.gz: 47c719b64b1bffce5646a2708f0211e9de0d512d039956080af23338f6a692724ea79292ecd26da25b609af95d9221c752b0a67450c2da528a294d4de9a94bf9
7
- data.tar.gz: 2a1de26f4e4070560ae93b318091e397cb9f1796fda92bd6cf834fd854406f176fdc5cd00142f59053fb0a1f6c816bfa5bb4e1863cb0d05b355f16bfb13043cb
6
+ metadata.gz: f3d8656ba76b1813c1527e00ff2914d68fb492a0d63aa9020bbe4d7c4ea686d385aae176f889b3a80e70a7b2af06d01c6f07a10bb27b8d83819f7b1cb9f1e1db
7
+ data.tar.gz: 96ba38abf933d6629ab8eb7d67dd3ff9c608af4286cf6b17e75dfe1064447b869aa480c239beb0acb6b8b2101ed8bd3f8fab1217c441e3255f6e8e9b18f9ce85
data/Gemfile.lock CHANGED
@@ -1,9 +1,9 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dryad-consul (0.1.1)
4
+ dryad-consul (0.2.1)
5
5
  diplomat (~> 2.2, >= 2.2.4)
6
- dryad-core (= 0.1.1)
6
+ dryad-core (= 0.2.1)
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
@@ -13,7 +13,7 @@ GEM
13
13
  diplomat (2.2.4)
14
14
  deep_merge (~> 1.0, >= 1.0.1)
15
15
  faraday (~> 0.9)
16
- dryad-core (0.1.1)
16
+ dryad-core (0.2.1)
17
17
  faraday (0.15.4)
18
18
  multipart-post (>= 1.2, < 3)
19
19
  multipart-post (2.1.1)
@@ -1,5 +1,5 @@
1
1
  module Dryad
2
2
  module Consul
3
- VERSION = '0.2.0'
3
+ VERSION = '0.2.1'
4
4
  end
5
5
  end
data/lib/dryad/consul.rb CHANGED
@@ -13,6 +13,7 @@ module Dryad
13
13
 
14
14
  ::Diplomat.configure do |config|
15
15
  config.url = "http://#{Dryad.configuration.consul[:host]}:#{Dryad.configuration.consul[:port]}"
16
+ config.options = { headers: { "X-Consul-Token" => Dryad.configuration.consul[:token] } } if Dryad.configuration.consul[:token]
16
17
  end
17
18
  end
18
19
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dryad-consul
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pan Jie
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2019-05-29 00:00:00.000000000 Z
11
+ date: 2019-05-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dryad-core
@@ -16,14 +16,14 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 0.2.0
19
+ version: 0.2.1
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - '='
25
25
  - !ruby/object:Gem::Version
26
- version: 0.2.0
26
+ version: 0.2.1
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: diplomat
29
29
  requirement: !ruby/object:Gem::Requirement