crayfishx/hiera-gpg — pull request #4 by jkinred (2012-08-18 01:11:21+00:00)
Title: Make hiera-gpg compatible with Hiera 1.0.0

Trying to use HEAD with the latest hiera releases results in:
```
$ hiera -c /etc/puppet/hiera.yaml p_storeconfigs_dbpassword
/usr/lib/ruby/site_ruby/1.8/hiera/backend/gpg_backend.rb:22:in `lookup': undefined method `empty_answer' for Hiera::Backend:Module (NoMethodError)
from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:159:in `lookup'
from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:156:in `each'
from /usr/lib/ruby/site_ruby/1.8/hiera/backend.rb:156:in `lookup'
from /usr/lib/ruby/site_ruby/1.8/hiera.rb:66:in `lookup'
from /usr/bin/hiera:212
```

Specifically, empty_answer was removed from backend.rb in this merge:
https://github.com/puppetlabs/hiera/commit/f4411514847a13621c142b902cea2d8ed7197391

This pull request implements the modification which was made to yaml_backend.rb in that same merge (with some extra exception handling also present in that file).