conf 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/conf.gemspec +3 -3
- data/lib/conf.rb +1 -1
- data/spec/conf_spec.rb +7 -0
- metadata +7 -3
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.5
|
data/conf.gemspec
CHANGED
@@ -5,7 +5,7 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{conf}
|
8
|
-
s.version = "0.0.
|
8
|
+
s.version = "0.0.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Jari Bakken"]
|
@@ -32,7 +32,7 @@ Gem::Specification.new do |s|
|
|
32
32
|
s.homepage = %q{http://github.com/jarib/conf}
|
33
33
|
s.rdoc_options = ["--charset=UTF-8"]
|
34
34
|
s.require_paths = ["lib"]
|
35
|
-
s.rubygems_version = %q{1.3.
|
35
|
+
s.rubygems_version = %q{1.3.7}
|
36
36
|
s.summary = %q{Simple configuraton library that supports inheritance.}
|
37
37
|
s.test_files = [
|
38
38
|
"spec/conf_spec.rb",
|
@@ -43,7 +43,7 @@ Gem::Specification.new do |s|
|
|
43
43
|
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
44
44
|
s.specification_version = 3
|
45
45
|
|
46
|
-
if Gem::Version.new(Gem::
|
46
|
+
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
47
47
|
s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
|
48
48
|
s.add_development_dependency(%q<yard>, [">= 0"])
|
49
49
|
else
|
data/lib/conf.rb
CHANGED
data/spec/conf_spec.rb
CHANGED
@@ -105,4 +105,11 @@ describe "Conf" do
|
|
105
105
|
foo.bla.baz 3
|
106
106
|
}.section("foo.bar").should == {"foo.bar.baz" => 1, "foo.bar.boo" => 2}
|
107
107
|
end
|
108
|
+
|
109
|
+
it "merges parent data when fetching section" do
|
110
|
+
parent = Conf.define(:parent) { foo.bar.baz 1 }
|
111
|
+
child = Conf.define(:child, parent) { foo.bar.bah 2; }
|
112
|
+
|
113
|
+
child.section("foo.bar").should == {"foo.bar.baz" => 1, "foo.bar.bah" => 2}
|
114
|
+
end
|
108
115
|
end
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 5
|
9
|
+
version: 0.0.5
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Jari Bakken
|
@@ -21,6 +21,7 @@ dependencies:
|
|
21
21
|
name: rspec
|
22
22
|
prerelease: false
|
23
23
|
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
+
none: false
|
24
25
|
requirements:
|
25
26
|
- - ">="
|
26
27
|
- !ruby/object:Gem::Version
|
@@ -35,6 +36,7 @@ dependencies:
|
|
35
36
|
name: yard
|
36
37
|
prerelease: false
|
37
38
|
requirement: &id002 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
38
40
|
requirements:
|
39
41
|
- - ">="
|
40
42
|
- !ruby/object:Gem::Version
|
@@ -74,6 +76,7 @@ rdoc_options:
|
|
74
76
|
require_paths:
|
75
77
|
- lib
|
76
78
|
required_ruby_version: !ruby/object:Gem::Requirement
|
79
|
+
none: false
|
77
80
|
requirements:
|
78
81
|
- - ">="
|
79
82
|
- !ruby/object:Gem::Version
|
@@ -81,6 +84,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
81
84
|
- 0
|
82
85
|
version: "0"
|
83
86
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
87
|
+
none: false
|
84
88
|
requirements:
|
85
89
|
- - ">="
|
86
90
|
- !ruby/object:Gem::Version
|
@@ -90,7 +94,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
90
94
|
requirements: []
|
91
95
|
|
92
96
|
rubyforge_project:
|
93
|
-
rubygems_version: 1.3.
|
97
|
+
rubygems_version: 1.3.7
|
94
98
|
signing_key:
|
95
99
|
specification_version: 3
|
96
100
|
summary: Simple configuraton library that supports inheritance.
|