configurate 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/configurate.rb +5 -5
- data/lib/configurate/provider/env.rb +1 -0
- metadata +4 -4
data/lib/configurate.rb
CHANGED
@@ -21,11 +21,11 @@ module Configurate
|
|
21
21
|
#
|
22
22
|
# require Rails.root.join('lib', 'configuration')
|
23
23
|
#
|
24
|
-
# AppSettings =
|
25
|
-
# add_provider
|
26
|
-
# add_provider
|
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
|
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
|
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
|
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.
|
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:
|
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:
|
40
|
+
version: 1.9.2
|
41
41
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
42
42
|
none: false
|
43
43
|
requirements:
|