env-conf 0.0.3 → 0.0.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/env-conf.rb +2 -1
- data/lib/env-conf/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: d65d6c79532e7e63b9cb9d15c21ffd286ece2b45
|
4
|
+
data.tar.gz: 0cdff989113e9acdc74a8d7da124fc2b5ea97c66
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 49577599914ac3a3b92cc7a404ff735a9930b08317ad3425500969b004c107d883687d769b48bdc4dec2ee14fd9436d6867f0e9e2aae7820a581115743a93101
|
7
|
+
data.tar.gz: ee100f7003c5cfd5bd238c35c9a4bf8259204f36c0c8b6885caa75e6f8b5d979380738359f63b1cb106e909803f4aa1c4e1c70815c200e1ff89cc63aa79f80d6
|
data/lib/env-conf.rb
CHANGED
@@ -1,4 +1,5 @@
|
|
1
1
|
require_relative './env-conf/version'
|
2
|
+
require 'uri'
|
2
3
|
|
3
4
|
module Config
|
4
5
|
@@defaults = {}
|
@@ -183,7 +184,7 @@ module Config
|
|
183
184
|
|
184
185
|
# Loads a ".env" file, using Dotenv to parse but not fuck up the ENV
|
185
186
|
def self.dotenv!
|
186
|
-
return if Config.production?
|
187
|
+
return if Config.production?
|
187
188
|
require 'dotenv'
|
188
189
|
['.env','.env.local',".env.#{Config[:rack_env]}"].each do |filename|
|
189
190
|
if File.exists?(filename)
|
data/lib/env-conf/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: env-conf
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Continanza
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-11-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|