{"action":"created","comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/41081875","id":41081875,"diff_hunk":"@@ -0,0 +1,81 @@\n+require \"language/go\"\n+\n+class Otto < Formula\n+  desc \"Development and deployment system designed as the successor to Vagrant\"\n+  homepage \"https://ottoproject.io\"\n+  url \"https://github.com/hashicorp/otto.git\",\n+      :tag => \"v0.1.1\",\n+      :revision => \"257771b197d5a52bfb5c26205872969c328fca91\"\n+\n+  head \"https://github.com/hashicorp/otto.git\"\n+\n+  depends_on \"go\" => :build\n+\n+  go_resource \"github.com/tools/godep\" do\n+    url \"https://github.com/tools/godep.git\",\n+        :revision => \"2c6ee5e071cf01a41359e33502b7fe79a5801b9e\"\n+  end\n+\n+  go_resource \"github.com/jteeuwen/go-bindata\" do\n+    url \"https://github.com/jteeuwen/go-bindata.git\",\n+        :revision => \"bfe36d3254337b7cc18024805dfab2106613abdf\"\n+  end\n+\n+  # godep's dependencies\n+  go_resource \"github.com/kr/fs\" do\n+    url \"https://github.com/kr/fs.git\",\n+        :revision => \"2788f0dbd16903de03cb8186e5c7d97b69ad387b\"\n+  end\n+\n+  go_resource \"golang.org/x/tools\" do\n+    url \"https://go.googlesource.com/tools.git\",\n+        :revision => \"997b3545fd86c3a2d8e5fe6366174d7786e71278\"\n+  end\n+\n+  go_resource \"github.com/mitchellh/gox\" do\n+    url \"https://github.com/mitchellh/gox.git\",\n+        :revision => \"ef1967b9f538fe467e6a82fc42ec5dff966ad4ea\"\n+  end\n+\n+  # gox dependency\n+  go_resource \"github.com/mitchellh/iochan\" do\n+    url \"https://github.com/mitchellh/iochan.git\",\n+        :revision => \"87b45ffd0e9581375c491fef3d32130bb15c5bd7\"\n+  end\n+\n+  def install\n+    contents = Dir[\"{*,.git,.gitignore}\"]\n+    gopath = buildpath/\"gopath\"\n+    (gopath/\"src/github.com/hashicorp/otto\").install contents\n+\n+    ENV[\"GOPATH\"] = gopath\n+    ENV.prepend_create_path \"PATH\", gopath/\"bin\"\n+\n+    Language::Go.stage_deps resources, gopath/\"src\"\n+\n+    cd gopath/\"src/github.com/tools/godep\" do\n+      system \"go\", \"install\"\n+    end\n+\n+    cd gopath/\"src/github.com/jteeuwen/go-bindata/go-bindata\" do\n+      system \"go\", \"install\"\n+    end\n+\n+    cd gopath/\"src/golang.org/x/tools/cmd/stringer\" do\n+      system \"go\", \"install\"\n+    end\n+\n+    cd gopath/\"src/github.com/mitchellh/gox\" do\n+      system \"go\", \"install\"\n+    end\n+\n+    cd gopath/\"src/github.com/hashicorp/otto\" do\n+      system \"make\", \"dev\"\n+      bin.install \"bin/otto\"\n+    end\n+  end\n+\n+  test do\n+    system \"#{bin}/otto\", \"--version\"","path":"Library/Formula/otto.rb","position":79,"original_position":79,"commit_id":"7b8ad422072e9dc3aa2142c640be97bfda21509f","original_commit_id":"7b8ad422072e9dc3aa2142c640be97bfda21509f","user":{"login":"dunn","id":985416,"avatar_url":"https://avatars.githubusercontent.com/u/985416?v=3","gravatar_id":"","url":"https://api.github.com/users/dunn","html_url":"https://github.com/dunn","followers_url":"https://api.github.com/users/dunn/followers","following_url":"https://api.github.com/users/dunn/following{/other_user}","gists_url":"https://api.github.com/users/dunn/gists{/gist_id}","starred_url":"https://api.github.com/users/dunn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dunn/subscriptions","organizations_url":"https://api.github.com/users/dunn/orgs","repos_url":"https://api.github.com/users/dunn/repos","events_url":"https://api.github.com/users/dunn/events{/privacy}","received_events_url":"https://api.github.com/users/dunn/received_events","type":"User","site_admin":false},"body":"Any chance of a test that checks the functionality a bit more?","created_at":"2015-10-03T01:11:36Z","updated_at":"2015-10-03T01:11:36Z","html_url":"https://github.com/Homebrew/homebrew/pull/44469#discussion_r41081875","pull_request_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/44469","_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/41081875"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/44469#discussion_r41081875"},"pull_request":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/44469"}}},"pull_request":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/44469","id":46391955,"html_url":"https://github.com/Homebrew/homebrew/pull/44469","diff_url":"https://github.com/Homebrew/homebrew/pull/44469.diff","patch_url":"https://github.com/Homebrew/homebrew/pull/44469.patch","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/44469","number":44469,"state":"open","locked":false,"title":"otto: add 0.1.1 (new formula)","user":{"login":"chrisfu","id":109795,"avatar_url":"https://avatars.githubusercontent.com/u/109795?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisfu","html_url":"https://github.com/chrisfu","followers_url":"https://api.github.com/users/chrisfu/followers","following_url":"https://api.github.com/users/chrisfu/following{/other_user}","gists_url":"https://api.github.com/users/chrisfu/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisfu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisfu/subscriptions","organizations_url":"https://api.github.com/users/chrisfu/orgs","repos_url":"https://api.github.com/users/chrisfu/repos","events_url":"https://api.github.com/users/chrisfu/events{/privacy}","received_events_url":"https://api.github.com/users/chrisfu/received_events","type":"User","site_admin":false},"body":"Knocked up a quick formula to build Otto, which was recently announced by HashiCorp as a replacement for Vagrant. Based this on the pre-existing formula for Vault. Audited and confirmed working in Yosimite.\r\n\r\nThanks.","created_at":"2015-09-30T11:52:26Z","updated_at":"2015-10-03T01:11:36Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5d8ee0e14eae93e46b22c676849688cc3ff528cc","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/44469/commits","review_comments_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/44469/comments","review_comment_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/44469/comments","statuses_url":"https://api.github.com/repos/Homebrew/homebrew/statuses/7b8ad422072e9dc3aa2142c640be97bfda21509f","head":{"label":"chrisfu:master","ref":"master","sha":"7b8ad422072e9dc3aa2142c640be97bfda21509f","user":{"login":"chrisfu","id":109795,"avatar_url":"https://avatars.githubusercontent.com/u/109795?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisfu","html_url":"https://github.com/chrisfu","followers_url":"https://api.github.com/users/chrisfu/followers","following_url":"https://api.github.com/users/chrisfu/following{/other_user}","gists_url":"https://api.github.com/users/chrisfu/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisfu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisfu/subscriptions","organizations_url":"https://api.github.com/users/chrisfu/orgs","repos_url":"https://api.github.com/users/chrisfu/repos","events_url":"https://api.github.com/users/chrisfu/events{/privacy}","received_events_url":"https://api.github.com/users/chrisfu/received_events","type":"User","site_admin":false},"repo":{"id":43429908,"name":"homebrew","full_name":"chrisfu/homebrew","owner":{"login":"chrisfu","id":109795,"avatar_url":"https://avatars.githubusercontent.com/u/109795?v=3","gravatar_id":"","url":"https://api.github.com/users/chrisfu","html_url":"https://github.com/chrisfu","followers_url":"https://api.github.com/users/chrisfu/followers","following_url":"https://api.github.com/users/chrisfu/following{/other_user}","gists_url":"https://api.github.com/users/chrisfu/gists{/gist_id}","starred_url":"https://api.github.com/users/chrisfu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/chrisfu/subscriptions","organizations_url":"https://api.github.com/users/chrisfu/orgs","repos_url":"https://api.github.com/users/chrisfu/repos","events_url":"https://api.github.com/users/chrisfu/events{/privacy}","received_events_url":"https://api.github.com/users/chrisfu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/chrisfu/homebrew","description":":beer: The missing package manager for OS X.","fork":true,"url":"https://api.github.com/repos/chrisfu/homebrew","forks_url":"https://api.github.com/repos/chrisfu/homebrew/forks","keys_url":"https://api.github.com/repos/chrisfu/homebrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/chrisfu/homebrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/chrisfu/homebrew/teams","hooks_url":"https://api.github.com/repos/chrisfu/homebrew/hooks","issue_events_url":"https://api.github.com/repos/chrisfu/homebrew/issues/events{/number}","events_url":"https://api.github.com/repos/chrisfu/homebrew/events","assignees_url":"https://api.github.com/repos/chrisfu/homebrew/assignees{/user}","branches_url":"https://api.github.com/repos/chrisfu/homebrew/branches{/branch}","tags_url":"https://api.github.com/repos/chrisfu/homebrew/tags","blobs_url":"https://api.github.com/repos/chrisfu/homebrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/chrisfu/homebrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/chrisfu/homebrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/chrisfu/homebrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/chrisfu/homebrew/statuses/{sha}","languages_url":"https://api.github.com/repos/chrisfu/homebrew/languages","stargazers_url":"https://api.github.com/repos/chrisfu/homebrew/stargazers","contributors_url":"https://api.github.com/repos/chrisfu/homebrew/contributors","subscribers_url":"https://api.github.com/repos/chrisfu/homebrew/subscribers","subscription_url":"https://api.github.com/repos/chrisfu/homebrew/subscription","commits_url":"https://api.github.com/repos/chrisfu/homebrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/chrisfu/homebrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/chrisfu/homebrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/chrisfu/homebrew/issues/comments{/number}","contents_url":"https://api.github.com/repos/chrisfu/homebrew/contents/{+path}","compare_url":"https://api.github.com/repos/chrisfu/homebrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/chrisfu/homebrew/merges","archive_url":"https://api.github.com/repos/chrisfu/homebrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/chrisfu/homebrew/downloads","issues_url":"https://api.github.com/repos/chrisfu/homebrew/issues{/number}","pulls_url":"https://api.github.com/repos/chrisfu/homebrew/pulls{/number}","milestones_url":"https://api.github.com/repos/chrisfu/homebrew/milestones{/number}","notifications_url":"https://api.github.com/repos/chrisfu/homebrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/chrisfu/homebrew/labels{/name}","releases_url":"https://api.github.com/repos/chrisfu/homebrew/releases{/id}","created_at":"2015-09-30T11:47:13Z","updated_at":"2015-09-30T11:47:41Z","pushed_at":"2015-10-02T12:33:47Z","git_url":"git://github.com/chrisfu/homebrew.git","ssh_url":"git@github.com:chrisfu/homebrew.git","clone_url":"https://github.com/chrisfu/homebrew.git","svn_url":"https://github.com/chrisfu/homebrew","homepage":"http://brew.sh","size":55936,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":false,"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":"8a12b9981f8df4c7ad6666334c50697e10e0c163","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-10-03T00:54:36Z","pushed_at":"2015-10-03T00:44:30Z","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":1639970,"stargazers_count":26056,"watchers_count":26056,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":false,"has_pages":false,"forks_count":12970,"mirror_url":null,"open_issues_count":522,"forks":12970,"open_issues":522,"watchers":26056,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/44469"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/44469"},"issue":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/44469"},"comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/44469/comments"},"review_comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/44469/comments"},"review_comment":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/44469/commits"},"statuses":{"href":"https://api.github.com/repos/Homebrew/homebrew/statuses/7b8ad422072e9dc3aa2142c640be97bfda21509f"}}}}