{"action":"created","comment":{"url":"https://api.github.com/repos/vimeo/VimeoUpload/pulls/comments/56695691","id":56695691,"diff_hunk":"@@ -96,4 +112,16 @@ class VideoSettings: NSObject\n         aCoder.encodeObject(self.users, forKey: \"users\")\n         aCoder.encodeObject(self.password, forKey: \"password\")\n     }\n+    \n+    // MARK : String Methods\n+    \n+    func trim(text: String?) -> String?\n+    {\n+        if let constText = text\n+        {\n+            return constText.stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceCharacterSet())\n+        }\n+        \n+        return nil","path":"VimeoUpload/Upload/Model/VideoSettings.swift","position":51,"original_position":51,"commit_id":"90e99f3bf0340d62569370dc2d536d07484894b1","original_commit_id":"90e99f3bf0340d62569370dc2d536d07484894b1","user":{"login":"ghking","id":833390,"avatar_url":"https://avatars.githubusercontent.com/u/833390?v=3","gravatar_id":"","url":"https://api.github.com/users/ghking","html_url":"https://github.com/ghking","followers_url":"https://api.github.com/users/ghking/followers","following_url":"https://api.github.com/users/ghking/following{/other_user}","gists_url":"https://api.github.com/users/ghking/gists{/gist_id}","starred_url":"https://api.github.com/users/ghking/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ghking/subscriptions","organizations_url":"https://api.github.com/users/ghking/orgs","repos_url":"https://api.github.com/users/ghking/repos","events_url":"https://api.github.com/users/ghking/events{/privacy}","received_events_url":"https://api.github.com/users/ghking/received_events","type":"User","site_admin":false},"body":"This can just be:\r\n\r\n`return text?.stringByTrimmingCharactersInSet(NSCharacterSet.whitespaceCharacterSet())'\r\n\r\nAfter that we should be good to merge!","created_at":"2016-03-18T17:48:26Z","updated_at":"2016-03-18T17:48:26Z","html_url":"https://github.com/vimeo/VimeoUpload/pull/72#discussion_r56695691","pull_request_url":"https://api.github.com/repos/vimeo/VimeoUpload/pulls/72","_links":{"self":{"href":"https://api.github.com/repos/vimeo/VimeoUpload/pulls/comments/56695691"},"html":{"href":"https://github.com/vimeo/VimeoUpload/pull/72#discussion_r56695691"},"pull_request":{"href":"https://api.github.com/repos/vimeo/VimeoUpload/pulls/72"}}},"pull_request":{"url":"https://api.github.com/repos/vimeo/VimeoUpload/pulls/72","id":63387056,"html_url":"https://github.com/vimeo/VimeoUpload/pull/72","diff_url":"https://github.com/vimeo/VimeoUpload/pull/72.diff","patch_url":"https://github.com/vimeo/VimeoUpload/pull/72.patch","issue_url":"https://api.github.com/repos/vimeo/VimeoUpload/issues/72","number":72,"state":"open","locked":false,"title":"Adds class trim method to VideoSettings, uses it for title and desc","user":{"login":"cjlarsen","id":908625,"avatar_url":"https://avatars.githubusercontent.com/u/908625?v=3","gravatar_id":"","url":"https://api.github.com/users/cjlarsen","html_url":"https://github.com/cjlarsen","followers_url":"https://api.github.com/users/cjlarsen/followers","following_url":"https://api.github.com/users/cjlarsen/following{/other_user}","gists_url":"https://api.github.com/users/cjlarsen/gists{/gist_id}","starred_url":"https://api.github.com/users/cjlarsen/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cjlarsen/subscriptions","organizations_url":"https://api.github.com/users/cjlarsen/orgs","repos_url":"https://api.github.com/users/cjlarsen/repos","events_url":"https://api.github.com/users/cjlarsen/events{/privacy}","received_events_url":"https://api.github.com/users/cjlarsen/received_events","type":"User","site_admin":false},"body":"<b>Ticket</b>\r\nhttps://vimean.atlassian.net/browse/VIM-3848\r\n\r\n<b>Ticket Summary</b>\r\n\"Something strange occurred\" alert when you upload video with just spaces in title\r\n\r\n<b>Implementation Summary</b>\r\n\r\nTrim whitespace from title before starting upload\r\nHow To Test\r\n1. open the app \r\n2. upload your video \r\n3. tap on a video and set your title with only spaces \r\n4. tap [upload]\r\n5. Title is now \"Untitled\"\r\n","created_at":"2016-03-18T15:01:00Z","updated_at":"2016-03-18T17:48:26Z","closed_at":null,"merged_at":null,"merge_commit_sha":"af2b0fe5bb6d92bf3e02f290341923bd0f9bf23c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/vimeo/VimeoUpload/pulls/72/commits","review_comments_url":"https://api.github.com/repos/vimeo/VimeoUpload/pulls/72/comments","review_comment_url":"https://api.github.com/repos/vimeo/VimeoUpload/pulls/comments{/number}","comments_url":"https://api.github.com/repos/vimeo/VimeoUpload/issues/72/comments","statuses_url":"https://api.github.com/repos/vimeo/VimeoUpload/statuses/90e99f3bf0340d62569370dc2d536d07484894b1","head":{"label":"vimeo:VIM-3848","ref":"VIM-3848","sha":"90e99f3bf0340d62569370dc2d536d07484894b1","user":{"login":"vimeo","id":317769,"avatar_url":"https://avatars.githubusercontent.com/u/317769?v=3","gravatar_id":"","url":"https://api.github.com/users/vimeo","html_url":"https://github.com/vimeo","followers_url":"https://api.github.com/users/vimeo/followers","following_url":"https://api.github.com/users/vimeo/following{/other_user}","gists_url":"https://api.github.com/users/vimeo/gists{/gist_id}","starred_url":"https://api.github.com/users/vimeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vimeo/subscriptions","organizations_url":"https://api.github.com/users/vimeo/orgs","repos_url":"https://api.github.com/users/vimeo/repos","events_url":"https://api.github.com/users/vimeo/events{/privacy}","received_events_url":"https://api.github.com/users/vimeo/received_events","type":"Organization","site_admin":false},"repo":{"id":45212775,"name":"VimeoUpload","full_name":"vimeo/VimeoUpload","owner":{"login":"vimeo","id":317769,"avatar_url":"https://avatars.githubusercontent.com/u/317769?v=3","gravatar_id":"","url":"https://api.github.com/users/vimeo","html_url":"https://github.com/vimeo","followers_url":"https://api.github.com/users/vimeo/followers","following_url":"https://api.github.com/users/vimeo/following{/other_user}","gists_url":"https://api.github.com/users/vimeo/gists{/gist_id}","starred_url":"https://api.github.com/users/vimeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vimeo/subscriptions","organizations_url":"https://api.github.com/users/vimeo/orgs","repos_url":"https://api.github.com/users/vimeo/repos","events_url":"https://api.github.com/users/vimeo/events{/privacy}","received_events_url":"https://api.github.com/users/vimeo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vimeo/VimeoUpload","description":"The Vimeo iOS/OSX Upload SDK","fork":false,"url":"https://api.github.com/repos/vimeo/VimeoUpload","forks_url":"https://api.github.com/repos/vimeo/VimeoUpload/forks","keys_url":"https://api.github.com/repos/vimeo/VimeoUpload/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vimeo/VimeoUpload/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vimeo/VimeoUpload/teams","hooks_url":"https://api.github.com/repos/vimeo/VimeoUpload/hooks","issue_events_url":"https://api.github.com/repos/vimeo/VimeoUpload/issues/events{/number}","events_url":"https://api.github.com/repos/vimeo/VimeoUpload/events","assignees_url":"https://api.github.com/repos/vimeo/VimeoUpload/assignees{/user}","branches_url":"https://api.github.com/repos/vimeo/VimeoUpload/branches{/branch}","tags_url":"https://api.github.com/repos/vimeo/VimeoUpload/tags","blobs_url":"https://api.github.com/repos/vimeo/VimeoUpload/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vimeo/VimeoUpload/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vimeo/VimeoUpload/git/refs{/sha}","trees_url":"https://api.github.com/repos/vimeo/VimeoUpload/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vimeo/VimeoUpload/statuses/{sha}","languages_url":"https://api.github.com/repos/vimeo/VimeoUpload/languages","stargazers_url":"https://api.github.com/repos/vimeo/VimeoUpload/stargazers","contributors_url":"https://api.github.com/repos/vimeo/VimeoUpload/contributors","subscribers_url":"https://api.github.com/repos/vimeo/VimeoUpload/subscribers","subscription_url":"https://api.github.com/repos/vimeo/VimeoUpload/subscription","commits_url":"https://api.github.com/repos/vimeo/VimeoUpload/commits{/sha}","git_commits_url":"https://api.github.com/repos/vimeo/VimeoUpload/git/commits{/sha}","comments_url":"https://api.github.com/repos/vimeo/VimeoUpload/comments{/number}","issue_comment_url":"https://api.github.com/repos/vimeo/VimeoUpload/issues/comments{/number}","contents_url":"https://api.github.com/repos/vimeo/VimeoUpload/contents/{+path}","compare_url":"https://api.github.com/repos/vimeo/VimeoUpload/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vimeo/VimeoUpload/merges","archive_url":"https://api.github.com/repos/vimeo/VimeoUpload/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vimeo/VimeoUpload/downloads","issues_url":"https://api.github.com/repos/vimeo/VimeoUpload/issues{/number}","pulls_url":"https://api.github.com/repos/vimeo/VimeoUpload/pulls{/number}","milestones_url":"https://api.github.com/repos/vimeo/VimeoUpload/milestones{/number}","notifications_url":"https://api.github.com/repos/vimeo/VimeoUpload/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vimeo/VimeoUpload/labels{/name}","releases_url":"https://api.github.com/repos/vimeo/VimeoUpload/releases{/id}","deployments_url":"https://api.github.com/repos/vimeo/VimeoUpload/deployments","created_at":"2015-10-29T21:51:37Z","updated_at":"2016-03-15T15:35:19Z","pushed_at":"2016-03-18T17:48:08Z","git_url":"git://github.com/vimeo/VimeoUpload.git","ssh_url":"git@github.com:vimeo/VimeoUpload.git","clone_url":"https://github.com/vimeo/VimeoUpload.git","svn_url":"https://github.com/vimeo/VimeoUpload","homepage":"","size":843,"stargazers_count":4,"watchers_count":4,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":4,"default_branch":"v0.9"}},"base":{"label":"vimeo:v0.9","ref":"v0.9","sha":"3e4d4cb04cc6b138c490075db7f1f28b94824e7a","user":{"login":"vimeo","id":317769,"avatar_url":"https://avatars.githubusercontent.com/u/317769?v=3","gravatar_id":"","url":"https://api.github.com/users/vimeo","html_url":"https://github.com/vimeo","followers_url":"https://api.github.com/users/vimeo/followers","following_url":"https://api.github.com/users/vimeo/following{/other_user}","gists_url":"https://api.github.com/users/vimeo/gists{/gist_id}","starred_url":"https://api.github.com/users/vimeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vimeo/subscriptions","organizations_url":"https://api.github.com/users/vimeo/orgs","repos_url":"https://api.github.com/users/vimeo/repos","events_url":"https://api.github.com/users/vimeo/events{/privacy}","received_events_url":"https://api.github.com/users/vimeo/received_events","type":"Organization","site_admin":false},"repo":{"id":45212775,"name":"VimeoUpload","full_name":"vimeo/VimeoUpload","owner":{"login":"vimeo","id":317769,"avatar_url":"https://avatars.githubusercontent.com/u/317769?v=3","gravatar_id":"","url":"https://api.github.com/users/vimeo","html_url":"https://github.com/vimeo","followers_url":"https://api.github.com/users/vimeo/followers","following_url":"https://api.github.com/users/vimeo/following{/other_user}","gists_url":"https://api.github.com/users/vimeo/gists{/gist_id}","starred_url":"https://api.github.com/users/vimeo/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vimeo/subscriptions","organizations_url":"https://api.github.com/users/vimeo/orgs","repos_url":"https://api.github.com/users/vimeo/repos","events_url":"https://api.github.com/users/vimeo/events{/privacy}","received_events_url":"https://api.github.com/users/vimeo/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/vimeo/VimeoUpload","description":"The Vimeo iOS/OSX Upload SDK","fork":false,"url":"https://api.github.com/repos/vimeo/VimeoUpload","forks_url":"https://api.github.com/repos/vimeo/VimeoUpload/forks","keys_url":"https://api.github.com/repos/vimeo/VimeoUpload/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vimeo/VimeoUpload/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vimeo/VimeoUpload/teams","hooks_url":"https://api.github.com/repos/vimeo/VimeoUpload/hooks","issue_events_url":"https://api.github.com/repos/vimeo/VimeoUpload/issues/events{/number}","events_url":"https://api.github.com/repos/vimeo/VimeoUpload/events","assignees_url":"https://api.github.com/repos/vimeo/VimeoUpload/assignees{/user}","branches_url":"https://api.github.com/repos/vimeo/VimeoUpload/branches{/branch}","tags_url":"https://api.github.com/repos/vimeo/VimeoUpload/tags","blobs_url":"https://api.github.com/repos/vimeo/VimeoUpload/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vimeo/VimeoUpload/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vimeo/VimeoUpload/git/refs{/sha}","trees_url":"https://api.github.com/repos/vimeo/VimeoUpload/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vimeo/VimeoUpload/statuses/{sha}","languages_url":"https://api.github.com/repos/vimeo/VimeoUpload/languages","stargazers_url":"https://api.github.com/repos/vimeo/VimeoUpload/stargazers","contributors_url":"https://api.github.com/repos/vimeo/VimeoUpload/contributors","subscribers_url":"https://api.github.com/repos/vimeo/VimeoUpload/subscribers","subscription_url":"https://api.github.com/repos/vimeo/VimeoUpload/subscription","commits_url":"https://api.github.com/repos/vimeo/VimeoUpload/commits{/sha}","git_commits_url":"https://api.github.com/repos/vimeo/VimeoUpload/git/commits{/sha}","comments_url":"https://api.github.com/repos/vimeo/VimeoUpload/comments{/number}","issue_comment_url":"https://api.github.com/repos/vimeo/VimeoUpload/issues/comments{/number}","contents_url":"https://api.github.com/repos/vimeo/VimeoUpload/contents/{+path}","compare_url":"https://api.github.com/repos/vimeo/VimeoUpload/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vimeo/VimeoUpload/merges","archive_url":"https://api.github.com/repos/vimeo/VimeoUpload/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vimeo/VimeoUpload/downloads","issues_url":"https://api.github.com/repos/vimeo/VimeoUpload/issues{/number}","pulls_url":"https://api.github.com/repos/vimeo/VimeoUpload/pulls{/number}","milestones_url":"https://api.github.com/repos/vimeo/VimeoUpload/milestones{/number}","notifications_url":"https://api.github.com/repos/vimeo/VimeoUpload/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vimeo/VimeoUpload/labels{/name}","releases_url":"https://api.github.com/repos/vimeo/VimeoUpload/releases{/id}","deployments_url":"https://api.github.com/repos/vimeo/VimeoUpload/deployments","created_at":"2015-10-29T21:51:37Z","updated_at":"2016-03-15T15:35:19Z","pushed_at":"2016-03-18T17:48:08Z","git_url":"git://github.com/vimeo/VimeoUpload.git","ssh_url":"git@github.com:vimeo/VimeoUpload.git","clone_url":"https://github.com/vimeo/VimeoUpload.git","svn_url":"https://github.com/vimeo/VimeoUpload","homepage":"","size":843,"stargazers_count":4,"watchers_count":4,"language":"Swift","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":1,"forks":1,"open_issues":1,"watchers":4,"default_branch":"v0.9"}},"_links":{"self":{"href":"https://api.github.com/repos/vimeo/VimeoUpload/pulls/72"},"html":{"href":"https://github.com/vimeo/VimeoUpload/pull/72"},"issue":{"href":"https://api.github.com/repos/vimeo/VimeoUpload/issues/72"},"comments":{"href":"https://api.github.com/repos/vimeo/VimeoUpload/issues/72/comments"},"review_comments":{"href":"https://api.github.com/repos/vimeo/VimeoUpload/pulls/72/comments"},"review_comment":{"href":"https://api.github.com/repos/vimeo/VimeoUpload/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/vimeo/VimeoUpload/pulls/72/commits"},"statuses":{"href":"https://api.github.com/repos/vimeo/VimeoUpload/statuses/90e99f3bf0340d62569370dc2d536d07484894b1"}}}}