ahoward/main — Issue #19: YAML not loaded on 1.9.2+
Author: lmarburger
Created: 2012-02-01 20:08:44+00:00
State: open

It looks like ruby 1.9.2 defines a YAML constant which causes [the `require 'yaml'` statement](https://github.com/ahoward/main/blob/master/lib/main/program/class_methods.rb#L303) to be avoided. I've worked around this for the time being by [explicitly requiring yaml](https://github.com/cloudapp/cli/blob/master/bin/cloudapp#L7-L9). Without it, the first error would be raised if `~/.app/config.yml` doesn't exist and the second if it does:

```
main-4.8.1/lib/main/program/class_methods.rb:311:in `config': undefined method `to_yaml' for {:email=>"arthur@dent.com", :password=>"towel"}:Hash (NoMethodError)
main-4.8.1/lib/main/program/class_methods.rb:305:in `config': private method `load' called for YAML:Module (NoMethodError)
```