add osx.gitignore, check block when use yield