confuse 0.1.0 → 0.1.1
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/confuse.gemspec +2 -2
- data/example/003_config_subclass_instance.ini +2 -0
- data/example/003_config_subclass_instance_example.rb +3 -3
- data/lib/confuse/config.rb +2 -1
- data/lib/confuse/version.rb +1 -1
- metadata +7 -7
- data/TODO +0 -4
data/confuse.gemspec
CHANGED
@@ -9,8 +9,8 @@ Gem::Specification.new do |spec|
|
|
9
9
|
spec.authors = ['Tom Chipchase']
|
10
10
|
spec.email = ['tom@mediasp.com']
|
11
11
|
spec.description = %q{Add nested configuration to an application}
|
12
|
-
spec.summary = %q{}
|
13
|
-
spec.homepage = ''
|
12
|
+
spec.summary = %q{A DSL for defining configuration options in classes}
|
13
|
+
spec.homepage = 'https://github.com/mediasp/confuse'
|
14
14
|
spec.license = 'MIT'
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($RS)
|
@@ -1,9 +1,9 @@
|
|
1
|
-
require '
|
1
|
+
require 'confuse'
|
2
2
|
|
3
|
-
class ExampleConfig <
|
3
|
+
class ExampleConfig < Confuse::ConfigBase
|
4
4
|
define :foo do
|
5
5
|
default 10
|
6
6
|
end
|
7
7
|
end
|
8
8
|
|
9
|
-
puts ExampleConfig.new.foo
|
9
|
+
puts ExampleConfig.new('example/003_config_subclass_instance.ini').foo
|
data/lib/confuse/config.rb
CHANGED
data/lib/confuse/version.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: confuse
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Tom Chipchase
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2013-10-
|
18
|
+
date: 2013-10-03 00:00:00 Z
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|
21
21
|
name: inifile
|
@@ -76,11 +76,11 @@ files:
|
|
76
76
|
- LICENSE.txt
|
77
77
|
- README.md
|
78
78
|
- Rakefile
|
79
|
-
- TODO
|
80
79
|
- confuse.gemspec
|
81
80
|
- example/001_simple_example.ini
|
82
81
|
- example/001_simple_example.rb
|
83
82
|
- example/002_namespace_example.rb
|
83
|
+
- example/003_config_subclass_instance.ini
|
84
84
|
- example/003_config_subclass_instance_example.rb
|
85
85
|
- example/004_configured_by.rb
|
86
86
|
- lib/confuse.rb
|
@@ -93,7 +93,7 @@ files:
|
|
93
93
|
- lib/confuse/version.rb
|
94
94
|
- test/test_config.rb
|
95
95
|
- test/test_namespace.rb
|
96
|
-
homepage:
|
96
|
+
homepage: https://github.com/mediasp/confuse
|
97
97
|
licenses:
|
98
98
|
- MIT
|
99
99
|
post_install_message:
|
@@ -125,7 +125,7 @@ rubyforge_project:
|
|
125
125
|
rubygems_version: 1.8.25
|
126
126
|
signing_key:
|
127
127
|
specification_version: 3
|
128
|
-
summary:
|
128
|
+
summary: A DSL for defining configuration options in classes
|
129
129
|
test_files:
|
130
130
|
- test/test_config.rb
|
131
131
|
- test/test_namespace.rb
|