rconfig 0.4.2 → 0.4.3
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/ChangeLog +7 -0
- data/Gemfile +1 -0
- data/Gemfile.lock +2 -0
- data/Rakefile +11 -8
- data/doc/Array.html +184 -0
- data/doc/Hash.html +360 -0
- data/doc/NilClass.html +233 -0
- data/doc/RConfig.html +328 -0
- data/doc/RConfig/Callbacks.html +295 -0
- data/doc/RConfig/Cascade.html +316 -0
- data/doc/RConfig/Config.html +441 -0
- data/doc/RConfig/ConfigError.html +187 -0
- data/doc/RConfig/Constants.html +271 -0
- data/doc/RConfig/CoreMethods.html +814 -0
- data/doc/RConfig/DisabledLogger.html +424 -0
- data/doc/RConfig/Exceptions.html +266 -0
- data/doc/RConfig/Generators.html +186 -0
- data/doc/RConfig/Generators/InstallGenerator.html +233 -0
- data/doc/RConfig/InvalidLoadPathError.html +187 -0
- data/doc/RConfig/LoadPaths.html +375 -0
- data/doc/RConfig/Logger.html +184 -0
- data/doc/RConfig/PropertiesFile.html +399 -0
- data/doc/RConfig/Reload.html +481 -0
- data/doc/RConfig/Settings.html +188 -0
- data/doc/RConfig/Utils.html +841 -0
- data/doc/README_rdoc.html +331 -0
- data/doc/String.html +184 -0
- data/doc/created.rid +21 -1
- data/doc/index.html +423 -20
- data/doc/lib/generators/rconfig/install_generator_rb.html +52 -0
- data/doc/lib/generators/rconfig/templates/rconfig_rb.html +56 -0
- data/doc/lib/rconfig/callbacks_rb.html +52 -0
- data/doc/lib/rconfig/cascade_rb.html +52 -0
- data/doc/lib/rconfig/config_rb.html +61 -0
- data/doc/lib/rconfig/constants_rb.html +52 -0
- data/doc/lib/rconfig/core_ext/array_rb.html +52 -0
- data/doc/lib/rconfig/core_ext/hash_rb.html +61 -0
- data/doc/lib/rconfig/core_ext/nil_rb.html +52 -0
- data/doc/lib/rconfig/core_ext/string_rb.html +52 -0
- data/doc/lib/rconfig/core_methods_rb.html +55 -0
- data/doc/lib/rconfig/exceptions_rb.html +58 -0
- data/doc/lib/rconfig/load_paths_rb.html +52 -0
- data/doc/lib/rconfig/logger_rb.html +52 -0
- data/doc/lib/rconfig/properties_file_rb.html +93 -0
- data/doc/lib/rconfig/reload_rb.html +52 -0
- data/doc/lib/rconfig/settings_rb.html +52 -0
- data/doc/lib/rconfig/utils_rb.html +52 -0
- data/doc/lib/rconfig_rb.html +151 -0
- data/doc/rdoc.css +706 -0
- data/lib/rconfig.rb +1 -1
- data/lib/rconfig/load_paths.rb +2 -2
- data/lib/tasks/rdoc.rake +3 -4
- data/rconfig.gemspec +4 -2
- data/spec/config/erb_contents.yml +3 -0
- data/spec/config/props_config.conf +18 -0
- data/spec/config/spec.yml +17 -0
- data/spec/config/xml_config.xml +22 -0
- data/spec/config2/.gitkeep +0 -0
- data/spec/rconfig/load_paths_spec.rb +37 -0
- data/spec/rconfig/reload_spec.rb +37 -0
- data/spec/rconfig_spec.rb +61 -3
- data/spec/spec_helper.rb +12 -8
- metadata +82 -40
- data/doc/classes/ClassVariables.html +0 -111
- data/doc/classes/ConfigError.html +0 -120
- data/doc/classes/ConfigHash.html +0 -354
- data/doc/classes/Constants.html +0 -226
- data/doc/classes/Hash.html +0 -269
- data/doc/classes/InvalidConfigPathError.html +0 -119
- data/doc/classes/Object.html +0 -220
- data/doc/classes/PropertiesFileParser.html +0 -282
- data/doc/classes/RConfig.html +0 -1745
- data/doc/files/README_rdoc.html +0 -271
- data/doc/files/lib/rconfig/class_variables_rb.html +0 -107
- data/doc/files/lib/rconfig/config_hash_rb.html +0 -114
- data/doc/files/lib/rconfig/constants_rb.html +0 -101
- data/doc/files/lib/rconfig/core_ext/hash_rb.html +0 -114
- data/doc/files/lib/rconfig/core_ext/object_rb.html +0 -101
- data/doc/files/lib/rconfig/core_ext_rb.html +0 -114
- data/doc/files/lib/rconfig/exceptions_rb.html +0 -110
- data/doc/files/lib/rconfig/properties_file_parser_rb.html +0 -146
- data/doc/files/lib/rconfig/rconfig_rb.html +0 -186
- data/doc/files/lib/rconfig_rb.html +0 -117
- data/doc/fr_class_index.html +0 -35
- data/doc/fr_file_index.html +0 -37
- data/doc/fr_method_index.html +0 -75
- data/doc/rdoc-style.css +0 -208
- data/lib/tasks/gem.rake +0 -14
- data/lib/tasks/spec.rake +0 -25
- data/spec/core_ext/object_spec.rb +0 -44
data/lib/rconfig.rb
CHANGED
data/lib/rconfig/load_paths.rb
CHANGED
|
@@ -21,6 +21,7 @@ module RConfig
|
|
|
21
21
|
def add_load_path(path)
|
|
22
22
|
if path = parse_load_paths(path).first # only accept first one.
|
|
23
23
|
self.load_paths << path
|
|
24
|
+
self.load_paths.uniq!
|
|
24
25
|
return reload(true) # Load Paths have changed so force a reload
|
|
25
26
|
end
|
|
26
27
|
false
|
|
@@ -30,7 +31,6 @@ module RConfig
|
|
|
30
31
|
# If the paths are made up of a delimited string, then parse out the
|
|
31
32
|
# individual paths. Verify that each path is valid.
|
|
32
33
|
def parse_load_paths(paths)
|
|
33
|
-
return [] unless paths
|
|
34
34
|
if paths.is_a? String
|
|
35
35
|
path_sep = (paths =~ /;/) ? ';' : ':'
|
|
36
36
|
paths = paths.split(/#{path_sep}+/)
|
|
@@ -39,7 +39,7 @@ module RConfig
|
|
|
39
39
|
raise ArgumentError, "Must provide at least one load path: [#{paths.inspect}]" if paths.empty?
|
|
40
40
|
paths.each do |dir|
|
|
41
41
|
dir = CONFIG_ROOT if dir == 'CONFIG_ROOT'
|
|
42
|
-
raise
|
|
42
|
+
raise InvalidLoadPathError, "This directory is invalid: [#{dir.inspect}]" unless Dir.exists?(dir)
|
|
43
43
|
end
|
|
44
44
|
paths
|
|
45
45
|
end
|
data/lib/tasks/rdoc.rake
CHANGED
|
@@ -1,11 +1,10 @@
|
|
|
1
|
-
|
|
1
|
+
require 'rdoc/task'
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
namespace :rdoc do
|
|
4
|
+
RDoc::Task.new(:build) do |rdoc|
|
|
4
5
|
rdoc.rdoc_dir = "doc"
|
|
5
6
|
rdoc.main = "README.rdoc"
|
|
6
7
|
rdoc.rdoc_files.include("README.rdoc", "lib/**/*.rb")
|
|
7
8
|
rdoc.options << "--all"
|
|
8
9
|
end
|
|
9
|
-
|
|
10
10
|
end
|
|
11
|
-
|
data/rconfig.gemspec
CHANGED
|
@@ -12,7 +12,7 @@ Gem::Specification.new do |s|
|
|
|
12
12
|
s.version = RConfig::VERSION
|
|
13
13
|
s.authors = ['Rahmal Conda']
|
|
14
14
|
s.email = ['rahmal@gmail.com']
|
|
15
|
-
s.homepage = 'http://
|
|
15
|
+
s.homepage = 'http://rahmal.github.com/rconfig'
|
|
16
16
|
s.description = %q{Configuration management library for Ruby applications.}
|
|
17
17
|
s.summary = %q{The complete solution for Ruby Configuration Management. RConfig is a Ruby library that manages configuration within Ruby applications. It bridges the gap between yaml, xml, and key/value based properties files, by providing a centralized solution to handle application configuration from one location. It provides the simplicity of hash-based access, that Rubyists have come to know and love, supporting your configuration style of choice, while providing many new features, and an elegant API.}
|
|
18
18
|
s.licenses = ['MIT']
|
|
@@ -21,13 +21,15 @@ Gem::Specification.new do |s|
|
|
|
21
21
|
s.files = `git ls-files`.split("\n")
|
|
22
22
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
|
23
23
|
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
|
24
|
-
s.require_paths = [
|
|
24
|
+
s.require_paths = ['lib']
|
|
25
25
|
|
|
26
26
|
# Dependencies
|
|
27
27
|
s.add_dependency 'activesupport', '~> 3.0'
|
|
28
28
|
|
|
29
|
+
# Development Dependencies
|
|
29
30
|
s.add_development_dependency 'rspec', '~> 2.3.0'
|
|
30
31
|
s.add_development_dependency 'bundler', '~> 1.0.0'
|
|
31
32
|
s.add_development_dependency 'jeweler', '~> 1.6.4'
|
|
33
|
+
s.add_development_dependency 'i18n'
|
|
32
34
|
end
|
|
33
35
|
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
[admin]
|
|
2
|
+
name="Harry Potter"
|
|
3
|
+
email="harry@hogwarts.com"
|
|
4
|
+
|
|
5
|
+
[server]
|
|
6
|
+
host=127.0.0.1
|
|
7
|
+
port=8080
|
|
8
|
+
|
|
9
|
+
[teams "alpha"]
|
|
10
|
+
name="Alpha Squad"
|
|
11
|
+
location="San Francisco, CA"
|
|
12
|
+
num_members=12
|
|
13
|
+
|
|
14
|
+
[teams "beta"]
|
|
15
|
+
name="Beta Squad"
|
|
16
|
+
location="New York, NY"
|
|
17
|
+
num_members=10
|
|
18
|
+
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
admin:
|
|
2
|
+
name: 'Harry Potter'
|
|
3
|
+
email: 'harry@hogwarts.com'
|
|
4
|
+
|
|
5
|
+
server:
|
|
6
|
+
host: 127.0.0.1
|
|
7
|
+
port: 8080
|
|
8
|
+
|
|
9
|
+
teams:
|
|
10
|
+
alpha:
|
|
11
|
+
name: 'Alpha Squad'
|
|
12
|
+
location: 'San Francisco, CA'
|
|
13
|
+
num_members: 12
|
|
14
|
+
beta:
|
|
15
|
+
beta: 'Beta Squad'
|
|
16
|
+
location: 'New York, NY'
|
|
17
|
+
num_members: 10
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
<xml_config>
|
|
2
|
+
<admin>
|
|
3
|
+
<name>Harry Potter</name>
|
|
4
|
+
<email>harry@hogwarts.com</email>
|
|
5
|
+
</admin>
|
|
6
|
+
<server>
|
|
7
|
+
<host>127.0.0.1</host>
|
|
8
|
+
<port>8080</port>
|
|
9
|
+
</server>
|
|
10
|
+
<teams>
|
|
11
|
+
<alpha>
|
|
12
|
+
<name>Alpha Squad</name>
|
|
13
|
+
<location>San Francisco, CA</location>
|
|
14
|
+
<num_members>12</num_members>
|
|
15
|
+
</alpha>
|
|
16
|
+
<beta>
|
|
17
|
+
<name>Beta Squad</name>
|
|
18
|
+
<location>New York, NY</location>
|
|
19
|
+
<num_members>10</num_members>
|
|
20
|
+
</beta>
|
|
21
|
+
</teams>
|
|
22
|
+
</xml_config>
|
|
File without changes
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
|
2
|
+
|
|
3
|
+
describe RConfig do
|
|
4
|
+
before :each do
|
|
5
|
+
RConfig.load_paths = ['spec/config']
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
context 'load paths' do
|
|
9
|
+
it 'should have a valid load path' do
|
|
10
|
+
RConfig.load_paths.should_not be_blank
|
|
11
|
+
RConfig.load_paths.all?{|path| File.exists?(path) }.should be_true
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
it 'should allow multiple load paths' do
|
|
15
|
+
lambda { RConfig.add_load_path('spec/config2') }.should_not raise_error
|
|
16
|
+
RConfig.load_paths.size.should == 2
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
it 'should not allow duplicate load paths' do
|
|
20
|
+
RConfig.add_load_path('spec/config')
|
|
21
|
+
RConfig.load_paths.size.should == 1
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
it 'should not allow nil paths' do
|
|
25
|
+
lambda { RConfig.add_load_path(nil) }.should raise_error(ArgumentError)
|
|
26
|
+
end
|
|
27
|
+
|
|
28
|
+
it 'should not allow blank paths' do
|
|
29
|
+
lambda { RConfig.add_load_path('') }.should raise_error(ArgumentError)
|
|
30
|
+
end
|
|
31
|
+
|
|
32
|
+
it 'shoud not allow paths that do not exist' do
|
|
33
|
+
lambda { RConfig.add_load_path('/bad/path') }.should raise_error(RConfig::InvalidLoadPathError)
|
|
34
|
+
end
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
end
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
require File.expand_path(File.dirname(__FILE__) + '/../spec_helper')
|
|
2
|
+
|
|
3
|
+
describe RConfig do
|
|
4
|
+
before :each do
|
|
5
|
+
RConfig.load_paths = ['spec/config']
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
context 'reload' do
|
|
9
|
+
it 'should reload when path is added' do
|
|
10
|
+
RConfig.should_receive(:reload).with(true).and_return(true)
|
|
11
|
+
RConfig.add_load_path('spec')
|
|
12
|
+
end
|
|
13
|
+
|
|
14
|
+
it 'should reload if reload enabled' do
|
|
15
|
+
RConfig.enable_reload = true
|
|
16
|
+
RConfig.reload.should be_true
|
|
17
|
+
end
|
|
18
|
+
|
|
19
|
+
it 'should not reload if reload disabled' do
|
|
20
|
+
RConfig.enable_reload = false
|
|
21
|
+
RConfig.reload.should be_false
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
it 'should reload if forced' do
|
|
25
|
+
RConfig.enable_reload = false
|
|
26
|
+
RConfig.reload(true).should be_true
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
it 'should flush cache on reload' do
|
|
30
|
+
RConfig.should_receive(:flush_cache)
|
|
31
|
+
RConfig.reload(true)
|
|
32
|
+
RConfig.cache.should == {}
|
|
33
|
+
end
|
|
34
|
+
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
end
|
data/spec/rconfig_spec.rb
CHANGED
|
@@ -1,7 +1,65 @@
|
|
|
1
1
|
require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
|
|
2
2
|
|
|
3
|
-
describe
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
describe RConfig do
|
|
4
|
+
before :each do
|
|
5
|
+
RConfig.load_paths = ['spec/config']
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
context 'reading config' do
|
|
9
|
+
it 'should read config for the specified file' do
|
|
10
|
+
RConfig.spec.should == CONFIG
|
|
11
|
+
end
|
|
12
|
+
|
|
13
|
+
it 'should read xml files' do
|
|
14
|
+
RConfig.xml_config.should == CONFIG2
|
|
15
|
+
end
|
|
16
|
+
|
|
17
|
+
it 'should read property files' do
|
|
18
|
+
RConfig.props_config.should == CONFIG2
|
|
19
|
+
end
|
|
20
|
+
|
|
21
|
+
it 'accept string keys' do
|
|
22
|
+
RConfig.spec['admin'].should == CONFIG['admin']
|
|
23
|
+
end
|
|
24
|
+
|
|
25
|
+
it 'should accept symbol keys' do
|
|
26
|
+
RConfig.spec[:admin].should == CONFIG['admin']
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
it 'should accept keys by method invocation' do
|
|
30
|
+
RConfig.spec.admin.should == CONFIG['admin']
|
|
31
|
+
end
|
|
32
|
+
|
|
33
|
+
it 'should return empty config for bad file names' do
|
|
34
|
+
RConfig.bad.should be_blank
|
|
35
|
+
end
|
|
36
|
+
|
|
37
|
+
it 'should return nil for bad properties' do
|
|
38
|
+
RConfig.spec.bad.should be_nil
|
|
39
|
+
end
|
|
40
|
+
|
|
41
|
+
it 'should parse erb contents' do
|
|
42
|
+
RConfig.erb_contents.admin.name.should == ENV['USER']
|
|
43
|
+
RConfig.erb_contents.admin.home.should == ENV['HOME']
|
|
44
|
+
end
|
|
45
|
+
end
|
|
46
|
+
|
|
47
|
+
context 'parsing files' do
|
|
48
|
+
it 'should raise error for bad file types' do
|
|
49
|
+
contents = %Q{{"admin"=>{"name"=>"/Users/rahmal", "home"=>"rahmal"}}}
|
|
50
|
+
lambda { RConfig.parse(contents, 'some_file', :bad) }.should raise_error(RConfig::ConfigError)
|
|
51
|
+
end
|
|
52
|
+
|
|
53
|
+
it 'should parse properties files with PropertiesFile parser' do
|
|
54
|
+
contents = %Q{{"admin"=>{"name"=>"/Users/rahmal", "home"=>"rahmal"}}}
|
|
55
|
+
RConfig::PropertiesFile.should_receive(:parse).with(contents)
|
|
56
|
+
RConfig.parse(contents, 'props_file', :conf)
|
|
57
|
+
end
|
|
58
|
+
|
|
59
|
+
it 'should parse xml files with activesupport hash' do
|
|
60
|
+
contents = "<admin><name>/Users/rahmal</name><home>rahmal</home></admin>"
|
|
61
|
+
Hash.should_receive(:from_xml).with(contents)
|
|
62
|
+
RConfig.parse(contents, 'xml_file', :xml)
|
|
63
|
+
end
|
|
6
64
|
end
|
|
7
65
|
end
|
data/spec/spec_helper.rb
CHANGED
|
@@ -1,16 +1,20 @@
|
|
|
1
1
|
ROOT_DIR = File.expand_path(File.dirname(__FILE__))
|
|
2
|
-
CONF_DIR = File.join(ROOT_DIR, '
|
|
3
|
-
|
|
4
|
-
STDOUT.puts "ROOT_DIR: #{ROOT_DIR}"
|
|
5
|
-
STDOUT.puts "CONF_DIR: #{CONF_DIR}"
|
|
2
|
+
CONF_DIR = File.join(ROOT_DIR, 'config')
|
|
6
3
|
|
|
7
4
|
# Loads the rconfig library
|
|
8
5
|
$LOAD_PATH << File.join(ROOT_DIR, '..', 'lib')
|
|
9
6
|
|
|
7
|
+
require 'yaml'
|
|
8
|
+
require 'active_support'
|
|
9
|
+
require 'active_support/hash_with_indifferent_access'
|
|
10
|
+
require 'active_support/core_ext/hash/conversions'
|
|
10
11
|
require 'rconfig'
|
|
11
12
|
|
|
12
|
-
RConfig.
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
RConfig.setup do |config|
|
|
14
|
+
config.load_paths = ['spec/config']
|
|
15
|
+
config.file_types = [:yml, :xml, :conf]
|
|
16
|
+
config.logger = RConfig::DisabledLogger.new
|
|
17
|
+
end
|
|
16
18
|
|
|
19
|
+
CONFIG = YAML.load_file(CONF_DIR + '/spec.yml')
|
|
20
|
+
CONFIG2 = Hash.from_xml(File.read(CONF_DIR + '/xml_config.xml'))['xml_config']
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: rconfig
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.4.
|
|
4
|
+
version: 0.4.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,11 +9,11 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-05-
|
|
12
|
+
date: 2012-05-07 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
|
14
14
|
- !ruby/object:Gem::Dependency
|
|
15
15
|
name: activesupport
|
|
16
|
-
requirement: &
|
|
16
|
+
requirement: &70353384810220 !ruby/object:Gem::Requirement
|
|
17
17
|
none: false
|
|
18
18
|
requirements:
|
|
19
19
|
- - ~>
|
|
@@ -21,10 +21,10 @@ dependencies:
|
|
|
21
21
|
version: '3.0'
|
|
22
22
|
type: :runtime
|
|
23
23
|
prerelease: false
|
|
24
|
-
version_requirements: *
|
|
24
|
+
version_requirements: *70353384810220
|
|
25
25
|
- !ruby/object:Gem::Dependency
|
|
26
26
|
name: rspec
|
|
27
|
-
requirement: &
|
|
27
|
+
requirement: &70353384803680 !ruby/object:Gem::Requirement
|
|
28
28
|
none: false
|
|
29
29
|
requirements:
|
|
30
30
|
- - ~>
|
|
@@ -32,10 +32,10 @@ dependencies:
|
|
|
32
32
|
version: 2.3.0
|
|
33
33
|
type: :development
|
|
34
34
|
prerelease: false
|
|
35
|
-
version_requirements: *
|
|
35
|
+
version_requirements: *70353384803680
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: bundler
|
|
38
|
-
requirement: &
|
|
38
|
+
requirement: &70353384799540 !ruby/object:Gem::Requirement
|
|
39
39
|
none: false
|
|
40
40
|
requirements:
|
|
41
41
|
- - ~>
|
|
@@ -43,10 +43,10 @@ dependencies:
|
|
|
43
43
|
version: 1.0.0
|
|
44
44
|
type: :development
|
|
45
45
|
prerelease: false
|
|
46
|
-
version_requirements: *
|
|
46
|
+
version_requirements: *70353384799540
|
|
47
47
|
- !ruby/object:Gem::Dependency
|
|
48
48
|
name: jeweler
|
|
49
|
-
requirement: &
|
|
49
|
+
requirement: &70353384798380 !ruby/object:Gem::Requirement
|
|
50
50
|
none: false
|
|
51
51
|
requirements:
|
|
52
52
|
- - ~>
|
|
@@ -54,7 +54,18 @@ dependencies:
|
|
|
54
54
|
version: 1.6.4
|
|
55
55
|
type: :development
|
|
56
56
|
prerelease: false
|
|
57
|
-
version_requirements: *
|
|
57
|
+
version_requirements: *70353384798380
|
|
58
|
+
- !ruby/object:Gem::Dependency
|
|
59
|
+
name: i18n
|
|
60
|
+
requirement: &70353384798000 !ruby/object:Gem::Requirement
|
|
61
|
+
none: false
|
|
62
|
+
requirements:
|
|
63
|
+
- - ! '>='
|
|
64
|
+
- !ruby/object:Gem::Version
|
|
65
|
+
version: '0'
|
|
66
|
+
type: :development
|
|
67
|
+
prerelease: false
|
|
68
|
+
version_requirements: *70353384798000
|
|
58
69
|
description: Configuration management library for Ruby applications.
|
|
59
70
|
email:
|
|
60
71
|
- rahmal@gmail.com
|
|
@@ -77,32 +88,51 @@ files:
|
|
|
77
88
|
- demo/demo.rb
|
|
78
89
|
- demo/demo.xml
|
|
79
90
|
- demo/demo.yml
|
|
80
|
-
- doc/
|
|
81
|
-
- doc/
|
|
82
|
-
- doc/
|
|
83
|
-
- doc/
|
|
84
|
-
- doc/
|
|
85
|
-
- doc/
|
|
86
|
-
- doc/
|
|
87
|
-
- doc/
|
|
88
|
-
- doc/
|
|
91
|
+
- doc/Array.html
|
|
92
|
+
- doc/Hash.html
|
|
93
|
+
- doc/NilClass.html
|
|
94
|
+
- doc/RConfig.html
|
|
95
|
+
- doc/RConfig/Callbacks.html
|
|
96
|
+
- doc/RConfig/Cascade.html
|
|
97
|
+
- doc/RConfig/Config.html
|
|
98
|
+
- doc/RConfig/ConfigError.html
|
|
99
|
+
- doc/RConfig/Constants.html
|
|
100
|
+
- doc/RConfig/CoreMethods.html
|
|
101
|
+
- doc/RConfig/DisabledLogger.html
|
|
102
|
+
- doc/RConfig/Exceptions.html
|
|
103
|
+
- doc/RConfig/Generators.html
|
|
104
|
+
- doc/RConfig/Generators/InstallGenerator.html
|
|
105
|
+
- doc/RConfig/InvalidLoadPathError.html
|
|
106
|
+
- doc/RConfig/LoadPaths.html
|
|
107
|
+
- doc/RConfig/Logger.html
|
|
108
|
+
- doc/RConfig/PropertiesFile.html
|
|
109
|
+
- doc/RConfig/Reload.html
|
|
110
|
+
- doc/RConfig/Settings.html
|
|
111
|
+
- doc/RConfig/Utils.html
|
|
112
|
+
- doc/README_rdoc.html
|
|
113
|
+
- doc/String.html
|
|
89
114
|
- doc/created.rid
|
|
90
|
-
- doc/files/README_rdoc.html
|
|
91
|
-
- doc/files/lib/rconfig/class_variables_rb.html
|
|
92
|
-
- doc/files/lib/rconfig/config_hash_rb.html
|
|
93
|
-
- doc/files/lib/rconfig/constants_rb.html
|
|
94
|
-
- doc/files/lib/rconfig/core_ext/hash_rb.html
|
|
95
|
-
- doc/files/lib/rconfig/core_ext/object_rb.html
|
|
96
|
-
- doc/files/lib/rconfig/core_ext_rb.html
|
|
97
|
-
- doc/files/lib/rconfig/exceptions_rb.html
|
|
98
|
-
- doc/files/lib/rconfig/properties_file_parser_rb.html
|
|
99
|
-
- doc/files/lib/rconfig/rconfig_rb.html
|
|
100
|
-
- doc/files/lib/rconfig_rb.html
|
|
101
|
-
- doc/fr_class_index.html
|
|
102
|
-
- doc/fr_file_index.html
|
|
103
|
-
- doc/fr_method_index.html
|
|
104
115
|
- doc/index.html
|
|
105
|
-
- doc/
|
|
116
|
+
- doc/lib/generators/rconfig/install_generator_rb.html
|
|
117
|
+
- doc/lib/generators/rconfig/templates/rconfig_rb.html
|
|
118
|
+
- doc/lib/rconfig/callbacks_rb.html
|
|
119
|
+
- doc/lib/rconfig/cascade_rb.html
|
|
120
|
+
- doc/lib/rconfig/config_rb.html
|
|
121
|
+
- doc/lib/rconfig/constants_rb.html
|
|
122
|
+
- doc/lib/rconfig/core_ext/array_rb.html
|
|
123
|
+
- doc/lib/rconfig/core_ext/hash_rb.html
|
|
124
|
+
- doc/lib/rconfig/core_ext/nil_rb.html
|
|
125
|
+
- doc/lib/rconfig/core_ext/string_rb.html
|
|
126
|
+
- doc/lib/rconfig/core_methods_rb.html
|
|
127
|
+
- doc/lib/rconfig/exceptions_rb.html
|
|
128
|
+
- doc/lib/rconfig/load_paths_rb.html
|
|
129
|
+
- doc/lib/rconfig/logger_rb.html
|
|
130
|
+
- doc/lib/rconfig/properties_file_rb.html
|
|
131
|
+
- doc/lib/rconfig/reload_rb.html
|
|
132
|
+
- doc/lib/rconfig/settings_rb.html
|
|
133
|
+
- doc/lib/rconfig/utils_rb.html
|
|
134
|
+
- doc/lib/rconfig_rb.html
|
|
135
|
+
- doc/rdoc.css
|
|
106
136
|
- lib/generators/rconfig/install_generator.rb
|
|
107
137
|
- lib/generators/rconfig/templates/rconfig.rb
|
|
108
138
|
- lib/rconfig.rb
|
|
@@ -122,15 +152,19 @@ files:
|
|
|
122
152
|
- lib/rconfig/reload.rb
|
|
123
153
|
- lib/rconfig/settings.rb
|
|
124
154
|
- lib/rconfig/utils.rb
|
|
125
|
-
- lib/tasks/gem.rake
|
|
126
155
|
- lib/tasks/rdoc.rake
|
|
127
|
-
- lib/tasks/spec.rake
|
|
128
156
|
- rconfig.gemspec
|
|
129
|
-
- spec/
|
|
157
|
+
- spec/config/erb_contents.yml
|
|
158
|
+
- spec/config/props_config.conf
|
|
159
|
+
- spec/config/spec.yml
|
|
160
|
+
- spec/config/xml_config.xml
|
|
161
|
+
- spec/config2/.gitkeep
|
|
162
|
+
- spec/rconfig/load_paths_spec.rb
|
|
163
|
+
- spec/rconfig/reload_spec.rb
|
|
130
164
|
- spec/rconfig_spec.rb
|
|
131
165
|
- spec/spec.opts
|
|
132
166
|
- spec/spec_helper.rb
|
|
133
|
-
homepage: http://
|
|
167
|
+
homepage: http://rahmal.github.com/rconfig
|
|
134
168
|
licenses:
|
|
135
169
|
- MIT
|
|
136
170
|
post_install_message:
|
|
@@ -143,6 +177,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
143
177
|
- - ! '>='
|
|
144
178
|
- !ruby/object:Gem::Version
|
|
145
179
|
version: '0'
|
|
180
|
+
segments:
|
|
181
|
+
- 0
|
|
182
|
+
hash: -1353132617575235595
|
|
146
183
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
147
184
|
none: false
|
|
148
185
|
requirements:
|
|
@@ -162,8 +199,13 @@ summary: The complete solution for Ruby Configuration Management. RConfig is a R
|
|
|
162
199
|
your configuration style of choice, while providing many new features, and an elegant
|
|
163
200
|
API.
|
|
164
201
|
test_files:
|
|
165
|
-
- spec/
|
|
202
|
+
- spec/config/erb_contents.yml
|
|
203
|
+
- spec/config/props_config.conf
|
|
204
|
+
- spec/config/spec.yml
|
|
205
|
+
- spec/config/xml_config.xml
|
|
206
|
+
- spec/config2/.gitkeep
|
|
207
|
+
- spec/rconfig/load_paths_spec.rb
|
|
208
|
+
- spec/rconfig/reload_spec.rb
|
|
166
209
|
- spec/rconfig_spec.rb
|
|
167
210
|
- spec/spec.opts
|
|
168
211
|
- spec/spec_helper.rb
|
|
169
|
-
has_rdoc:
|