configurate 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -21,11 +21,11 @@ module Configurate
21
21
  #
22
22
  # require Rails.root.join('lib', 'configuration')
23
23
  #
24
- # AppSettings = Configuration::Settings.create do
25
- # add_provider Configuration::Provider::Env
26
- # add_provider Configuration::Provider::YAML, '/etc/app_settings.yml',
24
+ # AppSettings = Configurate::Settings.create do
25
+ # add_provider Configurate::Provider::Env
26
+ # add_provider Configurate::Provider::YAML, '/etc/app_settings.yml',
27
27
  # namespace: Rails.env, required: false
28
- # add_provider Configuration::Provider::YAML, 'config/default_settings.yml'
28
+ # add_provider Configurate::Provider::YAML, 'config/default_settings.yml'
29
29
  #
30
30
  # extend YourConfigurationMethods
31
31
  # end
@@ -53,7 +53,7 @@ module Configurate
53
53
 
54
54
  def initialize
55
55
  @lookup_chain = LookupChain.new
56
- $stderr.puts "Warning you called Configuration::Settings.new with a block, you really meant to call #create" if block_given?
56
+ $stderr.puts "Warning you called Configurate::Settings.new with a block, you really meant to call #create" if block_given?
57
57
  end
58
58
 
59
59
  # Create a new configuration object
@@ -7,6 +7,7 @@ module Configurate; module Provider
7
7
  class Env < Base
8
8
  def lookup_path(settings_path, *args)
9
9
  value = ENV[settings_path.join("_").upcase]
10
+ value = value.dup unless value.nil?
10
11
  value = value.split(",") if value && value.include?(",")
11
12
  value
12
13
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: configurate
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-11-30 00:00:00.000000000 Z
12
+ date: 2013-01-29 00:00:00.000000000 Z
13
13
  dependencies: []
14
14
  description: Configurate is a flexible configuration system that can read settings
15
15
  from multiple sources at the same time.
@@ -35,9 +35,9 @@ require_paths:
35
35
  required_ruby_version: !ruby/object:Gem::Requirement
36
36
  none: false
37
37
  requirements:
38
- - - ! '>='
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: 1.9.2
41
41
  required_rubygems_version: !ruby/object:Gem::Requirement
42
42
  none: false
43
43
  requirements: