dotenv-deployment 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Changelog.md +11 -0
- data/README.md +1 -1
- data/lib/dotenv/deployment.rb +5 -4
- data/lib/dotenv/deployment/capistrano.rb +1 -1
- data/lib/dotenv/deployment/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4f4b2ff79bb5abcadd19b7d832807eda6828384
|
4
|
+
data.tar.gz: c6e471aa20d735898ca3064a2cdecb7af7f6457c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 888db081a409d26f199cb8f777689d7b4a9d3c08baf338a61dd22709afc05b1d3bf2dfeae52dee38bc10a1f94d1f2100bbb46b3bbb0e6a53cabff093a736a0b9
|
7
|
+
data.tar.gz: 37f81a9cc3f44f7466b3b94773b29248e8f01a33e740926ae2627ebbb054cbd28a1cf3003e680bcc26eec2dd43b9ea61747c15839e238c2d10fb5e6cf1baa62d
|
data/Changelog.md
ADDED
@@ -0,0 +1,11 @@
|
|
1
|
+
# Changelog
|
2
|
+
|
3
|
+
## 0.0.2 - Apr 22, 2014
|
4
|
+
|
5
|
+
* Fix syntax errors after extracting from `dotenv`
|
6
|
+
|
7
|
+
[Full Changelog](https://github.com/bkeepers/dotenv/compare/v0.0.1...v0.0.2)
|
8
|
+
|
9
|
+
## 0.0.1 - Apr 21, 2014
|
10
|
+
|
11
|
+
* Extract from https://github.com/bkeepers/dotenv
|
data/README.md
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
# dotenv
|
1
|
+
# dotenv-deployment
|
2
2
|
|
3
3
|
[dotenv](https://github.com/bkeepers/dotenv) is designed to load configuration variables into `ENV` in *development*. It does not concern itself with production environments because there are typically better ways to manage configuration in those environments—such as `/etc/environment` managed by [Puppet](https://github.com/puppetlabs/puppet) or [Chef](https://github.com/opscode/chef), `heroku config`, etc.
|
4
4
|
|
data/lib/dotenv/deployment.rb
CHANGED
@@ -2,10 +2,11 @@ require "dotenv"
|
|
2
2
|
require "dotenv/deployment/version"
|
3
3
|
|
4
4
|
# Load defaults from .env or *.env in config
|
5
|
-
Dotenv.load '.env'
|
5
|
+
Dotenv.load '.env'
|
6
6
|
Dotenv.load *Dir.glob("#{Rails.root}/config/**/*.env") if defined?(Rails)
|
7
7
|
|
8
8
|
# Override any existing variables if an environment-specific file exists
|
9
|
-
environment = ENV['RACK_ENV'] || (defined?(Rails) && Rails.env)
|
10
|
-
Dotenv.overload ".env.#{environment}"
|
11
|
-
Dotenv.overload *Dir.glob("#{Rails.root}/config/**/*.env.#{environment}") if defined?(Rails)
|
9
|
+
if environment = ENV['RACK_ENV'] || (defined?(Rails) && Rails.env)
|
10
|
+
Dotenv.overload ".env.#{environment}"
|
11
|
+
Dotenv.overload *Dir.glob("#{Rails.root}/config/**/*.env.#{environment}") if defined?(Rails)
|
12
|
+
end
|
@@ -3,7 +3,7 @@ require 'capistrano/version'
|
|
3
3
|
if defined?(Capistrano::VERSION) && Capistrano::VERSION >= '3.0'
|
4
4
|
raise 'Please read https://github.com/bkeepers/dotenv-deployment#capistrano to update your dotenv configuration for new Capistrano version'
|
5
5
|
else
|
6
|
-
require 'dotenv/capistrano/recipes'
|
6
|
+
require 'dotenv/deployment/capistrano/recipes'
|
7
7
|
|
8
8
|
Capistrano::Configuration.instance(:must_exist).load do
|
9
9
|
before "deploy:finalize_update", "dotenv:symlink"
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dotenv-deployment
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brandon Keepers
|
@@ -46,6 +46,7 @@ extensions: []
|
|
46
46
|
extra_rdoc_files: []
|
47
47
|
files:
|
48
48
|
- .gitignore
|
49
|
+
- Changelog.md
|
49
50
|
- Gemfile
|
50
51
|
- LICENSE.txt
|
51
52
|
- README.md
|