configatron 2.6.4 → 2.7.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 +5 -1
  2. metadata +5 -15
@@ -290,7 +290,11 @@ class Configatron
290
290
  if options.is_a?(Hash)
291
291
  options.each do |k,v|
292
292
  if v.is_a?(Hash)
293
- self.method_missing(k.to_sym).configure_from_hash(v)
293
+ if v.keys.length == 1 && v.keys.first.is_a?(Syck::MergeKey)
294
+ self.method_missing("#{k.to_sym}=", v.values.first.flatten)
295
+ else
296
+ self.method_missing(k.to_sym).configure_from_hash(v)
297
+ end
294
298
  else
295
299
  self.method_missing("#{k.to_sym}=", v)
296
300
  end
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: configatron
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 2
7
- - 6
8
- - 4
9
- version: 2.6.4
4
+ prerelease:
5
+ version: 2.7.0
10
6
  platform: ruby
11
7
  authors:
12
8
  - markbates
@@ -14,7 +10,7 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2010-10-06 00:00:00 -04:00
13
+ date: 2011-03-14 00:00:00 -04:00
18
14
  default_executable:
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
@@ -24,10 +20,6 @@ dependencies:
24
20
  requirements:
25
21
  - - ">="
26
22
  - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- - 1
30
- - 0
31
23
  version: 0.1.0
32
24
  type: :runtime
33
25
  prerelease: false
@@ -75,7 +67,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
75
67
  requirements:
76
68
  - - ">="
77
69
  - !ruby/object:Gem::Version
78
- hash: 2451426684498140347
70
+ hash: 3545048709290632762
79
71
  segments:
80
72
  - 0
81
73
  version: "0"
@@ -84,13 +76,11 @@ required_rubygems_version: !ruby/object:Gem::Requirement
84
76
  requirements:
85
77
  - - ">="
86
78
  - !ruby/object:Gem::Version
87
- segments:
88
- - 0
89
79
  version: "0"
90
80
  requirements: []
91
81
 
92
82
  rubyforge_project: magrathea
93
- rubygems_version: 1.3.7
83
+ rubygems_version: 1.5.3
94
84
  signing_key:
95
85
  specification_version: 3
96
86
  summary: A powerful Ruby configuration system.