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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/dotenv-rails.rb +10 -0
  3. metadata +5 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7c5e024eb2d126b780fd970f9203c2976a0ad7cd
4
- data.tar.gz: 351ea28b418ed238edd0750d5dab736e12052c48
3
+ metadata.gz: 5e4a0a6176c2b286f07f63a2f2e6360bd27f39d9
4
+ data.tar.gz: 52016d28b5783fd8fc9e02fbfda8021c688fc661
5
5
  SHA512:
6
- metadata.gz: 8c20c2a051663c2db033ba4ec4babd642a413da76c2c204cc4a54a1dfdf8533a6dcdce1da45429b029f2bfea95baece4457785726bfac0529038bd807cf408f6
7
- data.tar.gz: 0c0296d9ee4b41416c32d93eec243782132af0ba30900e84099a12e3addb6f036b06efe8eb28f6bf4595138d91651aa46207a1a0301572da92444929becaa3b8
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.10.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-02-22 00:00:00.000000000 Z
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.10.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.10.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: