{"action":"created","comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/47359876","id":47359876,"diff_hunk":"@@ -0,0 +1,39 @@\n+require \"language/go\"\n+\n+class Gdm < Formula\n+  desc \"Go Dependency Manager (gdm)\"\n+  homepage \"https://github.com/sparrc/gdm\"\n+  url \"https://github.com/sparrc/gdm/archive/v1.0.tar.gz\"\n+  sha256 \"e0dbec8deed27af3ff4cb16782bc38a4fd8eeb0db8e024b3083a00d36f877cab\"\n+\n+  depends_on \"go\" => :build\n+\n+  go_resource \"golang.org/x/tools\" do\n+    url \"https://go.googlesource.com/tools.git\",\n+    :revision => \"b48dc8da98ae78c3d11f220e7d327304c84e623a\"\n+  end\n+\n+  def install\n+    ENV[\"GOPATH\"] = buildpath\n+    gdm_path = buildpath/\"src/github.com/sparrc/gdm\"\n+    gdm_path.install Dir[\"*\"]\n+\n+    Language::Go.stage_deps resources, buildpath/\"src\"\n+\n+    cd gdm_path do\n+      system \"go\", \"build\", \"-o\", \"gdm\",\n+             \"-ldflags\", \"-X main.Version=#{version}\"\n+    end\n+\n+    bin.install gdm_path/\"gdm\"\n+  end\n+\n+  test do\n+    cd testpath do\n+      ENV[\"GOPATH\"] = testpath\n+      assert_match \"#{version}\", shell_output(\"#{bin}/gdm version\")","path":"Library/Formula/gdm.rb","position":34,"original_position":34,"commit_id":"390d2634521765ede8ea03744005d620a2ef743b","original_commit_id":"390d2634521765ede8ea03744005d620a2ef743b","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":"Would be good if you could actually generate some `go_resource`s in the test.","created_at":"2015-12-11T14:31:07Z","updated_at":"2015-12-11T14:31:07Z","html_url":"https://github.com/Homebrew/homebrew/pull/46897#discussion_r47359876","pull_request_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/46897","_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/47359876"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/46897#discussion_r47359876"},"pull_request":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/46897"}}},"pull_request":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/46897","id":53348625,"html_url":"https://github.com/Homebrew/homebrew/pull/46897","diff_url":"https://github.com/Homebrew/homebrew/pull/46897.diff","patch_url":"https://github.com/Homebrew/homebrew/pull/46897.patch","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/46897","number":46897,"state":"open","locked":false,"title":"gdm 1.0 (new formula)","user":{"login":"sparrc","id":7155926,"avatar_url":"https://avatars.githubusercontent.com/u/7155926?v=3","gravatar_id":"","url":"https://api.github.com/users/sparrc","html_url":"https://github.com/sparrc","followers_url":"https://api.github.com/users/sparrc/followers","following_url":"https://api.github.com/users/sparrc/following{/other_user}","gists_url":"https://api.github.com/users/sparrc/gists{/gist_id}","starred_url":"https://api.github.com/users/sparrc/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sparrc/subscriptions","organizations_url":"https://api.github.com/users/sparrc/orgs","repos_url":"https://api.github.com/users/sparrc/repos","events_url":"https://api.github.com/users/sparrc/events{/privacy}","received_events_url":"https://api.github.com/users/sparrc/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-12-11T03:02:55Z","updated_at":"2015-12-11T14:31:07Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4750012b452875aa7793271761755d838b7f7052","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/46897/commits","review_comments_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/46897/comments","review_comment_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/46897/comments","statuses_url":"https://api.github.com/repos/Homebrew/homebrew/statuses/390d2634521765ede8ea03744005d620a2ef743b","head":{"label":"influxdb:gdm","ref":"gdm","sha":"390d2634521765ede8ea03744005d620a2ef743b","user":{"login":"influxdb","id":5713248,"avatar_url":"https://avatars.githubusercontent.com/u/5713248?v=3","gravatar_id":"","url":"https://api.github.com/users/influxdb","html_url":"https://github.com/influxdb","followers_url":"https://api.github.com/users/influxdb/followers","following_url":"https://api.github.com/users/influxdb/following{/other_user}","gists_url":"https://api.github.com/users/influxdb/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdb/subscriptions","organizations_url":"https://api.github.com/users/influxdb/orgs","repos_url":"https://api.github.com/users/influxdb/repos","events_url":"https://api.github.com/users/influxdb/events{/privacy}","received_events_url":"https://api.github.com/users/influxdb/received_events","type":"Organization","site_admin":false},"repo":{"id":16469538,"name":"homebrew","full_name":"influxdb/homebrew","owner":{"login":"influxdb","id":5713248,"avatar_url":"https://avatars.githubusercontent.com/u/5713248?v=3","gravatar_id":"","url":"https://api.github.com/users/influxdb","html_url":"https://github.com/influxdb","followers_url":"https://api.github.com/users/influxdb/followers","following_url":"https://api.github.com/users/influxdb/following{/other_user}","gists_url":"https://api.github.com/users/influxdb/gists{/gist_id}","starred_url":"https://api.github.com/users/influxdb/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/influxdb/subscriptions","organizations_url":"https://api.github.com/users/influxdb/orgs","repos_url":"https://api.github.com/users/influxdb/repos","events_url":"https://api.github.com/users/influxdb/events{/privacy}","received_events_url":"https://api.github.com/users/influxdb/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/influxdb/homebrew","description":"The missing package manager for OS X.","fork":true,"url":"https://api.github.com/repos/influxdb/homebrew","forks_url":"https://api.github.com/repos/influxdb/homebrew/forks","keys_url":"https://api.github.com/repos/influxdb/homebrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/influxdb/homebrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/influxdb/homebrew/teams","hooks_url":"https://api.github.com/repos/influxdb/homebrew/hooks","issue_events_url":"https://api.github.com/repos/influxdb/homebrew/issues/events{/number}","events_url":"https://api.github.com/repos/influxdb/homebrew/events","assignees_url":"https://api.github.com/repos/influxdb/homebrew/assignees{/user}","branches_url":"https://api.github.com/repos/influxdb/homebrew/branches{/branch}","tags_url":"https://api.github.com/repos/influxdb/homebrew/tags","blobs_url":"https://api.github.com/repos/influxdb/homebrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/influxdb/homebrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/influxdb/homebrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/influxdb/homebrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/influxdb/homebrew/statuses/{sha}","languages_url":"https://api.github.com/repos/influxdb/homebrew/languages","stargazers_url":"https://api.github.com/repos/influxdb/homebrew/stargazers","contributors_url":"https://api.github.com/repos/influxdb/homebrew/contributors","subscribers_url":"https://api.github.com/repos/influxdb/homebrew/subscribers","subscription_url":"https://api.github.com/repos/influxdb/homebrew/subscription","commits_url":"https://api.github.com/repos/influxdb/homebrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/influxdb/homebrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/influxdb/homebrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/influxdb/homebrew/issues/comments{/number}","contents_url":"https://api.github.com/repos/influxdb/homebrew/contents/{+path}","compare_url":"https://api.github.com/repos/influxdb/homebrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/influxdb/homebrew/merges","archive_url":"https://api.github.com/repos/influxdb/homebrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/influxdb/homebrew/downloads","issues_url":"https://api.github.com/repos/influxdb/homebrew/issues{/number}","pulls_url":"https://api.github.com/repos/influxdb/homebrew/pulls{/number}","milestones_url":"https://api.github.com/repos/influxdb/homebrew/milestones{/number}","notifications_url":"https://api.github.com/repos/influxdb/homebrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/influxdb/homebrew/labels{/name}","releases_url":"https://api.github.com/repos/influxdb/homebrew/releases{/id}","created_at":"2014-02-03T04:06:49Z","updated_at":"2014-09-11T22:06:18Z","pushed_at":"2015-12-11T08:26:31Z","git_url":"git://github.com/influxdb/homebrew.git","ssh_url":"git@github.com:influxdb/homebrew.git","clone_url":"https://github.com/influxdb/homebrew.git","svn_url":"https://github.com/influxdb/homebrew","homepage":"http://brew.sh","size":68800,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"has_wiki":true,"has_pages":true,"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":"4771778e74d6ec4ef03bb238870cde57a825bc0d","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-12-11T13:18:47Z","pushed_at":"2015-12-11T14:09:47Z","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":1401443,"stargazers_count":27808,"watchers_count":27808,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":13784,"mirror_url":null,"open_issues_count":497,"forks":13784,"open_issues":497,"watchers":27808,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/46897"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/46897"},"issue":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/46897"},"comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/46897/comments"},"review_comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/46897/comments"},"review_comment":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/46897/commits"},"statuses":{"href":"https://api.github.com/repos/Homebrew/homebrew/statuses/390d2634521765ede8ea03744005d620a2ef743b"}}}}