dryad-consul 0.3.2 → 0.3.4

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: 1149060926d6c254097b6f498d80f5243d7ecda0b1a160394375f32ae807b0d0
4
- data.tar.gz: 0c5a0c58e1b2a03723dc58fb6c830c440e7103166af5c75f4831b186e7af5980
3
+ metadata.gz: 48124ab15b6961d45ce9eed7d67fa9635e3a2390d7ba9f2f4754801c070f9476
4
+ data.tar.gz: fe916f91598b23ea9e2ad6183c3de57e43e15566b9ca1aa32bf812bb7d43a64b
5
5
  SHA512:
6
- metadata.gz: 847aa97e79ddb1c3f213610148d290e10d02f0df43dfc4416ed099cf044acdfd0920443b44260273e99b569b13fea0c1fc332f4b7b8e62c7815606cae8b344ed
7
- data.tar.gz: eb3062b04cb425d63b30ad25acf0e9a745155581a45faa1b8d98e1f5323ba2f289f51f4238c0f75322e749342e27c7bcdccebcb77dd4a0fafb2b66cb59b62843
6
+ metadata.gz: 43348516948c17e87f9bf592a20942b30f9312bfd9cb523df1ca4719de62ff2c9f02e9e49e2748389fc1e160cd32962048ae9dbb297c36f8db4c1e104981f4ce
7
+ data.tar.gz: da660ecc72ebbc4b689732988f12e0016f727235d6f06334e9b3f1742d753581cc2b9a21eba7bb945f7a46d92f60cf3c1bf71323a30f15b3f05ba3f92e8acfec
data/Gemfile.lock CHANGED
@@ -1,10 +1,10 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dryad-consul (0.3.2)
4
+ dryad-consul (0.3.4)
5
5
  concurrent-ruby (~> 1.1, >= 1.1.5)
6
6
  diplomat (~> 2.2, >= 2.2.4)
7
- dryad-core (= 0.3.2)
7
+ dryad-core (= 0.3.4)
8
8
 
9
9
  GEM
10
10
  remote: https://rubygems.org/
@@ -15,7 +15,7 @@ GEM
15
15
  diplomat (2.2.5)
16
16
  deep_merge (~> 1.0, >= 1.0.1)
17
17
  faraday (~> 0.9)
18
- dryad-core (0.3.2)
18
+ dryad-core (0.3.4)
19
19
  faraday (0.15.4)
20
20
  multipart-post (>= 1.2, < 3)
21
21
  multipart-post (2.1.1)
@@ -5,6 +5,10 @@ module Dryad
5
5
  @last_version = 0
6
6
  end
7
7
 
8
+ def version=(version)
9
+ @last_version = version
10
+ end
11
+
8
12
  def update(time, config_desc, exception)
9
13
  if exception
10
14
  puts "(#{time}) [#{self.class.to_s}] #{exception.message}"
@@ -16,6 +16,7 @@ module Dryad
16
16
  if config.nil?
17
17
  nil
18
18
  else
19
+ observer.version = config.ModifyIndex unless observer.nil?
19
20
  add_observer(observer, path)
20
21
  Dryad::Core::ConfigDesc.new(path, config.Value, config.ModifyIndex)
21
22
  end
@@ -1,5 +1,5 @@
1
1
  module Dryad
2
2
  module Consul
3
- VERSION = '0.3.2'
3
+ VERSION = '0.3.4'
4
4
  end
5
5
  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.3.2
4
+ version: 0.3.4
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-06-17 00:00:00.000000000 Z
11
+ date: 2019-07-08 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.3.2
19
+ version: 0.3.4
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.3.2
26
+ version: 0.3.4
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: diplomat
29
29
  requirement: !ruby/object:Gem::Requirement