configatron 2.7.0 → 2.7.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.
Files changed (2) hide show
  1. data/lib/configatron/store.rb +2 -1
  2. metadata +3 -3
@@ -290,7 +290,7 @@ class Configatron
290
290
  if options.is_a?(Hash)
291
291
  options.each do |k,v|
292
292
  if v.is_a?(Hash)
293
- if v.keys.length == 1 && v.keys.first.is_a?(Syck::MergeKey)
293
+ if v.keys.length == 1 && v.keys.first.is_a?(SYCK_CONSTANT)
294
294
  self.method_missing("#{k.to_sym}=", v.values.first.flatten)
295
295
  else
296
296
  self.method_missing(k.to_sym).configure_from_hash(v)
@@ -309,6 +309,7 @@ class Configatron
309
309
  rescue Exception => e
310
310
  end
311
311
 
312
+ SYCK_CONSTANT = (RUBY_VERSION.match(/^1\.9/) ? Syck::MergeKey : YAML::Syck::MergeKey)
312
313
 
313
314
  end # Store
314
315
  end # Configatron
metadata CHANGED
@@ -2,7 +2,7 @@
2
2
  name: configatron
3
3
  version: !ruby/object:Gem::Version
4
4
  prerelease:
5
- version: 2.7.0
5
+ version: 2.7.1
6
6
  platform: ruby
7
7
  authors:
8
8
  - markbates
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2011-03-14 00:00:00 -04:00
13
+ date: 2011-03-22 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -67,7 +67,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
67
67
  requirements:
68
68
  - - ">="
69
69
  - !ruby/object:Gem::Version
70
- hash: 3545048709290632762
70
+ hash: -3097321133050375125
71
71
  segments:
72
72
  - 0
73
73
  version: "0"