dotenv-rails 0.10.0 → 0.11.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dotenv-rails.rb +10 -0
- metadata +5 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5e4a0a6176c2b286f07f63a2f2e6360bd27f39d9
|
4
|
+
data.tar.gz: 52016d28b5783fd8fc9e02fbfda8021c688fc661
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c7584d8bc0dc250a9c6a008a287b447689c7d39828d251e3fee2557655086b61c00bd780b32fbeab31b6a35227da554cf19d89cc7887dc839bbb715aebbc247f
|
7
|
+
data.tar.gz: faa8a24de93f04afba293fbfbb9e1d275dd6410984c93a52494f1edbad91d8f1dded18d136fbf4e0ddf975c7887461110472a603f786f410a0f9bfbb849c0fd0
|
data/lib/dotenv-rails.rb
CHANGED
@@ -1 +1,11 @@
|
|
1
1
|
require 'dotenv/railtie'
|
2
|
+
|
3
|
+
env_file = ".env.#{Rails.env}"
|
4
|
+
if File.exists?(env_file) && !defined?(Dotenv::Deployment)
|
5
|
+
warn "Auto-loading of `#{env_file}` will be removed in 1.0. See " +
|
6
|
+
"https://github.com/bkeepers/dotenv-deployment if you would like to " +
|
7
|
+
"continue using this feature."
|
8
|
+
Dotenv.load ".env.#{Rails.env}"
|
9
|
+
end
|
10
|
+
|
11
|
+
Dotenv.load '.env'
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dotenv-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.11.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Keepers
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-
|
11
|
+
date: 2014-04-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: dotenv
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 0.
|
19
|
+
version: 0.11.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 0.
|
26
|
+
version: 0.11.0
|
27
27
|
description: Autoload dotenv in Rails.
|
28
28
|
email:
|
29
29
|
- brandon@opensoul.org
|
@@ -57,3 +57,4 @@ signing_key:
|
|
57
57
|
specification_version: 4
|
58
58
|
summary: Autoload dotenv in Rails.
|
59
59
|
test_files: []
|
60
|
+
has_rdoc:
|