Refactor generation providing document_spec_with_name
Fixes a file descriptor leak when generating documentation

This also uses CocoaPod's API for reading from file
[doc] Correctly find the "latest" podspec #69