rails_env_config 1.0.2 → 1.0.3

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/rails_env_config.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1cd99f7ecba2e012c28658b7ddcdb658d27d3bd8
4
- data.tar.gz: 2274d0015a4ef69a80f944c6a614e29aa2f78103
3
+ metadata.gz: 768c5cd0526b120bb72d9f8a3f90bd4b7645ca86
4
+ data.tar.gz: 329ef433e1a413b975eaff84cd3f39a01706aa5b
5
5
  SHA512:
6
- metadata.gz: e764430b3b26042f7ece85e28f2a0fa5d12ea8abc0da87d4c8ce4c04859ee00ff2bfb662b10450b4d4406ac408666de9bf62acab18effe8063a2de1d2b316293
7
- data.tar.gz: 38534901179ec3aa59a343e3bf3b2c8eb99ade8e067b6dc91e4a816c9c018ae4c8ccf326e986f3eda4b6e2c9a92b53ff6161118d863ea678d955eedd292c73a5
6
+ metadata.gz: c62a3744b6d5277871b33e81d519bc5227bde3920f12fe7aa37e8ba7b15c91db52e65f7464be6d3a08d88688baaa3dabc0b4cf7f97d9f05c4f2771732a1c7fd4
7
+ data.tar.gz: 6449650314e0b45ba97afe6bc3ff628a02c9b3af62d41b390a2e5afb0641b686887c6134d017b83eea9ecf3a1daf0909bc5b95cdd282b5213418e706122f2047
@@ -9,7 +9,7 @@ module RailsEnvConfig
9
9
  def self.load(path)
10
10
  if File.exist?(path)
11
11
  YAML.load(File.open(path)).each do |key, value|
12
- ENV[key.to_s] = value
12
+ ENV[key.to_s] ||= value
13
13
  end
14
14
  callbacks.each(&:call)
15
15
  @loaded = true
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_env_config
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.2
4
+ version: 1.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Cooke
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-16 00:00:00.000000000 Z
11
+ date: 2016-03-22 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Loads the complete contents of config/environment.yml into ENV when a
14
14
  Rails application starts.