{"issue":{"state":"open","pull_request":{"diff_url":null,"html_url":null,"patch_url":null},"milestone":null,"user":{"avatar_url":"https://secure.gravatar.com/avatar/de2d64478e715fb02266f77a3f5641f6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"de2d64478e715fb02266f77a3f5641f6","url":"https://api.github.com/users/floere","login":"floere","id":3022},"labels":[],"assignee":null,"updated_at":"2011-11-16T14:00:57Z","comments":5,"closed_at":null,"url":"https://api.github.com/repos/CocoaPods/Specs/issues/14","body":"To automatically check changed cocoa pods before committing, add this file:\r\n.git/hooks/pre-commit\r\nwith the following content:\r\n\r\n```bash\r\n#!/bin/sh\r\n\r\nfor FILE in `git diff-index --name-status HEAD -- | cut -c3- | grep '.podspec$'` ; do\r\n    # Check the pod spec\r\n    #\r\n    spec=\"pod spec lint $FILE\"\r\n    if [ \"$spec\" ]\r\n    then\r\n        echo $FILE 'fails pod spec lint. Cannot commit!'\r\n        echo `$spec`\r\n        exit 1\r\n    fi\r\ndone\r\nexit\r\n```\r\n\r\nand make it executable.\r\n\r\nWhenever you commit, it will check changed pod specs using `pod spec lint` and prevent you from committing if it fails.\r\n\r\nHave fun, cheers!\r\n\r\nP.S: If someone could remove the duplicated call to pod spec lint, I'd be grateful. Not the best basher out there.","html_url":"https://github.com/CocoaPods/Specs/issues/14","number":14,"title":"git pre-commit hook to automatically pod spec lint changed podspecs","id":2256107,"created_at":"2011-11-16T13:16:00Z"},"action":"created","comment":{"user":{"avatar_url":"https://secure.gravatar.com/avatar/de2d64478e715fb02266f77a3f5641f6?d=https://a248.e.akamai.net/assets.github.com%2Fimages%2Fgravatars%2Fgravatar-140.png","gravatar_id":"de2d64478e715fb02266f77a3f5641f6","url":"https://api.github.com/users/floere","login":"floere","id":3022},"updated_at":"2011-11-16T14:00:57Z","url":"https://api.github.com/repos/CocoaPods/Specs/issues/comments/2759650","body":"Changed, see the issue doc for the updated script. (Note: Please DRY :S)","id":2759650,"created_at":"2011-11-16T14:00:57Z"}}