correole 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c2eabe4999f3fd884498fa5527f4412e4518159f
4
- data.tar.gz: d58b3d94e45e64ae5b11881dec0acb2aac09b347
3
+ metadata.gz: bd23680d484c3a44bbd64e36a11ad473bda7953d
4
+ data.tar.gz: de2e5d476329234d2ab91e48ebb784edd442e59b
5
5
  SHA512:
6
- metadata.gz: 02300e95845c1a8042e3819d0635479a23c102469a7de130425dd5085dcc8046709679171f4152e708cea0cc223d9248ec6a28e190fdf23e6cc65accd3e8edb6
7
- data.tar.gz: 9cd63c545022d696e6f8130e144b6f9fca919e79a932b4eb50f19743cc34e47a809f73c0038e7208f8854d1a12efa7d6d9566f3d2fa517625f3116af0d38ab61
6
+ metadata.gz: b2bd2286ee6a39ed7abb65f86909dc54234ecd2bab9fdf1d3b72643fb08b4f05ebc3690257d5b09fae0a004fbf45ede5640993300296ae88221fbfebff589f42
7
+ data.tar.gz: 0eea183a91b61e868d30a2425568de437c939782cd49e8191e82a3321a90aa92a7c8205b07c83d68416b02f8e5bca2aea65fd9076305184b56858c7da79bd8ae
@@ -2,7 +2,7 @@ DEFAULT_ENV = 'production'
2
2
  DEFAULT_CONFIG_FILE = 'config.yml'
3
3
 
4
4
  ENV['RACK_ENV'] ||= DEFAULT_ENV
5
- ENV['CONFIG_FILE'] ||= DEFAULT_CONFIG_FILE
5
+ ENV['CONFIG_FILE'] ||= File.expand_path "../#{DEFAULT_CONFIG_FILE}", __FILE__
6
6
 
7
7
  class Configuration
8
8
 
@@ -30,10 +30,9 @@ class Configuration
30
30
 
31
31
  def self.load!
32
32
 
33
- config_file = File.expand_path "../#{ENV['CONFIG_FILE']}", __FILE__
34
- YAML.load_file(config_file)[ENV['RACK_ENV']].each_pair do |k, v|
33
+ YAML.load_file(ENV['CONFIG_FILE'])[ENV['RACK_ENV']].each_pair do |k, v|
35
34
  ENV[k.upcase] ||= v.to_s rescue abort "Cannot load configuration key #{k}."
36
- end rescue qputs "Could not load configuration file #{config_file}."
35
+ end rescue qputs "Could not load configuration file #{ENV['CONFIG_FILE']}."
37
36
 
38
37
  CONFIG_KEYS.each do |k|
39
38
  case k
@@ -1,4 +1,4 @@
1
1
  module Correole
2
- VERSION = '0.0.4'
2
+ VERSION = '0.0.5'
3
3
  DATE = '2016-07-26'
4
4
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: correole
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ruslan Ledesma Garza