{"action":"created","comment":{"url":"https://api.github.com/repos/cuappdev/podcast-ios/pulls/comments/104809890","pull_request_review_id":25663128,"id":104809890,"diff_hunk":"@@ -0,0 +1,67 @@\n+//\n+//  Util.swift\n+//  Podcast\n+//\n+//  Created by Natasha Armbrust on 3/7/17.\n+//  Copyright © 2017 Cornell App Development. All rights reserved.\n+//\n+\n+import UIKit \n+\n+class Util {\n+    \n+    //format date interval between fromDate to toDate by greatest component between\n+    // i.e. if fromDate: March 7, 1989  toDate: March 8, 1989 \n+    //      formatDateDifferenceByLargestComponent(fromDate, toDate) -> \"1 day ago\"\n+    //      if fromDate: March 9, 2015  toDate: March 8, 2017\n+    //      formatDateDifferenceByLargestComponent(fromDate, toDate) -> \"2 years ago\"\n+    static func formatDateDifferenceByLargestComponent(fromDate: Date, toDate: Date) -> String {","path":"Podcast/Util.swift","position":18,"original_position":18,"commit_id":"6935fe7e9ef70d5161aa21bbaf9f30fcc1051ae7","original_commit_id":"6935fe7e9ef70d5161aa21bbaf9f30fcc1051ae7","user":{"login":"natashaarmbrust","id":14966713,"avatar_url":"https://avatars2.githubusercontent.com/u/14966713?v=3","gravatar_id":"","url":"https://api.github.com/users/natashaarmbrust","html_url":"https://github.com/natashaarmbrust","followers_url":"https://api.github.com/users/natashaarmbrust/followers","following_url":"https://api.github.com/users/natashaarmbrust/following{/other_user}","gists_url":"https://api.github.com/users/natashaarmbrust/gists{/gist_id}","starred_url":"https://api.github.com/users/natashaarmbrust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natashaarmbrust/subscriptions","organizations_url":"https://api.github.com/users/natashaarmbrust/orgs","repos_url":"https://api.github.com/users/natashaarmbrust/repos","events_url":"https://api.github.com/users/natashaarmbrust/events{/privacy}","received_events_url":"https://api.github.com/users/natashaarmbrust/received_events","type":"User","site_admin":false},"body":"addressed put in Date extension","created_at":"2017-03-07T23:41:33Z","updated_at":"2017-03-07T23:41:33Z","html_url":"https://github.com/cuappdev/podcast-ios/pull/58#discussion_r104809890","pull_request_url":"https://api.github.com/repos/cuappdev/podcast-ios/pulls/58","_links":{"self":{"href":"https://api.github.com/repos/cuappdev/podcast-ios/pulls/comments/104809890"},"html":{"href":"https://github.com/cuappdev/podcast-ios/pull/58#discussion_r104809890"},"pull_request":{"href":"https://api.github.com/repos/cuappdev/podcast-ios/pulls/58"}}},"pull_request":{"url":"https://api.github.com/repos/cuappdev/podcast-ios/pulls/58","id":109590318,"html_url":"https://github.com/cuappdev/podcast-ios/pull/58","diff_url":"https://github.com/cuappdev/podcast-ios/pull/58.diff","patch_url":"https://github.com/cuappdev/podcast-ios/pull/58.patch","issue_url":"https://api.github.com/repos/cuappdev/podcast-ios/issues/58","number":58,"state":"open","locked":false,"title":"Natasha/subscriptions","user":{"login":"natashaarmbrust","id":14966713,"avatar_url":"https://avatars2.githubusercontent.com/u/14966713?v=3","gravatar_id":"","url":"https://api.github.com/users/natashaarmbrust","html_url":"https://github.com/natashaarmbrust","followers_url":"https://api.github.com/users/natashaarmbrust/followers","following_url":"https://api.github.com/users/natashaarmbrust/following{/other_user}","gists_url":"https://api.github.com/users/natashaarmbrust/gists{/gist_id}","starred_url":"https://api.github.com/users/natashaarmbrust/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/natashaarmbrust/subscriptions","organizations_url":"https://api.github.com/users/natashaarmbrust/orgs","repos_url":"https://api.github.com/users/natashaarmbrust/repos","events_url":"https://api.github.com/users/natashaarmbrust/events{/privacy}","received_events_url":"https://api.github.com/users/natashaarmbrust/received_events","type":"User","site_admin":false},"body":"","created_at":"2017-03-07T22:52:47Z","updated_at":"2017-03-07T23:41:33Z","closed_at":null,"merged_at":null,"merge_commit_sha":"0f989cf7cbefc7f35a69b4b120960a1496a1f025","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/cuappdev/podcast-ios/pulls/58/commits","review_comments_url":"https://api.github.com/repos/cuappdev/podcast-ios/pulls/58/comments","review_comment_url":"https://api.github.com/repos/cuappdev/podcast-ios/pulls/comments{/number}","comments_url":"https://api.github.com/repos/cuappdev/podcast-ios/issues/58/comments","statuses_url":"https://api.github.com/repos/cuappdev/podcast-ios/statuses/6935fe7e9ef70d5161aa21bbaf9f30fcc1051ae7","head":{"label":"cuappdev:natasha/subscriptions","ref":"natasha/subscriptions","sha":"6935fe7e9ef70d5161aa21bbaf9f30fcc1051ae7","user":{"login":"cuappdev","id":17533691,"avatar_url":"https://avatars3.githubusercontent.com/u/17533691?v=3","gravatar_id":"","url":"https://api.github.com/users/cuappdev","html_url":"https://github.com/cuappdev","followers_url":"https://api.github.com/users/cuappdev/followers","following_url":"https://api.github.com/users/cuappdev/following{/other_user}","gists_url":"https://api.github.com/users/cuappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/cuappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuappdev/subscriptions","organizations_url":"https://api.github.com/users/cuappdev/orgs","repos_url":"https://api.github.com/users/cuappdev/repos","events_url":"https://api.github.com/users/cuappdev/events{/privacy}","received_events_url":"https://api.github.com/users/cuappdev/received_events","type":"Organization","site_admin":false},"repo":{"id":67357239,"name":"podcast-ios","full_name":"cuappdev/podcast-ios","owner":{"login":"cuappdev","id":17533691,"avatar_url":"https://avatars3.githubusercontent.com/u/17533691?v=3","gravatar_id":"","url":"https://api.github.com/users/cuappdev","html_url":"https://github.com/cuappdev","followers_url":"https://api.github.com/users/cuappdev/followers","following_url":"https://api.github.com/users/cuappdev/following{/other_user}","gists_url":"https://api.github.com/users/cuappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/cuappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuappdev/subscriptions","organizations_url":"https://api.github.com/users/cuappdev/orgs","repos_url":"https://api.github.com/users/cuappdev/repos","events_url":"https://api.github.com/users/cuappdev/events{/privacy}","received_events_url":"https://api.github.com/users/cuappdev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cuappdev/podcast-ios","description":"An open-source iOS app for listening to podcasts.","fork":false,"url":"https://api.github.com/repos/cuappdev/podcast-ios","forks_url":"https://api.github.com/repos/cuappdev/podcast-ios/forks","keys_url":"https://api.github.com/repos/cuappdev/podcast-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cuappdev/podcast-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cuappdev/podcast-ios/teams","hooks_url":"https://api.github.com/repos/cuappdev/podcast-ios/hooks","issue_events_url":"https://api.github.com/repos/cuappdev/podcast-ios/issues/events{/number}","events_url":"https://api.github.com/repos/cuappdev/podcast-ios/events","assignees_url":"https://api.github.com/repos/cuappdev/podcast-ios/assignees{/user}","branches_url":"https://api.github.com/repos/cuappdev/podcast-ios/branches{/branch}","tags_url":"https://api.github.com/repos/cuappdev/podcast-ios/tags","blobs_url":"https://api.github.com/repos/cuappdev/podcast-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cuappdev/podcast-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cuappdev/podcast-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/cuappdev/podcast-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cuappdev/podcast-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/cuappdev/podcast-ios/languages","stargazers_url":"https://api.github.com/repos/cuappdev/podcast-ios/stargazers","contributors_url":"https://api.github.com/repos/cuappdev/podcast-ios/contributors","subscribers_url":"https://api.github.com/repos/cuappdev/podcast-ios/subscribers","subscription_url":"https://api.github.com/repos/cuappdev/podcast-ios/subscription","commits_url":"https://api.github.com/repos/cuappdev/podcast-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/cuappdev/podcast-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/cuappdev/podcast-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/cuappdev/podcast-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/cuappdev/podcast-ios/contents/{+path}","compare_url":"https://api.github.com/repos/cuappdev/podcast-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cuappdev/podcast-ios/merges","archive_url":"https://api.github.com/repos/cuappdev/podcast-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cuappdev/podcast-ios/downloads","issues_url":"https://api.github.com/repos/cuappdev/podcast-ios/issues{/number}","pulls_url":"https://api.github.com/repos/cuappdev/podcast-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/cuappdev/podcast-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/cuappdev/podcast-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cuappdev/podcast-ios/labels{/name}","releases_url":"https://api.github.com/repos/cuappdev/podcast-ios/releases{/id}","deployments_url":"https://api.github.com/repos/cuappdev/podcast-ios/deployments","created_at":"2016-09-04T16:54:22Z","updated_at":"2017-03-01T19:56:19Z","pushed_at":"2017-03-07T23:36:59Z","git_url":"git://github.com/cuappdev/podcast-ios.git","ssh_url":"git@github.com:cuappdev/podcast-ios.git","clone_url":"https://github.com/cuappdev/podcast-ios.git","svn_url":"https://github.com/cuappdev/podcast-ios","homepage":"","size":22165,"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":15,"forks":1,"open_issues":15,"watchers":4,"default_branch":"master"}},"base":{"label":"cuappdev:master","ref":"master","sha":"e574ba6f7494fe7396fe904f0fb0822898ae4278","user":{"login":"cuappdev","id":17533691,"avatar_url":"https://avatars3.githubusercontent.com/u/17533691?v=3","gravatar_id":"","url":"https://api.github.com/users/cuappdev","html_url":"https://github.com/cuappdev","followers_url":"https://api.github.com/users/cuappdev/followers","following_url":"https://api.github.com/users/cuappdev/following{/other_user}","gists_url":"https://api.github.com/users/cuappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/cuappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuappdev/subscriptions","organizations_url":"https://api.github.com/users/cuappdev/orgs","repos_url":"https://api.github.com/users/cuappdev/repos","events_url":"https://api.github.com/users/cuappdev/events{/privacy}","received_events_url":"https://api.github.com/users/cuappdev/received_events","type":"Organization","site_admin":false},"repo":{"id":67357239,"name":"podcast-ios","full_name":"cuappdev/podcast-ios","owner":{"login":"cuappdev","id":17533691,"avatar_url":"https://avatars3.githubusercontent.com/u/17533691?v=3","gravatar_id":"","url":"https://api.github.com/users/cuappdev","html_url":"https://github.com/cuappdev","followers_url":"https://api.github.com/users/cuappdev/followers","following_url":"https://api.github.com/users/cuappdev/following{/other_user}","gists_url":"https://api.github.com/users/cuappdev/gists{/gist_id}","starred_url":"https://api.github.com/users/cuappdev/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/cuappdev/subscriptions","organizations_url":"https://api.github.com/users/cuappdev/orgs","repos_url":"https://api.github.com/users/cuappdev/repos","events_url":"https://api.github.com/users/cuappdev/events{/privacy}","received_events_url":"https://api.github.com/users/cuappdev/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/cuappdev/podcast-ios","description":"An open-source iOS app for listening to podcasts.","fork":false,"url":"https://api.github.com/repos/cuappdev/podcast-ios","forks_url":"https://api.github.com/repos/cuappdev/podcast-ios/forks","keys_url":"https://api.github.com/repos/cuappdev/podcast-ios/keys{/key_id}","collaborators_url":"https://api.github.com/repos/cuappdev/podcast-ios/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/cuappdev/podcast-ios/teams","hooks_url":"https://api.github.com/repos/cuappdev/podcast-ios/hooks","issue_events_url":"https://api.github.com/repos/cuappdev/podcast-ios/issues/events{/number}","events_url":"https://api.github.com/repos/cuappdev/podcast-ios/events","assignees_url":"https://api.github.com/repos/cuappdev/podcast-ios/assignees{/user}","branches_url":"https://api.github.com/repos/cuappdev/podcast-ios/branches{/branch}","tags_url":"https://api.github.com/repos/cuappdev/podcast-ios/tags","blobs_url":"https://api.github.com/repos/cuappdev/podcast-ios/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/cuappdev/podcast-ios/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/cuappdev/podcast-ios/git/refs{/sha}","trees_url":"https://api.github.com/repos/cuappdev/podcast-ios/git/trees{/sha}","statuses_url":"https://api.github.com/repos/cuappdev/podcast-ios/statuses/{sha}","languages_url":"https://api.github.com/repos/cuappdev/podcast-ios/languages","stargazers_url":"https://api.github.com/repos/cuappdev/podcast-ios/stargazers","contributors_url":"https://api.github.com/repos/cuappdev/podcast-ios/contributors","subscribers_url":"https://api.github.com/repos/cuappdev/podcast-ios/subscribers","subscription_url":"https://api.github.com/repos/cuappdev/podcast-ios/subscription","commits_url":"https://api.github.com/repos/cuappdev/podcast-ios/commits{/sha}","git_commits_url":"https://api.github.com/repos/cuappdev/podcast-ios/git/commits{/sha}","comments_url":"https://api.github.com/repos/cuappdev/podcast-ios/comments{/number}","issue_comment_url":"https://api.github.com/repos/cuappdev/podcast-ios/issues/comments{/number}","contents_url":"https://api.github.com/repos/cuappdev/podcast-ios/contents/{+path}","compare_url":"https://api.github.com/repos/cuappdev/podcast-ios/compare/{base}...{head}","merges_url":"https://api.github.com/repos/cuappdev/podcast-ios/merges","archive_url":"https://api.github.com/repos/cuappdev/podcast-ios/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/cuappdev/podcast-ios/downloads","issues_url":"https://api.github.com/repos/cuappdev/podcast-ios/issues{/number}","pulls_url":"https://api.github.com/repos/cuappdev/podcast-ios/pulls{/number}","milestones_url":"https://api.github.com/repos/cuappdev/podcast-ios/milestones{/number}","notifications_url":"https://api.github.com/repos/cuappdev/podcast-ios/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/cuappdev/podcast-ios/labels{/name}","releases_url":"https://api.github.com/repos/cuappdev/podcast-ios/releases{/id}","deployments_url":"https://api.github.com/repos/cuappdev/podcast-ios/deployments","created_at":"2016-09-04T16:54:22Z","updated_at":"2017-03-01T19:56:19Z","pushed_at":"2017-03-07T23:36:59Z","git_url":"git://github.com/cuappdev/podcast-ios.git","ssh_url":"git@github.com:cuappdev/podcast-ios.git","clone_url":"https://github.com/cuappdev/podcast-ios.git","svn_url":"https://github.com/cuappdev/podcast-ios","homepage":"","size":22165,"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":15,"forks":1,"open_issues":15,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/cuappdev/podcast-ios/pulls/58"},"html":{"href":"https://github.com/cuappdev/podcast-ios/pull/58"},"issue":{"href":"https://api.github.com/repos/cuappdev/podcast-ios/issues/58"},"comments":{"href":"https://api.github.com/repos/cuappdev/podcast-ios/issues/58/comments"},"review_comments":{"href":"https://api.github.com/repos/cuappdev/podcast-ios/pulls/58/comments"},"review_comment":{"href":"https://api.github.com/repos/cuappdev/podcast-ios/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/cuappdev/podcast-ios/pulls/58/commits"},"statuses":{"href":"https://api.github.com/repos/cuappdev/podcast-ios/statuses/6935fe7e9ef70d5161aa21bbaf9f30fcc1051ae7"}}}}
{"actor":{"display_login":"natashaarmbrust"}}