brendan-simpleconfig 0.0.5 → 0.0.6

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.
@@ -4,7 +4,6 @@ lib/simpleconfig.rb
4
4
  Manifest.txt
5
5
  Rakefile
6
6
  README.txt
7
- simpleconfig-0.0.5.gem
8
7
  simpleconfig.gemspec
9
8
  spec
10
9
  spec/fixtures
@@ -3,7 +3,7 @@ require 'yaml'
3
3
 
4
4
  class SimpleConfig < Hash
5
5
 
6
- VERSION='0.0.5'
6
+ VERSION='0.0.6'
7
7
  AUTHORS=["Brendan Baldwin"]
8
8
  EMAIL=["brendan@usergenic.com"]
9
9
  DESCRIPTION=%q{This is a really simple system for getting configuration data into your app. See the wiki at http://github.com/brendan/simpleconfig/wikis for usage.}
@@ -61,7 +61,7 @@ class SimpleConfig < Hash
61
61
 
62
62
  def methodize_keys_and_freeze
63
63
  keys.each do |key|
64
- value = send(key)
64
+ value = send(key) unless (method key rescue nil)
65
65
  value.methodize_keys_and_freeze if value.is_a?(Hash)
66
66
  end
67
67
  freeze
@@ -92,6 +92,7 @@ class SimpleConfig < Hash
92
92
  end
93
93
 
94
94
  def method_missing(method_id, *arguments, &block)
95
+ return super if method(method_id) rescue nil
95
96
  if defined?(@folders)
96
97
  data = load_and_merge(@folders.reverse.map {|f| File.join(f,"#{method_id}.yml")})
97
98
  self[method_id] = data unless data == nil
@@ -1,12 +1,12 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{simpleconfig}
3
- s.version = "0.0.5"
3
+ s.version = "0.0.6"
4
4
 
5
5
  s.specification_version = 2 if s.respond_to? :specification_version=
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Brendan Baldwin"]
9
- s.date = "2008-07-02"
9
+ s.date = "2008-07-07"
10
10
  s.default_executable = nil
11
11
  s.description = "This is a really simple system for getting configuration data into your app. See the wiki at http://github.com/brendan/simpleconfig/wikis for usage."
12
12
  s.email = ["brendan@usergenic.com"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brendan-simpleconfig
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Brendan Baldwin
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-07-02 00:00:00 -07:00
12
+ date: 2008-07-07 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15