consul-ruby-client 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/consul-ruby-client.gemspec +3 -2
- data/lib/consul/client/version.rb +1 -1
- data/lib/consul/extensions/uid.rb +7 -3
- metadata +7 -6
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 77180800b03d349664137915197bc18fbc2059f8
|
|
4
|
+
data.tar.gz: 619c8ee87ce16fa62d7feeb5bad2eb74385fd7fb
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 580de3dba33a0fd2aa3967404ebb9e581661e46574c2ce269c4b63f7ba1717e9dc8240b9cad6d811f9b3d1b5d4928ad453c3c795529f24d0ed1e54afbad67d31
|
|
7
|
+
data.tar.gz: f9d7248c305173cfaf898cc77586ca4e91baa19c286f36341d649095b7d577a91fd37226e29e9c3f21896c5f0cf3be0125c8444108ffdc8233f74227f35317a7
|
data/consul-ruby-client.gemspec
CHANGED
|
@@ -9,7 +9,8 @@ Gem::Specification.new do |spec|
|
|
|
9
9
|
spec.authors = ['Michael Hotan']
|
|
10
10
|
spec.email = ['michael.hotan@socrata.com']
|
|
11
11
|
spec.summary = %q{Ruby Client library for communicating with Consul Agents.}
|
|
12
|
-
spec.description = %q{Consul
|
|
12
|
+
spec.description = %q{Consul Thin Client. Exposes Consul defined interfaces through a very thin abstraction
|
|
13
|
+
layer.}
|
|
13
14
|
spec.homepage = 'https://github.com/mhotan-s/consul-ruby-client'
|
|
14
15
|
spec.license = 'MIT'
|
|
15
16
|
|
|
@@ -23,7 +24,7 @@ Gem::Specification.new do |spec|
|
|
|
23
24
|
spec.add_development_dependency 'rspec', '~> 3.2'
|
|
24
25
|
spec.add_development_dependency 'simplecov', '~> 0.9'
|
|
25
26
|
spec.add_development_dependency 'webmock', '~> 1.21'
|
|
26
|
-
spec.add_dependency 'rest-client', '~> 1.
|
|
27
|
+
spec.add_dependency 'rest-client', '~> 1.6'
|
|
27
28
|
spec.add_dependency 'representable', '~> 2.1'
|
|
28
29
|
spec.add_dependency 'json', '~> 1.8'
|
|
29
30
|
end
|
|
@@ -38,10 +38,14 @@ module Consul
|
|
|
38
38
|
|
|
39
39
|
# Public: Generate a global unique id syncronously with other
|
|
40
40
|
def generate
|
|
41
|
-
# TODO
|
|
41
|
+
# TODO Generation implementation
|
|
42
42
|
# Create a Consul Session the the underlying namespace
|
|
43
|
-
# Get the current value
|
|
44
|
-
#
|
|
43
|
+
# Get the current available value this namespace, acquire the lock
|
|
44
|
+
# if unable to get the lock then try again a FIXED number of times
|
|
45
|
+
# else (Lock Acquired)
|
|
46
|
+
# if value is nil then we need to set the available value to one assuming this id is 0
|
|
47
|
+
# if value is not nil then we need to set the available value to one plus that value.
|
|
48
|
+
# if unable to set the lock then get the value and try again.
|
|
45
49
|
end
|
|
46
50
|
|
|
47
51
|
private
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: consul-ruby-client
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.4
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Michael Hotan
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-04-
|
|
11
|
+
date: 2015-04-29 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|
|
@@ -86,14 +86,14 @@ dependencies:
|
|
|
86
86
|
requirements:
|
|
87
87
|
- - "~>"
|
|
88
88
|
- !ruby/object:Gem::Version
|
|
89
|
-
version: '1.
|
|
89
|
+
version: '1.6'
|
|
90
90
|
type: :runtime
|
|
91
91
|
prerelease: false
|
|
92
92
|
version_requirements: !ruby/object:Gem::Requirement
|
|
93
93
|
requirements:
|
|
94
94
|
- - "~>"
|
|
95
95
|
- !ruby/object:Gem::Version
|
|
96
|
-
version: '1.
|
|
96
|
+
version: '1.6'
|
|
97
97
|
- !ruby/object:Gem::Dependency
|
|
98
98
|
name: representable
|
|
99
99
|
requirement: !ruby/object:Gem::Requirement
|
|
@@ -122,8 +122,9 @@ dependencies:
|
|
|
122
122
|
- - "~>"
|
|
123
123
|
- !ruby/object:Gem::Version
|
|
124
124
|
version: '1.8'
|
|
125
|
-
description:
|
|
126
|
-
|
|
125
|
+
description: |-
|
|
126
|
+
Consul Thin Client. Exposes Consul defined interfaces through a very thin abstraction
|
|
127
|
+
layer.
|
|
127
128
|
email:
|
|
128
129
|
- michael.hotan@socrata.com
|
|
129
130
|
executables: []
|