undefined method `each_pair' for [{"test"=>"test"}]:Array
Closed this issue · 0 comments
Not sure what's up. Try this:
(occurs in ruby 1.9.3, jruby 1.7.3)
(gem install configliere)
require "configliere"
Settings.read('/anywhere/defaults.config.yml')
yaml file: (I don't understand github's syntax. The dot is a dash. The line looks fine in yaml parsers.)
- test: "test"
Generates:
NoMethodError: undefined method `each_pair' for [{"test"=>"test"}]:Array
update at /usr/local/jruby-1.7.3/lib/ruby/gems/shared/gems/configliere-0.4.18/lib/configliere/deep_hash.rb:83
deep_merge! at /usr/local/jruby-1.7.3/lib/ruby/gems/shared/gems/configliere-0.4.18/lib/configliere/deep_hash.rb:288
read_yaml at /usr/local/jruby-1.7.3/lib/ruby/gems/shared/gems/configliere-0.4.18/lib/configliere/config_file.rb:57
read at /usr/local/jruby-1.7.3/lib/ruby/gems/shared/gems/configliere-0.4.18/lib/configliere/config_file.rb:42
(root) at blahblah