Add support to ruby 1.9 for gencredentials. props tonny xu

git-svn-id: http://ios.svn.wordpress.org/trunk@4084 7d847f7c-ffe1-4a24-85be-b788d016d96a