muchkeys 0.0.0 → 0.0.1

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: d7fd9f45ba331c316d39b65b541d0b716b43fc44
4
- data.tar.gz: bfd2a43a78fe4d75732156659dbeb380842d0cc0
3
+ metadata.gz: 295bc96c509542f52c01c3a7be03cf95d2507dcc
4
+ data.tar.gz: 0cd586cb9d7d43e67029f8c9f15fb3979c541480
5
5
  SHA512:
6
- metadata.gz: 3dfeebeb30ce971a04f36455d758f0b86e20a0a4ead14631be9988e0d9864930da6613e0c389b19b9a6bf701b56a729ac3e04cfbfe49a28d0c91f40d64bce350
7
- data.tar.gz: dfa081ce403dac7696a220be79e79ca26c0232a201ee622090697dc43ed7784189739109a07cefe9bb69c74d4845a6a935ca7edf255747f43cda5efb6f0d992d
6
+ metadata.gz: 991c8c9dddc589a1af5da74e80234a7a8152309cfc6b5dbcef2035acdb97b8df33022a182ac8bdebe42064b8358897cbf667a7794decbcc6432b7e1292253a1e
7
+ data.tar.gz: ea47aa2d9d97676f423c7c8fa68da3b530645468e8be796076364989e37029ec2a335aee10d87c18642d3dae6ebfed5e7800ff9e6e05358b3f3349c6dad356c7
data/.gitignore CHANGED
@@ -7,3 +7,5 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ **.un~
11
+ *.gem
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
 
@@ -1,3 +1,3 @@
1
1
  module MuchKeys
2
- VERSION = "0.0.0"
2
+ VERSION = "0.0.1"
3
3
  end
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.get(URI(consul_url(key_name)))
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.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-25 00:00:00.000000000 Z
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: