diplomat 0.9.1 → 0.9.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -5
- data/lib/diplomat/rest_client.rb +1 -1
- data/lib/diplomat/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c86918ac0488a4893ddb36d9b7fded084db7a962
|
4
|
+
data.tar.gz: afcf30a9587a7d46a384bd36272c230b86202da7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f6955ee0739dbdda54fa2b70bc755249aea41d8e6c468b733371acaa9537d152d3f753862f50cf97d37a79aa778d38239e87bb68b3272f507cc58e463a6d457
|
7
|
+
data.tar.gz: 3de54e87489fad955155ba578fe8f1f587d3a0b70e4ca4811f062f91fe30ac67fe48e4208544877cd0433334580b7414e8b91c59c2f227c595782451a27a8810
|
data/README.md
CHANGED
@@ -23,10 +23,10 @@ production:
|
|
23
23
|
adapter: postgresql
|
24
24
|
encoding: unicode
|
25
25
|
host: <%= Diplomat::Service.get('postgres').Address %>
|
26
|
-
database: <%= Diplomat.get('project/db/name') %>
|
26
|
+
database: <%= Diplomat::Kv.get('project/db/name') %>
|
27
27
|
pool: 5
|
28
|
-
username: <%= Diplomat.get('project/db/user') %>
|
29
|
-
password: <%= Diplomat.get('project/db/pass') %>
|
28
|
+
username: <%= Diplomat::Kv.get('project/db/user') %>
|
29
|
+
password: <%= Diplomat::Kv.get('project/db/pass') %>
|
30
30
|
port: <%= Diplomat::Service.get('postgres').ServicePort %>
|
31
31
|
<% end %>
|
32
32
|
```
|
@@ -52,7 +52,7 @@ Here's a few examples of how diplomat works:
|
|
52
52
|
Getting the value of a key in the key-value store is as simple as using one of the following:
|
53
53
|
|
54
54
|
```ruby
|
55
|
-
foo = Diplomat.get('foo')
|
55
|
+
foo = Diplomat::Kv.get('foo')
|
56
56
|
# => "bar"
|
57
57
|
```
|
58
58
|
|
@@ -61,7 +61,7 @@ foo = Diplomat.get('foo')
|
|
61
61
|
Setting the value of a key is just as easy:
|
62
62
|
|
63
63
|
```ruby
|
64
|
-
foo = Diplomat.put('foo', 'bar')
|
64
|
+
foo = Diplomat::Kv.put('foo', 'bar')
|
65
65
|
# => "bar"
|
66
66
|
```
|
67
67
|
|
data/lib/diplomat/rest_client.rb
CHANGED
@@ -61,7 +61,7 @@ module Diplomat
|
|
61
61
|
return api_connection || Faraday.new(:url => Diplomat.configuration.url) do |faraday|
|
62
62
|
faraday.adapter Faraday.default_adapter
|
63
63
|
faraday.request :url_encoded
|
64
|
-
faraday.response :raise_error
|
64
|
+
faraday.response :raise_error unless raise_error
|
65
65
|
|
66
66
|
Diplomat.configuration.middleware.each do |middleware|
|
67
67
|
faraday.use middleware
|
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.9.
|
4
|
+
version: 0.9.2
|
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-05-
|
11
|
+
date: 2015-05-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|