dryad 1.0.1 → 1.1.0

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: 1a83e68f41991b705835ebd2eeff92195fe239f58f484c0dbca1b0d68d85e11d
4
- data.tar.gz: 187949a949a2b33bc6f53f5617f1d81b2cec60005240cab2a261a62de7103e0c
3
+ metadata.gz: 643e22efb737e2c3ab6ae295ee945020554bcc49ff5a6d323baac2b9be17922d
4
+ data.tar.gz: dd8399da60dce6748dd79995241722ffb7e838085894bc20a11874eaa688394e
5
5
  SHA512:
6
- metadata.gz: 0d2570f9c228eb72688d2142973d040b32fc578c11f0a777a4f2482bcfe3c15c1ed33da03240714ef7799f6ddb5c704d61d2f676c6b54e2e7f1ec68b7b486a18
7
- data.tar.gz: aa3d81845defb3b26c1e1bda3442565dfca6a4f5ac2552628c5952bbc531ebae9ac242279c192c516d61d04b280c8c7cbe6fae9cd1fce6356c449f8f00569359
6
+ metadata.gz: a92b29ea56c0baf0eacf25fb13cd03228752c5cee2e0b1dcdc66f615e103582e215b26da5e3cce3ab8fc2e9af9ff696edfa31297b6ac27a53e9ed6f4685af370
7
+ data.tar.gz: 3856aadfd930606ad7cea5f64cb23c5659cac6ffd8651e9fb40af2262b99221b6fff7695423c0ae7d802105b6006b8bfe35fd67b3d18878d94c0aeaa9c902e19
data/Gemfile.lock CHANGED
@@ -1,32 +1,48 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- dryad (1.0.1)
5
- dryad-cluster (= 1.0.1)
6
- dryad-consul (= 1.0.1)
7
- dryad-core (= 1.0.1)
8
- dryad-cluster (1.0.1)
4
+ dryad (1.1.0)
5
+ dryad-cluster (= 1.1.0)
6
+ dryad-consul (= 1.1.0)
7
+ dryad-core (= 1.1.0)
8
+ dryad-cluster (1.1.0)
9
9
  concurrent-ruby (~> 1.1, >= 1.1.5)
10
- dryad-consul (= 1.0.1)
11
- dryad-core (= 1.0.1)
12
- dryad-consul (1.0.1)
10
+ dryad-consul (= 1.1.0)
11
+ dryad-core (= 1.1.0)
12
+ dryad-consul (1.1.0)
13
13
  concurrent-ruby (~> 1.1, >= 1.1.5)
14
14
  diplomat (~> 2.2, >= 2.2.4)
15
- dryad-core (= 1.0.1)
16
- dryad-core (1.0.1)
15
+ dryad-core (= 1.1.0)
16
+ dryad-core (1.1.0)
17
17
 
18
18
  GEM
19
19
  remote: https://rubygems.org/
20
20
  specs:
21
+ activesupport (5.2.3)
22
+ concurrent-ruby (~> 1.0, >= 1.0.2)
23
+ i18n (>= 0.7, < 2)
24
+ minitest (~> 5.1)
25
+ tzinfo (~> 1.1)
26
+ addressable (2.6.0)
27
+ public_suffix (>= 2.0.2, < 4.0)
21
28
  concurrent-ruby (1.1.5)
29
+ crack (0.4.3)
30
+ safe_yaml (~> 1.0.0)
22
31
  deep_merge (1.2.1)
23
32
  diff-lcs (1.3)
24
33
  diplomat (2.2.5)
25
34
  deep_merge (~> 1.0, >= 1.0.1)
26
35
  faraday (~> 0.9)
36
+ factory_bot (5.0.2)
37
+ activesupport (>= 4.2.0)
27
38
  faraday (0.15.4)
28
39
  multipart-post (>= 1.2, < 3)
40
+ hashdiff (1.0.0)
41
+ i18n (1.6.0)
42
+ concurrent-ruby (~> 1.0)
43
+ minitest (5.11.3)
29
44
  multipart-post (2.1.1)
45
+ public_suffix (3.1.1)
30
46
  rake (12.3.2)
31
47
  rspec (3.8.0)
32
48
  rspec-core (~> 3.8.0)
@@ -41,6 +57,14 @@ GEM
41
57
  diff-lcs (>= 1.2.0, < 2.0)
42
58
  rspec-support (~> 3.8.0)
43
59
  rspec-support (3.8.0)
60
+ safe_yaml (1.0.5)
61
+ thread_safe (0.3.6)
62
+ tzinfo (1.2.5)
63
+ thread_safe (~> 0.1)
64
+ webmock (3.6.2)
65
+ addressable (>= 2.3.6)
66
+ crack (>= 0.3.2)
67
+ hashdiff (>= 0.4.0, < 2.0.0)
44
68
 
45
69
  PLATFORMS
46
70
  ruby
@@ -48,8 +72,10 @@ PLATFORMS
48
72
  DEPENDENCIES
49
73
  bundler (~> 2.0)
50
74
  dryad!
75
+ factory_bot (~> 5.0)
51
76
  rake (~> 12.3)
52
77
  rspec (~> 3.0)
78
+ webmock (~> 3.6)
53
79
 
54
80
  BUNDLED WITH
55
81
  2.0.1
data/dryad.gemspec CHANGED
@@ -28,4 +28,6 @@ Gem::Specification.new do |spec|
28
28
  spec.add_development_dependency "bundler", "~> 2.0"
29
29
  spec.add_development_dependency "rake", "~> 12.3"
30
30
  spec.add_development_dependency "rspec", "~> 3.0"
31
+ spec.add_development_dependency "factory_bot", "~> 5.0"
32
+ spec.add_development_dependency "webmock", "~> 3.6"
31
33
  end
@@ -1,6 +1,6 @@
1
1
  module Dryad
2
2
  class Configuration
3
- attr_accessor :consul, :namespace, :group, :registry, :provider, :service
3
+ attr_accessor :consul, :namespace, :group, :registry, :provider, :service, :cluster
4
4
 
5
5
  DEFAULT_OPTIONS = {
6
6
  consul: {
@@ -18,6 +18,7 @@ module Dryad
18
18
  @registry = opts[:registry]
19
19
  @provider = opts[:provider]
20
20
  @service = opts[:service]
21
+ @cluster = opts[:cluster]
21
22
  end
22
23
  end
23
24
  end
data/lib/dryad/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Dryad
2
- VERSION = '1.0.1'
2
+ VERSION = '1.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dryad
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.1
4
+ version: 1.1.0
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-07-11 00:00:00.000000000 Z
11
+ date: 2019-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: dryad-core
@@ -16,42 +16,42 @@ dependencies:
16
16
  requirements:
17
17
  - - '='
18
18
  - !ruby/object:Gem::Version
19
- version: 1.0.1
19
+ version: 1.1.0
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: 1.0.1
26
+ version: 1.1.0
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: dryad-consul
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
31
  - - '='
32
32
  - !ruby/object:Gem::Version
33
- version: 1.0.1
33
+ version: 1.1.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '='
39
39
  - !ruby/object:Gem::Version
40
- version: 1.0.1
40
+ version: 1.1.0
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: dryad-cluster
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
45
  - - '='
46
46
  - !ruby/object:Gem::Version
47
- version: 1.0.1
47
+ version: 1.1.0
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
52
  - - '='
53
53
  - !ruby/object:Gem::Version
54
- version: 1.0.1
54
+ version: 1.1.0
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: bundler
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -94,6 +94,34 @@ dependencies:
94
94
  - - "~>"
95
95
  - !ruby/object:Gem::Version
96
96
  version: '3.0'
97
+ - !ruby/object:Gem::Dependency
98
+ name: factory_bot
99
+ requirement: !ruby/object:Gem::Requirement
100
+ requirements:
101
+ - - "~>"
102
+ - !ruby/object:Gem::Version
103
+ version: '5.0'
104
+ type: :development
105
+ prerelease: false
106
+ version_requirements: !ruby/object:Gem::Requirement
107
+ requirements:
108
+ - - "~>"
109
+ - !ruby/object:Gem::Version
110
+ version: '5.0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: webmock
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - "~>"
116
+ - !ruby/object:Gem::Version
117
+ version: '3.6'
118
+ type: :development
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - "~>"
123
+ - !ruby/object:Gem::Version
124
+ version: '3.6'
97
125
  description: Dryad is a configration management client. It provides functions such
98
126
  as hot loading of configuration files.
99
127
  email: