Add validation to check that a podspec's name doesn't contain whitespace

If we want to go ahead with CocoaPods/CocoaPods#1610 this will add the correct validation for it. The test probably could be a bit cleaner but I was fighting with it to avoid the name mismatch error too.