confuse 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
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)
@@ -0,0 +1,2 @@
1
+ [default]
2
+ foo = 1
@@ -1,9 +1,9 @@
1
- require 'configuration'
1
+ require 'confuse'
2
2
 
3
- class ExampleConfig < Configuration::ConfigBase
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
@@ -12,9 +12,10 @@ module Confuse
12
12
  include ConfigMixin
13
13
  extend DSL
14
14
 
15
- def initialize
15
+ def initialize(*paths)
16
16
  load_namespaces(self.class.namespaces)
17
17
  read_files(self.class.config_path)
18
+ read_files(paths)
18
19
  end
19
20
 
20
21
  def config
@@ -1,3 +1,3 @@
1
1
  module Confuse
2
- VERSION = '0.1.0'
2
+ VERSION = '0.1.1'
3
3
  end
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
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-02 00:00:00 Z
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
data/TODO DELETED
@@ -1,4 +0,0 @@
1
- * Make the :type attriute for a config item actually do something. (e.g.some
2
- basic type checking)
3
- * Write some more tests
4
- * Pick a good name that hasn't already been claimed on rubygems.