diplomat 0.6.1 → 0.7.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/diplomat/kv.rb +2 -2
- data/lib/diplomat/service.rb +6 -1
- data/lib/diplomat/version.rb +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 09c6058fde667219b0e08ed9118dc49000da12c9
|
4
|
+
data.tar.gz: b13753886f7406977b20c336093a0c259fa848bc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 28e5c5a6251a9dbfd8d3962fdd2eab0f7fc7bf53a085ff1ac35e00584bc90a6bc48c37cec1981265fd0fcc8a34fe99388543284bdd40b71ed76dd76a4a349bdb
|
7
|
+
data.tar.gz: 86db1e94a2adca8ab6d55e05daabcff8ecef6cb64a285a3f4ca6dd21921d938b3b211c6e28a1736f582cef5e33350780bc2906027c8f611ff3d7a7505d9485e4
|
data/lib/diplomat/kv.rb
CHANGED
@@ -140,8 +140,8 @@ module Diplomat
|
|
140
140
|
else
|
141
141
|
@value = @raw.map do |e|
|
142
142
|
{
|
143
|
-
key
|
144
|
-
value
|
143
|
+
:key => e["Key"],
|
144
|
+
:value => e["Value"].nil? ? e["Value"] : Base64.decode64(e["Value"])
|
145
145
|
}
|
146
146
|
end
|
147
147
|
end
|
data/lib/diplomat/service.rb
CHANGED
@@ -22,6 +22,11 @@ module Diplomat
|
|
22
22
|
qs = "#{qs}#{sep}index=#{options[:index]}"
|
23
23
|
sep = "&"
|
24
24
|
end
|
25
|
+
if options and options[:dc]
|
26
|
+
qs = "#{qs}#{sep}dc=#{options[:dc]}"
|
27
|
+
sep = "&"
|
28
|
+
end
|
29
|
+
|
25
30
|
|
26
31
|
ret = @conn.get "/v1/catalog/service/#{key}#{qs}"
|
27
32
|
|
@@ -39,7 +44,7 @@ module Diplomat
|
|
39
44
|
|
40
45
|
# @note This is sugar, see (#get)
|
41
46
|
def self.get *args
|
42
|
-
|
47
|
+
new(*args).get
|
43
48
|
end
|
44
49
|
|
45
50
|
end
|
data/lib/diplomat/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: diplomat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- John Hamelink
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-04
|
11
|
+
date: 2015-05-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -58,28 +58,28 @@ dependencies:
|
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: 2
|
61
|
+
version: '3.2'
|
62
62
|
type: :development
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: 2
|
68
|
+
version: '3.2'
|
69
69
|
- !ruby/object:Gem::Dependency
|
70
70
|
name: fakes-rspec
|
71
71
|
requirement: !ruby/object:Gem::Requirement
|
72
72
|
requirements:
|
73
73
|
- - "~>"
|
74
74
|
- !ruby/object:Gem::Version
|
75
|
-
version: '2.
|
75
|
+
version: '2.1'
|
76
76
|
type: :development
|
77
77
|
prerelease: false
|
78
78
|
version_requirements: !ruby/object:Gem::Requirement
|
79
79
|
requirements:
|
80
80
|
- - "~>"
|
81
81
|
- !ruby/object:Gem::Version
|
82
|
-
version: '2.
|
82
|
+
version: '2.1'
|
83
83
|
- !ruby/object:Gem::Dependency
|
84
84
|
name: codeclimate-test-reporter
|
85
85
|
requirement: !ruby/object:Gem::Requirement
|
@@ -128,14 +128,14 @@ dependencies:
|
|
128
128
|
requirements:
|
129
129
|
- - "~>"
|
130
130
|
- !ruby/object:Gem::Version
|
131
|
-
version: '
|
131
|
+
version: '2.0'
|
132
132
|
type: :development
|
133
133
|
prerelease: false
|
134
134
|
version_requirements: !ruby/object:Gem::Requirement
|
135
135
|
requirements:
|
136
136
|
- - "~>"
|
137
137
|
- !ruby/object:Gem::Version
|
138
|
-
version: '
|
138
|
+
version: '2.0'
|
139
139
|
- !ruby/object:Gem::Dependency
|
140
140
|
name: json
|
141
141
|
requirement: !ruby/object:Gem::Requirement
|