{"action":"created","comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/31812600","id":31812600,"diff_hunk":"@@ -77,7 +79,13 @@ def install\n       EOS\n     end\n \n-    bash_completion.install resource(\"completion\").files(\"adb.bash\" => \"adb-completion.bash\")\n+    resource(\"completion\").stage do\n+      # googlesource.com only serves up the file in base64-encoded format; we\n+      # need to decode it before installing\n+      decoded = Base64.decode64(File.read(\"adb.bash\"))\n+      File.open(\"adb.bash\", \"w\") { |f| f.write(decoded) }","path":"Library/Formula/android-sdk.rb","position":26,"original_position":26,"commit_id":"2878354b1f34663d0dc3f71a71acbc2ab2b228a6","original_commit_id":"2878354b1f34663d0dc3f71a71acbc2ab2b228a6","user":{"login":"rhendric","id":1570964,"avatar_url":"https://avatars.githubusercontent.com/u/1570964?v=3","gravatar_id":"","url":"https://api.github.com/users/rhendric","html_url":"https://github.com/rhendric","followers_url":"https://api.github.com/users/rhendric/followers","following_url":"https://api.github.com/users/rhendric/following{/other_user}","gists_url":"https://api.github.com/users/rhendric/gists{/gist_id}","starred_url":"https://api.github.com/users/rhendric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhendric/subscriptions","organizations_url":"https://api.github.com/users/rhendric/orgs","repos_url":"https://api.github.com/users/rhendric/repos","events_url":"https://api.github.com/users/rhendric/events{/privacy}","received_events_url":"https://api.github.com/users/rhendric/received_events","type":"User","site_admin":false},"body":"Not on Ruby 1.8, the system Ruby in Snow Leopard!","created_at":"2015-06-05T13:37:35Z","updated_at":"2015-06-05T13:37:35Z","html_url":"https://github.com/Homebrew/homebrew/pull/40409#discussion_r31812600","pull_request_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/40409","_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/31812600"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/40409#discussion_r31812600"},"pull_request":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/40409"}}},"pull_request":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/40409","id":37024318,"html_url":"https://github.com/Homebrew/homebrew/pull/40409","diff_url":"https://github.com/Homebrew/homebrew/pull/40409.diff","patch_url":"https://github.com/Homebrew/homebrew/pull/40409.patch","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/40409","number":40409,"state":"open","locked":false,"title":"android-sdk: update bash completion resource","user":{"login":"rhendric","id":1570964,"avatar_url":"https://avatars.githubusercontent.com/u/1570964?v=3","gravatar_id":"","url":"https://api.github.com/users/rhendric","html_url":"https://github.com/rhendric","followers_url":"https://api.github.com/users/rhendric/followers","following_url":"https://api.github.com/users/rhendric/following{/other_user}","gists_url":"https://api.github.com/users/rhendric/gists{/gist_id}","starred_url":"https://api.github.com/users/rhendric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhendric/subscriptions","organizations_url":"https://api.github.com/users/rhendric/orgs","repos_url":"https://api.github.com/users/rhendric/repos","events_url":"https://api.github.com/users/rhendric/events{/privacy}","received_events_url":"https://api.github.com/users/rhendric/received_events","type":"User","site_admin":false},"body":"Use the authoritative Google repository for the bash completion file,\r\ninstead of an out-of-date CyanogenMod repo. (Unfortunately, Google's\r\nrepo server isn't as kind as GitHub in terms of serving up the raw file,\r\nso we also need to add some decoding logic.)","created_at":"2015-06-05T11:52:35Z","updated_at":"2015-06-05T13:37:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"b9f8f2fe269fcf4c1ab19057bc34433638c38387","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/40409/commits","review_comments_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/40409/comments","review_comment_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/40409/comments","statuses_url":"https://api.github.com/repos/Homebrew/homebrew/statuses/2878354b1f34663d0dc3f71a71acbc2ab2b228a6","head":{"label":"rhendric:android-sdk","ref":"android-sdk","sha":"2878354b1f34663d0dc3f71a71acbc2ab2b228a6","user":{"login":"rhendric","id":1570964,"avatar_url":"https://avatars.githubusercontent.com/u/1570964?v=3","gravatar_id":"","url":"https://api.github.com/users/rhendric","html_url":"https://github.com/rhendric","followers_url":"https://api.github.com/users/rhendric/followers","following_url":"https://api.github.com/users/rhendric/following{/other_user}","gists_url":"https://api.github.com/users/rhendric/gists{/gist_id}","starred_url":"https://api.github.com/users/rhendric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhendric/subscriptions","organizations_url":"https://api.github.com/users/rhendric/orgs","repos_url":"https://api.github.com/users/rhendric/repos","events_url":"https://api.github.com/users/rhendric/events{/privacy}","received_events_url":"https://api.github.com/users/rhendric/received_events","type":"User","site_admin":false},"repo":{"id":25848420,"name":"homebrew","full_name":"rhendric/homebrew","owner":{"login":"rhendric","id":1570964,"avatar_url":"https://avatars.githubusercontent.com/u/1570964?v=3","gravatar_id":"","url":"https://api.github.com/users/rhendric","html_url":"https://github.com/rhendric","followers_url":"https://api.github.com/users/rhendric/followers","following_url":"https://api.github.com/users/rhendric/following{/other_user}","gists_url":"https://api.github.com/users/rhendric/gists{/gist_id}","starred_url":"https://api.github.com/users/rhendric/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rhendric/subscriptions","organizations_url":"https://api.github.com/users/rhendric/orgs","repos_url":"https://api.github.com/users/rhendric/repos","events_url":"https://api.github.com/users/rhendric/events{/privacy}","received_events_url":"https://api.github.com/users/rhendric/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/rhendric/homebrew","description":"The missing package manager for OS X.","fork":true,"url":"https://api.github.com/repos/rhendric/homebrew","forks_url":"https://api.github.com/repos/rhendric/homebrew/forks","keys_url":"https://api.github.com/repos/rhendric/homebrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/rhendric/homebrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/rhendric/homebrew/teams","hooks_url":"https://api.github.com/repos/rhendric/homebrew/hooks","issue_events_url":"https://api.github.com/repos/rhendric/homebrew/issues/events{/number}","events_url":"https://api.github.com/repos/rhendric/homebrew/events","assignees_url":"https://api.github.com/repos/rhendric/homebrew/assignees{/user}","branches_url":"https://api.github.com/repos/rhendric/homebrew/branches{/branch}","tags_url":"https://api.github.com/repos/rhendric/homebrew/tags","blobs_url":"https://api.github.com/repos/rhendric/homebrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/rhendric/homebrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/rhendric/homebrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/rhendric/homebrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/rhendric/homebrew/statuses/{sha}","languages_url":"https://api.github.com/repos/rhendric/homebrew/languages","stargazers_url":"https://api.github.com/repos/rhendric/homebrew/stargazers","contributors_url":"https://api.github.com/repos/rhendric/homebrew/contributors","subscribers_url":"https://api.github.com/repos/rhendric/homebrew/subscribers","subscription_url":"https://api.github.com/repos/rhendric/homebrew/subscription","commits_url":"https://api.github.com/repos/rhendric/homebrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/rhendric/homebrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/rhendric/homebrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/rhendric/homebrew/issues/comments{/number}","contents_url":"https://api.github.com/repos/rhendric/homebrew/contents/{+path}","compare_url":"https://api.github.com/repos/rhendric/homebrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/rhendric/homebrew/merges","archive_url":"https://api.github.com/repos/rhendric/homebrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/rhendric/homebrew/downloads","issues_url":"https://api.github.com/repos/rhendric/homebrew/issues{/number}","pulls_url":"https://api.github.com/repos/rhendric/homebrew/pulls{/number}","milestones_url":"https://api.github.com/repos/rhendric/homebrew/milestones{/number}","notifications_url":"https://api.github.com/repos/rhendric/homebrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/rhendric/homebrew/labels{/name}","releases_url":"https://api.github.com/repos/rhendric/homebrew/releases{/id}","created_at":"2014-10-28T01:56:18Z","updated_at":"2014-10-28T02:02:12Z","pushed_at":"2015-06-05T11:56:27Z","git_url":"git://github.com/rhendric/homebrew.git","ssh_url":"git@github.com:rhendric/homebrew.git","clone_url":"https://github.com/rhendric/homebrew.git","svn_url":"https://github.com/rhendric/homebrew","homepage":"http://brew.sh","size":44711,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":true,"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":"a84ed2cb6e265ddd28708e4132d03778f00f3a01","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":206084,"name":"homebrew","full_name":"Homebrew/homebrew","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/homebrew","description":":beer: The missing package manager for OS X.","fork":false,"url":"https://api.github.com/repos/Homebrew/homebrew","forks_url":"https://api.github.com/repos/Homebrew/homebrew/forks","keys_url":"https://api.github.com/repos/Homebrew/homebrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Homebrew/homebrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Homebrew/homebrew/teams","hooks_url":"https://api.github.com/repos/Homebrew/homebrew/hooks","issue_events_url":"https://api.github.com/repos/Homebrew/homebrew/issues/events{/number}","events_url":"https://api.github.com/repos/Homebrew/homebrew/events","assignees_url":"https://api.github.com/repos/Homebrew/homebrew/assignees{/user}","branches_url":"https://api.github.com/repos/Homebrew/homebrew/branches{/branch}","tags_url":"https://api.github.com/repos/Homebrew/homebrew/tags","blobs_url":"https://api.github.com/repos/Homebrew/homebrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Homebrew/homebrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Homebrew/homebrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/Homebrew/homebrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Homebrew/homebrew/statuses/{sha}","languages_url":"https://api.github.com/repos/Homebrew/homebrew/languages","stargazers_url":"https://api.github.com/repos/Homebrew/homebrew/stargazers","contributors_url":"https://api.github.com/repos/Homebrew/homebrew/contributors","subscribers_url":"https://api.github.com/repos/Homebrew/homebrew/subscribers","subscription_url":"https://api.github.com/repos/Homebrew/homebrew/subscription","commits_url":"https://api.github.com/repos/Homebrew/homebrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/Homebrew/homebrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/Homebrew/homebrew/issues/comments{/number}","contents_url":"https://api.github.com/repos/Homebrew/homebrew/contents/{+path}","compare_url":"https://api.github.com/repos/Homebrew/homebrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Homebrew/homebrew/merges","archive_url":"https://api.github.com/repos/Homebrew/homebrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Homebrew/homebrew/downloads","issues_url":"https://api.github.com/repos/Homebrew/homebrew/issues{/number}","pulls_url":"https://api.github.com/repos/Homebrew/homebrew/pulls{/number}","milestones_url":"https://api.github.com/repos/Homebrew/homebrew/milestones{/number}","notifications_url":"https://api.github.com/repos/Homebrew/homebrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Homebrew/homebrew/labels{/name}","releases_url":"https://api.github.com/repos/Homebrew/homebrew/releases{/id}","created_at":"2009-05-20T19:38:37Z","updated_at":"2015-06-05T13:35:54Z","pushed_at":"2015-06-05T13:31:02Z","git_url":"git://github.com/Homebrew/homebrew.git","ssh_url":"git@github.com:Homebrew/homebrew.git","clone_url":"https://github.com/Homebrew/homebrew.git","svn_url":"https://github.com/Homebrew/homebrew","homepage":"http://brew.sh","size":1520360,"stargazers_count":23306,"watchers_count":23306,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":11722,"mirror_url":null,"open_issues_count":348,"forks":11722,"open_issues":348,"watchers":23306,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/40409"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/40409"},"issue":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/40409"},"comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/40409/comments"},"review_comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/40409/comments"},"review_comment":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/40409/commits"},"statuses":{"href":"https://api.github.com/repos/Homebrew/homebrew/statuses/2878354b1f34663d0dc3f71a71acbc2ab2b228a6"}}}}