configatron 2.5.1 → 2.6.0

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.
Files changed (2) hide show
  1. data/lib/configatron/store.rb +6 -1
  2. metadata +20 -9
@@ -13,7 +13,12 @@ class Configatron
13
13
 
14
14
  # Returns a Hash representing the configurations
15
15
  def to_hash
16
- @_store
16
+ h = Hash.new
17
+ @_store.each { |k,v|
18
+ # Descend the tree and hashify each node
19
+ h[k] = v.is_a?(Store) ? v.to_hash : v
20
+ }
21
+ h
17
22
  end
18
23
 
19
24
  def heirarchy
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: configatron
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.5.1
4
+ prerelease: false
5
+ segments:
6
+ - 2
7
+ - 6
8
+ - 0
9
+ version: 2.6.0
5
10
  platform: ruby
6
11
  authors:
7
12
  - markbates
@@ -9,19 +14,23 @@ autorequire:
9
14
  bindir: bin
10
15
  cert_chain: []
11
16
 
12
- date: 2009-09-11 00:00:00 -04:00
17
+ date: 2010-03-09 00:00:00 -05:00
13
18
  default_executable:
14
19
  dependencies:
15
20
  - !ruby/object:Gem::Dependency
16
21
  name: yamler
17
- type: :runtime
18
- version_requirement:
19
- version_requirements: !ruby/object:Gem::Requirement
22
+ prerelease: false
23
+ requirement: &id001 !ruby/object:Gem::Requirement
20
24
  requirements:
21
25
  - - ">="
22
26
  - !ruby/object:Gem::Version
27
+ segments:
28
+ - 0
29
+ - 1
30
+ - 0
23
31
  version: 0.1.0
24
- version:
32
+ type: :runtime
33
+ version_requirements: *id001
25
34
  description: "configatron was developed by: markbates"
26
35
  email: mark@markbates.com
27
36
  executables: []
@@ -64,18 +73,20 @@ required_ruby_version: !ruby/object:Gem::Requirement
64
73
  requirements:
65
74
  - - ">="
66
75
  - !ruby/object:Gem::Version
76
+ segments:
77
+ - 0
67
78
  version: "0"
68
- version:
69
79
  required_rubygems_version: !ruby/object:Gem::Requirement
70
80
  requirements:
71
81
  - - ">="
72
82
  - !ruby/object:Gem::Version
83
+ segments:
84
+ - 0
73
85
  version: "0"
74
- version:
75
86
  requirements: []
76
87
 
77
88
  rubyforge_project: magrathea
78
- rubygems_version: 1.3.5
89
+ rubygems_version: 1.3.6
79
90
  signing_key:
80
91
  specification_version: 3
81
92
  summary: A powerful Ruby configuration system.