muchkeys 0.0.0 → 0.0.1
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/.gitignore +2 -0
- data/README.md +2 -2
- data/lib/muchkeys/version.rb +1 -1
- data/lib/muchkeys.rb +1 -1
- data/muchkeys.gemspec +0 -8
- metadata +3 -4
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 295bc96c509542f52c01c3a7be03cf95d2507dcc
|
|
4
|
+
data.tar.gz: 0cd586cb9d7d43e67029f8c9f15fb3979c541480
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 991c8c9dddc589a1af5da74e80234a7a8152309cfc6b5dbcef2035acdb97b8df33022a182ac8bdebe42064b8358897cbf667a7794decbcc6432b7e1292253a1e
|
|
7
|
+
data.tar.gz: ea47aa2d9d97676f423c7c8fa68da3b530645468e8be796076364989e37029ec2a335aee10d87c18642d3dae6ebfed5e7800ff9e6e05358b3f3349c6dad356c7
|
data/.gitignore
CHANGED
data/README.md
CHANGED
|
@@ -27,12 +27,12 @@ Or install it yourself as:
|
|
|
27
27
|
## Usage
|
|
28
28
|
|
|
29
29
|
```
|
|
30
|
-
ruby -e 'puts MuchKeys.fetch_key("mail_server")'
|
|
30
|
+
ruby -e 'require "muchkeys"; puts MuchKeys.fetch_key("mail_server")'
|
|
31
31
|
# => smtp.example.com (from consul)
|
|
32
32
|
```
|
|
33
33
|
|
|
34
34
|
```
|
|
35
|
-
mail_server=muffin.ninja.local ruby -e 'puts MuchKeys.fetch_key("mail_server")'
|
|
35
|
+
mail_server=muffin.ninja.local ruby -e 'require "muchkeys"; puts MuchKeys.fetch_key("mail_server")'
|
|
36
36
|
# => muffin.ninja.local (from ENV)
|
|
37
37
|
```
|
|
38
38
|
|
data/lib/muchkeys/version.rb
CHANGED
data/lib/muchkeys.rb
CHANGED
|
@@ -31,7 +31,7 @@ module MuchKeys
|
|
|
31
31
|
default_configure if !configuration
|
|
32
32
|
return ENV[key_name] unless ENV[key_name].nil?
|
|
33
33
|
|
|
34
|
-
response = Net::HTTP.
|
|
34
|
+
response = Net::HTTP.get_response(URI(consul_url(key_name)))
|
|
35
35
|
handle_response(response)
|
|
36
36
|
fetch_body(response)
|
|
37
37
|
end
|
data/muchkeys.gemspec
CHANGED
|
@@ -14,14 +14,6 @@ Gem::Specification.new do |spec|
|
|
|
14
14
|
spec.homepage = "https://www.goldstar.com"
|
|
15
15
|
spec.license = "MIT"
|
|
16
16
|
|
|
17
|
-
# Prevent pushing this gem to RubyGems.org by setting 'allowed_push_host', or
|
|
18
|
-
# delete this section to allow pushing this gem to any host.
|
|
19
|
-
if spec.respond_to?(:metadata)
|
|
20
|
-
spec.metadata['allowed_push_host'] = "https://rubygems.org"
|
|
21
|
-
else
|
|
22
|
-
raise "RubyGems 2.0 or newer is required to protect against public gem pushes."
|
|
23
|
-
end
|
|
24
|
-
|
|
25
17
|
spec.files = `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
|
26
18
|
spec.bindir = "exe"
|
|
27
19
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: muchkeys
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Pat O'Brien
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: exe
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2015-07-
|
|
12
|
+
date: 2015-07-27 00:00:00.000000000 Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: bundler
|
|
@@ -134,8 +134,7 @@ files:
|
|
|
134
134
|
homepage: https://www.goldstar.com
|
|
135
135
|
licenses:
|
|
136
136
|
- MIT
|
|
137
|
-
metadata:
|
|
138
|
-
allowed_push_host: https://rubygems.org
|
|
137
|
+
metadata: {}
|
|
139
138
|
post_install_message:
|
|
140
139
|
rdoc_options: []
|
|
141
140
|
require_paths:
|