{"action":"created","issue":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5498","repository_url":"https://api.github.com/repos/CocoaPods/CocoaPods","labels_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5498/labels{/name}","comments_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5498/comments","events_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5498/events","html_url":"https://github.com/CocoaPods/CocoaPods/issues/5498","id":159456697,"number":5498,"title":"trouble with pod-template.git when git user name has an apostrophe","user":{"login":"koconnor","id":69875,"avatar_url":"https://avatars.githubusercontent.com/u/69875?v=3","gravatar_id":"","url":"https://api.github.com/users/koconnor","html_url":"https://github.com/koconnor","followers_url":"https://api.github.com/users/koconnor/followers","following_url":"https://api.github.com/users/koconnor/following{/other_user}","gists_url":"https://api.github.com/users/koconnor/gists{/gist_id}","starred_url":"https://api.github.com/users/koconnor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koconnor/subscriptions","organizations_url":"https://api.github.com/users/koconnor/orgs","repos_url":"https://api.github.com/users/koconnor/repos","events_url":"https://api.github.com/users/koconnor/events{/privacy}","received_events_url":"https://api.github.com/users/koconnor/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":4,"created_at":"2016-06-09T16:50:43Z","updated_at":"2016-06-09T18:58:09Z","closed_at":null,"body":"* [x ] I've read and understood the [*CONTRIBUTING guidelines and have done my best effort to follow](https://github.com/CocoaPods/CocoaPods/blob/master/CONTRIBUTING.md).\r\n\r\n# Report\r\n\r\n## What did you do?\r\n\r\nRan `pod lib create testLib`\r\n\r\n## What did you expect to happen?\r\n\r\nCreate bootstrap pod for a library\r\n\r\n## What happened instead?\r\n\r\nThe pod install command failed because the git user name has an apostrophe, which broke the parsing of the configured pod spec. \r\n\r\n~/.gitconfig is \r\n```\r\n[user]\r\n\tname = Kevin O'Connor\r\n\temail = KOConnor@null.org\r\n[push]\r\n\tdefault = current\r\n[core]\r\n\texcludesfile = /Users/koconno1/.gitignore_global\r\n[difftool \"sourcetree\"]\r\n\tcmd = opendiff \\\"$LOCAL\\\" \\\"$REMOTE\\\"\r\n\tpath = \r\n[mergetool \"sourcetree\"]\r\n\tcmd = /Applications/SourceTree.app/Contents/Resources/opendiff-w.sh \\\"$LOCAL\\\" \\\"$REMOTE\\\" -ancestor \\\"$BASE\\\" -merge \\\"$MERGED\\\"\r\n\ttrustExitCode = true\r\n[merge]\r\n\trenamelimit = 30000\r\n[color]\r\n\tui = true\r\n[commit]\r\n\ttemplate = /Users/koconno1/.stCommitMsg\r\n[filter \"lfs\"]\r\n\tsmudge = git-lfs smudge %f\r\n\trequired = true\r\n\tclean = git-lfs clean %f\r\n```\r\nThe `configure` script that is run resulted in the following on line 27 of `testLib.podspec`:\r\n```\r\n  s.author           = { 'Kevin O'Connor' => 'KOConnor@null.org' }\r\n```\r\n\r\nA possible solution is to adjust the `NAME.podspec` template file to have the following at line 27.\r\n```\r\n   s.author           = { \"${USER_NAME}\" => '${USER_EMAIL}' }\r\n```\r\nrather than\r\n```\r\n   s.author           = { '${USER_NAME}' => '${USER_EMAIL}' }\r\n```\r\nThere may be other ways to solve it with appropriate quoting of the `user_name`.\r\n\r\n## CocoaPods Environment\r\n\r\n### Stack\r\n\r\n```\r\n   CocoaPods : 1.0.1\r\n        Ruby : ruby 2.3.0p0 (2015-12-25 revision 53290) [x86_64-darwin15]\r\n    RubyGems : 2.5.1\r\n        Host : Mac OS X 10.11.5 (15F34)\r\n       Xcode : 7.3.1 (7D1014)\r\n         Git : git version 2.7.4 (Apple Git-66)\r\nRuby lib dir : /Users/koconno1/.rvm/rubies/ruby-2.3.0/lib\r\nRepositories : master - https://github.com/CocoaPods/Specs.git @ 0d75319cbcddb5044e9c0658f35c84d8080a1a15\r\n```\r\n\r\n### Installation Source\r\n\r\n```\r\nExecutable Path: /Users/koconno1/.rvm/gems/ruby-2.3.0/bin/pod\r\n```\r\n\r\n### Plugins\r\n\r\n```\r\ncocoapods-deintegrate  : 1.0.0\r\ncocoapods-dependencies : 1.0.0.beta.1\r\ncocoapods-plugins      : 1.0.0\r\ncocoapods-search       : 1.0.0\r\ncocoapods-stats        : 1.0.0\r\ncocoapods-trunk        : 1.0.0\r\ncocoapods-try          : 1.0.0\r\ncocoapods_debug        : 0.1.0\r\n```\r\n\r\n"},"comment":{"url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/comments/224992907","html_url":"https://github.com/CocoaPods/CocoaPods/issues/5498#issuecomment-224992907","issue_url":"https://api.github.com/repos/CocoaPods/CocoaPods/issues/5498","id":224992907,"user":{"login":"koconnor","id":69875,"avatar_url":"https://avatars.githubusercontent.com/u/69875?v=3","gravatar_id":"","url":"https://api.github.com/users/koconnor","html_url":"https://github.com/koconnor","followers_url":"https://api.github.com/users/koconnor/followers","following_url":"https://api.github.com/users/koconnor/following{/other_user}","gists_url":"https://api.github.com/users/koconnor/gists{/gist_id}","starred_url":"https://api.github.com/users/koconnor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/koconnor/subscriptions","organizations_url":"https://api.github.com/users/koconnor/orgs","repos_url":"https://api.github.com/users/koconnor/repos","events_url":"https://api.github.com/users/koconnor/events{/privacy}","received_events_url":"https://api.github.com/users/koconnor/received_events","type":"User","site_admin":false},"created_at":"2016-06-09T18:58:09Z","updated_at":"2016-06-09T18:58:09Z","body":"ah, I see, just have the `${USER_NAME}` without any quotes, single or double, in the template.  Yes.\r\n\r\nI guess i can do this by hand in the meantime, is this something that would go in the queue soon?"}}
{"actor":{"display_login":"koconnor"}}