{"action":"created","comment":{"url":"https://api.github.com/repos/Homebrew/brew/pulls/comments/73128500","id":73128500,"diff_hunk":"@@ -28,10 +28,18 @@ def outdated\n \n   def print_outdated(formulae)\n     verbose = ($stdout.tty? || ARGV.verbose?) && !ARGV.flag?(\"--quiet\")\n+    fetch_head = ARGV.fetch_head?\n \n-    formulae.select(&:outdated?).each do |f|\n+    outdated_formulae = formulae.select { |f| f.outdated?(:fetch_head => fetch_head) }\n+\n+    outdated_formulae.each do |f|\n       if verbose\n-        puts \"#{f.full_name} (#{f.outdated_versions*\", \"} < #{f.pkg_version})\"\n+        outdated_versions = f.outdated_versions(:fetch_head => fetch_head)\n+        if outdated_versions.any? && f.head? && !fetch_head\n+          puts \"#{f.full_name} (#{outdated_versions.join(\", \")}) HEAD update available\"","path":"Library/Homebrew/cmd/outdated.rb","position":14,"original_position":14,"commit_id":"755ebd7a7abdf751419f8bd91815df390558dc90","original_commit_id":"755ebd7a7abdf751419f8bd91815df390558dc90","user":{"login":"MikeMcQuaid","id":125011,"avatar_url":"https://avatars.githubusercontent.com/u/125011?v=3","gravatar_id":"","url":"https://api.github.com/users/MikeMcQuaid","html_url":"https://github.com/MikeMcQuaid","followers_url":"https://api.github.com/users/MikeMcQuaid/followers","following_url":"https://api.github.com/users/MikeMcQuaid/following{/other_user}","gists_url":"https://api.github.com/users/MikeMcQuaid/gists{/gist_id}","starred_url":"https://api.github.com/users/MikeMcQuaid/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MikeMcQuaid/subscriptions","organizations_url":"https://api.github.com/users/MikeMcQuaid/orgs","repos_url":"https://api.github.com/users/MikeMcQuaid/repos","events_url":"https://api.github.com/users/MikeMcQuaid/events{/privacy}","received_events_url":"https://api.github.com/users/MikeMcQuaid/received_events","type":"User","site_admin":true},"body":"Let's go for `< latest HEAD`","created_at":"2016-08-02T10:10:31Z","updated_at":"2016-08-02T10:10:31Z","html_url":"https://github.com/Homebrew/brew/pull/584#discussion_r73128500","pull_request_url":"https://api.github.com/repos/Homebrew/brew/pulls/584","_links":{"self":{"href":"https://api.github.com/repos/Homebrew/brew/pulls/comments/73128500"},"html":{"href":"https://github.com/Homebrew/brew/pull/584#discussion_r73128500"},"pull_request":{"href":"https://api.github.com/repos/Homebrew/brew/pulls/584"}}},"pull_request":{"url":"https://api.github.com/repos/Homebrew/brew/pulls/584","id":78710792,"html_url":"https://github.com/Homebrew/brew/pull/584","diff_url":"https://github.com/Homebrew/brew/pull/584.diff","patch_url":"https://github.com/Homebrew/brew/pull/584.patch","issue_url":"https://api.github.com/repos/Homebrew/brew/issues/584","number":584,"state":"open","locked":false,"title":"[RFC] Allow HEAD-upgrades","user":{"login":"vladshablinsky","id":4408920,"avatar_url":"https://avatars.githubusercontent.com/u/4408920?v=3","gravatar_id":"","url":"https://api.github.com/users/vladshablinsky","html_url":"https://github.com/vladshablinsky","followers_url":"https://api.github.com/users/vladshablinsky/followers","following_url":"https://api.github.com/users/vladshablinsky/following{/other_user}","gists_url":"https://api.github.com/users/vladshablinsky/gists{/gist_id}","starred_url":"https://api.github.com/users/vladshablinsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladshablinsky/subscriptions","organizations_url":"https://api.github.com/users/vladshablinsky/orgs","repos_url":"https://api.github.com/users/vladshablinsky/repos","events_url":"https://api.github.com/users/vladshablinsky/events{/privacy}","received_events_url":"https://api.github.com/users/vladshablinsky/received_events","type":"User","site_admin":false},"body":"- [x] Have you followed the guidelines in our [Contributing](https://github.com/Homebrew/brew/blob/master/.github/CONTRIBUTING.md) document?\r\n- [x] Have you checked to ensure there aren't other open [Pull Requests](https://github.com/Homebrew/brew/pulls) for the same change?\r\n- [x] Have you added an explanation of what your changes do and why you'd like us to include them?\r\n- [ ] Have you written new tests for your changes? [Here's an example](https://github.com/Homebrew/homebrew/pull/49031).\r\n- [x] Have you successfully run `brew tests` with your changes locally?\r\n\r\n-----\r\n\r\nThis is a copy of #274, but not filled with old comments and suggestions regarding the project in general, so the maintainers can leave their feedback.\r\n\r\n The further work on GSoC project will be continued here.\r\n\r\n\r\n","created_at":"2016-07-25T16:22:25Z","updated_at":"2016-08-02T10:10:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6385ba5c7f35428a8a60168667def7c756e78805","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/Homebrew/brew/pulls/584/commits","review_comments_url":"https://api.github.com/repos/Homebrew/brew/pulls/584/comments","review_comment_url":"https://api.github.com/repos/Homebrew/brew/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Homebrew/brew/issues/584/comments","statuses_url":"https://api.github.com/repos/Homebrew/brew/statuses/755ebd7a7abdf751419f8bd91815df390558dc90","head":{"label":"vladshablinsky:ds_last_commit_copy","ref":"ds_last_commit_copy","sha":"755ebd7a7abdf751419f8bd91815df390558dc90","user":{"login":"vladshablinsky","id":4408920,"avatar_url":"https://avatars.githubusercontent.com/u/4408920?v=3","gravatar_id":"","url":"https://api.github.com/users/vladshablinsky","html_url":"https://github.com/vladshablinsky","followers_url":"https://api.github.com/users/vladshablinsky/followers","following_url":"https://api.github.com/users/vladshablinsky/following{/other_user}","gists_url":"https://api.github.com/users/vladshablinsky/gists{/gist_id}","starred_url":"https://api.github.com/users/vladshablinsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladshablinsky/subscriptions","organizations_url":"https://api.github.com/users/vladshablinsky/orgs","repos_url":"https://api.github.com/users/vladshablinsky/repos","events_url":"https://api.github.com/users/vladshablinsky/events{/privacy}","received_events_url":"https://api.github.com/users/vladshablinsky/received_events","type":"User","site_admin":false},"repo":{"id":55350163,"name":"brew","full_name":"vladshablinsky/brew","owner":{"login":"vladshablinsky","id":4408920,"avatar_url":"https://avatars.githubusercontent.com/u/4408920?v=3","gravatar_id":"","url":"https://api.github.com/users/vladshablinsky","html_url":"https://github.com/vladshablinsky","followers_url":"https://api.github.com/users/vladshablinsky/followers","following_url":"https://api.github.com/users/vladshablinsky/following{/other_user}","gists_url":"https://api.github.com/users/vladshablinsky/gists{/gist_id}","starred_url":"https://api.github.com/users/vladshablinsky/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/vladshablinsky/subscriptions","organizations_url":"https://api.github.com/users/vladshablinsky/orgs","repos_url":"https://api.github.com/users/vladshablinsky/repos","events_url":"https://api.github.com/users/vladshablinsky/events{/privacy}","received_events_url":"https://api.github.com/users/vladshablinsky/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/vladshablinsky/brew","description":":beer: The missing package manager for OS X","fork":true,"url":"https://api.github.com/repos/vladshablinsky/brew","forks_url":"https://api.github.com/repos/vladshablinsky/brew/forks","keys_url":"https://api.github.com/repos/vladshablinsky/brew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/vladshablinsky/brew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/vladshablinsky/brew/teams","hooks_url":"https://api.github.com/repos/vladshablinsky/brew/hooks","issue_events_url":"https://api.github.com/repos/vladshablinsky/brew/issues/events{/number}","events_url":"https://api.github.com/repos/vladshablinsky/brew/events","assignees_url":"https://api.github.com/repos/vladshablinsky/brew/assignees{/user}","branches_url":"https://api.github.com/repos/vladshablinsky/brew/branches{/branch}","tags_url":"https://api.github.com/repos/vladshablinsky/brew/tags","blobs_url":"https://api.github.com/repos/vladshablinsky/brew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/vladshablinsky/brew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/vladshablinsky/brew/git/refs{/sha}","trees_url":"https://api.github.com/repos/vladshablinsky/brew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/vladshablinsky/brew/statuses/{sha}","languages_url":"https://api.github.com/repos/vladshablinsky/brew/languages","stargazers_url":"https://api.github.com/repos/vladshablinsky/brew/stargazers","contributors_url":"https://api.github.com/repos/vladshablinsky/brew/contributors","subscribers_url":"https://api.github.com/repos/vladshablinsky/brew/subscribers","subscription_url":"https://api.github.com/repos/vladshablinsky/brew/subscription","commits_url":"https://api.github.com/repos/vladshablinsky/brew/commits{/sha}","git_commits_url":"https://api.github.com/repos/vladshablinsky/brew/git/commits{/sha}","comments_url":"https://api.github.com/repos/vladshablinsky/brew/comments{/number}","issue_comment_url":"https://api.github.com/repos/vladshablinsky/brew/issues/comments{/number}","contents_url":"https://api.github.com/repos/vladshablinsky/brew/contents/{+path}","compare_url":"https://api.github.com/repos/vladshablinsky/brew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/vladshablinsky/brew/merges","archive_url":"https://api.github.com/repos/vladshablinsky/brew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/vladshablinsky/brew/downloads","issues_url":"https://api.github.com/repos/vladshablinsky/brew/issues{/number}","pulls_url":"https://api.github.com/repos/vladshablinsky/brew/pulls{/number}","milestones_url":"https://api.github.com/repos/vladshablinsky/brew/milestones{/number}","notifications_url":"https://api.github.com/repos/vladshablinsky/brew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/vladshablinsky/brew/labels{/name}","releases_url":"https://api.github.com/repos/vladshablinsky/brew/releases{/id}","deployments_url":"https://api.github.com/repos/vladshablinsky/brew/deployments","created_at":"2016-04-03T14:25:00Z","updated_at":"2016-04-03T14:25:02Z","pushed_at":"2016-08-01T14:08:18Z","git_url":"git://github.com/vladshablinsky/brew.git","ssh_url":"git@github.com:vladshablinsky/brew.git","clone_url":"https://github.com/vladshablinsky/brew.git","svn_url":"https://github.com/vladshablinsky/brew","homepage":"http://brew.sh","size":10301,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Homebrew:master","ref":"master","sha":"a5a930c48bec7bb7bdc6bbf7e0fe7fe5f564a7fe","user":{"login":"Homebrew","id":1503512,"avatar_url":"https://avatars.githubusercontent.com/u/1503512?v=3","gravatar_id":"","url":"https://api.github.com/users/Homebrew","html_url":"https://github.com/Homebrew","followers_url":"https://api.github.com/users/Homebrew/followers","following_url":"https://api.github.com/users/Homebrew/following{/other_user}","gists_url":"https://api.github.com/users/Homebrew/gists{/gist_id}","starred_url":"https://api.github.com/users/Homebrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Homebrew/subscriptions","organizations_url":"https://api.github.com/users/Homebrew/orgs","repos_url":"https://api.github.com/users/Homebrew/repos","events_url":"https://api.github.com/users/Homebrew/events{/privacy}","received_events_url":"https://api.github.com/users/Homebrew/received_events","type":"Organization","site_admin":false},"repo":{"id":53238813,"name":"brew","full_name":"Homebrew/brew","owner":{"login":"Homebrew","id":1503512,"avatar_url":"https://avatars.githubusercontent.com/u/1503512?v=3","gravatar_id":"","url":"https://api.github.com/users/Homebrew","html_url":"https://github.com/Homebrew","followers_url":"https://api.github.com/users/Homebrew/followers","following_url":"https://api.github.com/users/Homebrew/following{/other_user}","gists_url":"https://api.github.com/users/Homebrew/gists{/gist_id}","starred_url":"https://api.github.com/users/Homebrew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Homebrew/subscriptions","organizations_url":"https://api.github.com/users/Homebrew/orgs","repos_url":"https://api.github.com/users/Homebrew/repos","events_url":"https://api.github.com/users/Homebrew/events{/privacy}","received_events_url":"https://api.github.com/users/Homebrew/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Homebrew/brew","description":":beer: The missing package manager for OS X","fork":false,"url":"https://api.github.com/repos/Homebrew/brew","forks_url":"https://api.github.com/repos/Homebrew/brew/forks","keys_url":"https://api.github.com/repos/Homebrew/brew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Homebrew/brew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Homebrew/brew/teams","hooks_url":"https://api.github.com/repos/Homebrew/brew/hooks","issue_events_url":"https://api.github.com/repos/Homebrew/brew/issues/events{/number}","events_url":"https://api.github.com/repos/Homebrew/brew/events","assignees_url":"https://api.github.com/repos/Homebrew/brew/assignees{/user}","branches_url":"https://api.github.com/repos/Homebrew/brew/branches{/branch}","tags_url":"https://api.github.com/repos/Homebrew/brew/tags","blobs_url":"https://api.github.com/repos/Homebrew/brew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Homebrew/brew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Homebrew/brew/git/refs{/sha}","trees_url":"https://api.github.com/repos/Homebrew/brew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Homebrew/brew/statuses/{sha}","languages_url":"https://api.github.com/repos/Homebrew/brew/languages","stargazers_url":"https://api.github.com/repos/Homebrew/brew/stargazers","contributors_url":"https://api.github.com/repos/Homebrew/brew/contributors","subscribers_url":"https://api.github.com/repos/Homebrew/brew/subscribers","subscription_url":"https://api.github.com/repos/Homebrew/brew/subscription","commits_url":"https://api.github.com/repos/Homebrew/brew/commits{/sha}","git_commits_url":"https://api.github.com/repos/Homebrew/brew/git/commits{/sha}","comments_url":"https://api.github.com/repos/Homebrew/brew/comments{/number}","issue_comment_url":"https://api.github.com/repos/Homebrew/brew/issues/comments{/number}","contents_url":"https://api.github.com/repos/Homebrew/brew/contents/{+path}","compare_url":"https://api.github.com/repos/Homebrew/brew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Homebrew/brew/merges","archive_url":"https://api.github.com/repos/Homebrew/brew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Homebrew/brew/downloads","issues_url":"https://api.github.com/repos/Homebrew/brew/issues{/number}","pulls_url":"https://api.github.com/repos/Homebrew/brew/pulls{/number}","milestones_url":"https://api.github.com/repos/Homebrew/brew/milestones{/number}","notifications_url":"https://api.github.com/repos/Homebrew/brew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Homebrew/brew/labels{/name}","releases_url":"https://api.github.com/repos/Homebrew/brew/releases{/id}","deployments_url":"https://api.github.com/repos/Homebrew/brew/deployments","created_at":"2016-03-06T05:08:38Z","updated_at":"2016-08-02T09:47:25Z","pushed_at":"2016-08-02T10:00:43Z","git_url":"git://github.com/Homebrew/brew.git","ssh_url":"git@github.com:Homebrew/brew.git","clone_url":"https://github.com/Homebrew/brew.git","svn_url":"https://github.com/Homebrew/brew","homepage":"http://brew.sh","size":10913,"stargazers_count":2337,"watchers_count":2337,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":683,"mirror_url":null,"open_issues_count":64,"forks":683,"open_issues":64,"watchers":2337,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Homebrew/brew/pulls/584"},"html":{"href":"https://github.com/Homebrew/brew/pull/584"},"issue":{"href":"https://api.github.com/repos/Homebrew/brew/issues/584"},"comments":{"href":"https://api.github.com/repos/Homebrew/brew/issues/584/comments"},"review_comments":{"href":"https://api.github.com/repos/Homebrew/brew/pulls/584/comments"},"review_comment":{"href":"https://api.github.com/repos/Homebrew/brew/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Homebrew/brew/pulls/584/commits"},"statuses":{"href":"https://api.github.com/repos/Homebrew/brew/statuses/755ebd7a7abdf751419f8bd91815df390558dc90"}}}}
{"actor":{"display_login":"MikeMcQuaid"}}