Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

Already on GitHub? Sign in to your account

Fix yaml adapter on a touched yaml file #14

Closed
wants to merge 7 commits into
from

Conversation

Projects
None yet
3 participants

duritong commented Aug 1, 2011

YAML.load_file returns false on an empty file. So we initialize
the loaded yaml with an empty hash, as on a non existing file.

This is mainly a problem if you are setting up your cache to have correct file permissions etc. and hence touch it before using it for the first time.

duritong and others added some commits Aug 1, 2011

@duritong duritong Fix using yaml adapter with an empty file
YAML.load_file returns `false` on an empty file. So we initialize
the loaded yaml with an empty hash, as on a non existing file.
ab14254
@duritong duritong fix default nil value
fetch will try to execute `default` if the default is nil, but this
should be `value`. Also we need to address that nil is not false.
6ab39f0
@duritong duritong release my very own version 8e74134
@duritong duritong Merge branch 'fix_default' 38125d0
@duritong duritong also increase the version in the Rakefile 73042a1
@icy icy fix monelta.gemspec 01b2cbd
@duritong duritong Merge pull request #1 from icyfork/master
Fix file list in .gemspec
9c29390
Contributor

minad commented Dec 20, 2012

The yaml adapter uses the YAML::Store now

@minad minad closed this Dec 20, 2012

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment