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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 16424ed2483c59320693c5fa6e98ae986c2c20c7
4
- data.tar.gz: a2a578aefa883f5ce9da392619724479ae2f4324
3
+ metadata.gz: 77180800b03d349664137915197bc18fbc2059f8
4
+ data.tar.gz: 619c8ee87ce16fa62d7feeb5bad2eb74385fd7fb
5
5
  SHA512:
6
- metadata.gz: 83ed8596afaacb62abdb09acb649093c97f36cafb1c2fd1cb0f032132bb98e5e33ad0f9db772b55755bb9d988f6dc6d9340fbb3e737a57e17d531dd85c779c99
7
- data.tar.gz: 95222ebb6153c603f5292ffa0e2eb0710c9e3c1aaffef719adaa00336da64d36b2b6259ed7d1fc82396d42bf06831575eae359af07871808b73e18ad3b6034de
6
+ metadata.gz: 580de3dba33a0fd2aa3967404ebb9e581661e46574c2ce269c4b63f7ba1717e9dc8240b9cad6d811f9b3d1b5d4928ad453c3c795529f24d0ed1e54afbad67d31
7
+ data.tar.gz: f9d7248c305173cfaf898cc77586ca4e91baa19c286f36341d649095b7d577a91fd37226e29e9c3f21896c5f0cf3be0125c8444108ffdc8233f74227f35317a7
@@ -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 agents expose a HTTP REST API and this library is used to communicate directly with it.}
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.8'
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
@@ -1,5 +1,5 @@
1
1
  module Consul
2
2
  module Client
3
- VERSION = "0.0.3"
3
+ VERSION = "0.0.4"
4
4
  end
5
5
  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 Has the key ever been generated
41
+ # TODO Generation implementation
42
42
  # Create a Consul Session the the underlying namespace
43
- # Get the current value for
44
- # Set the check and set primitive
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.3
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-28 00:00:00.000000000 Z
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.8'
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.8'
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: Consul agents expose a HTTP REST API and this library is used to communicate
126
- directly with it.
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: []