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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 85872cc01c60191065da458bbfb853b8cb16d3c7
4
- data.tar.gz: 776b0d6b31929f1328e5b9cd3f64962c53814ba1
3
+ metadata.gz: 09c6058fde667219b0e08ed9118dc49000da12c9
4
+ data.tar.gz: b13753886f7406977b20c336093a0c259fa848bc
5
5
  SHA512:
6
- metadata.gz: 64553f26ca6880005b53d62f4bb45db3327a557537403f0b1fa9ad28438bc3836a9d5af2c7767281cf7898d35fb424fb49bd3e33b265c98e729e8400f9b334be
7
- data.tar.gz: 8745eb25961470d2e9ae9920116f40a9ad3ab6000c618e93053a9e32e860269e9875c2db390e9eae91eb27b9c3119be1185fb14eca4452e190ddde0ae0b67b5e
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: e["Key"],
144
- value: e["Value"].nil? ? e["Value"] : Base64.decode64(e["Value"])
143
+ :key => e["Key"],
144
+ :value => e["Value"].nil? ? e["Value"] : Base64.decode64(e["Value"])
145
145
  }
146
146
  end
147
147
  end
@@ -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
- Diplomat::Service.new.get *args
47
+ new(*args).get
43
48
  end
44
49
 
45
50
  end
@@ -1,3 +1,3 @@
1
1
  module Diplomat
2
- VERSION = "0.6.1"
2
+ VERSION = "0.7.0"
3
3
  end
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.6.1
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-13 00:00:00.000000000 Z
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.14.1
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.14.1
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.0'
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.0'
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: '1.3'
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: '1.3'
138
+ version: '2.0'
139
139
  - !ruby/object:Gem::Dependency
140
140
  name: json
141
141
  requirement: !ruby/object:Gem::Requirement