Minor API Improvements

Those API improvements will be helpful in an upcoming version of CocoaPods. :wink:
This is not testing the return value but the that the given block is invoked for each build file.