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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1acdbd2886416cb3307f284fd3ebeecd6cd66852
4
- data.tar.gz: 6b23b7466aa7155f5a2f434f947810d83fe7f6aa
3
+ metadata.gz: c86918ac0488a4893ddb36d9b7fded084db7a962
4
+ data.tar.gz: afcf30a9587a7d46a384bd36272c230b86202da7
5
5
  SHA512:
6
- metadata.gz: be17ae2b3b8c6f3cb6ec2c7a5f389b7a125eb7ffedc9b4bc0d81b8ebe2ffa139ea0415023b792c38db7939d68696a416ef0ce0fed02d6d13fb73ce4b4127a037
7
- data.tar.gz: 32396d3ee97ad0e0451e59cf41b1785f90ad4f2361fa165619575f7493e54e3ae0cb5e7e92bba48931d687231b349ef4667798c6dc09ad781bc87b19d991e83b
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
 
@@ -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 if 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
@@ -1,3 +1,3 @@
1
1
  module Diplomat
2
- VERSION = "0.9.1"
2
+ VERSION = "0.9.2"
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.9.1
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-08 00:00:00.000000000 Z
11
+ date: 2015-05-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler