{"action":"created","comment":{"url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/comments/60827823","id":60827823,"diff_hunk":"@@ -0,0 +1,36 @@\n+require \"tempfile\"\n+require \"open3\"\n+\n+class Liquigraph < Formula\n+  desc \"Migration runner for Neo4j\"\n+  homepage \"http://www.liquigraph.org\"\n+  url \"https://github.com/fbiville/liquigraph/archive/liquigraph-1.0-RC3.tar.gz\"\n+  sha256 \"9b616bd8d8798374d316decd7c1ef60882bf81f6627511af4e3c710143882c47\"\n+  head \"https://github.com/fbiville/liquigraph.git\"\n+\n+  depends_on \"maven\" => :build\n+  depends_on :java => \"1.7+\"\n+\n+  def install\n+    ENV.java_cache\n+    system \"mvn\", \"-q\", \"clean\", \"package\", \"-DskipTests\"\n+    mkdir \"binaries\"\n+    system \"tar\", \"xzf\", \"liquigraph-cli/target/liquigraph-cli-bin.tar.gz\", \"-C\", \"binaries\"\n+    libexec.install \"binaries/liquigraph-cli/liquigraph.sh\" => \"liquigraph\"\n+    libexec.install \"binaries/liquigraph-cli/liquigraph-cli.jar\"\n+    bin.install_symlink libexec/\"liquigraph\"\n+  end\n+\n+  test do\n+    failing_hostname = \"verrryyyy_unlikely_host\"\n+    changelog = Tempfile.new(\"changelog\")\n+    begin\n+      changelog.write(\"<?xml version='1.0' encoding='UTF-8'?><changelog><changeset id='test' author='me'><query>CREATE n RETURN n</query></changeset></changelog>\")\n+      stdout, stderr, status = Open3.capture3(\"#{bin}/liquigraph -c #{changelog.path} -g jdbc:neo4j://#{failing_hostname}:7474/\")\n+      stderr.include? \"UnknownHostException: #{failing_hostname}\"\n+    ensure\n+      changelog.close\n+      changelog.unlink","path":"Formula/liquigraph.rb","position":33,"original_position":33,"commit_id":"f6e91230eb66a445690b254bf0976b041f04ecfa","original_commit_id":"f6e91230eb66a445690b254bf0976b041f04ecfa","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":"If you use `testpath` this will be done automatically on closing.","created_at":"2016-04-23T12:24:53Z","updated_at":"2016-04-23T12:24:53Z","html_url":"https://github.com/Homebrew/homebrew-core/pull/509#discussion_r60827823","pull_request_url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/509","_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/comments/60827823"},"html":{"href":"https://github.com/Homebrew/homebrew-core/pull/509#discussion_r60827823"},"pull_request":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/509"}}},"pull_request":{"url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/509","id":67349079,"html_url":"https://github.com/Homebrew/homebrew-core/pull/509","diff_url":"https://github.com/Homebrew/homebrew-core/pull/509.diff","patch_url":"https://github.com/Homebrew/homebrew-core/pull/509.patch","issue_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/509","number":509,"state":"open","locked":false,"title":"liquigraph 1.0-rc3 (new formula)","user":{"login":"fbiville","id":445792,"avatar_url":"https://avatars.githubusercontent.com/u/445792?v=3","gravatar_id":"","url":"https://api.github.com/users/fbiville","html_url":"https://github.com/fbiville","followers_url":"https://api.github.com/users/fbiville/followers","following_url":"https://api.github.com/users/fbiville/following{/other_user}","gists_url":"https://api.github.com/users/fbiville/gists{/gist_id}","starred_url":"https://api.github.com/users/fbiville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbiville/subscriptions","organizations_url":"https://api.github.com/users/fbiville/orgs","repos_url":"https://api.github.com/users/fbiville/repos","events_url":"https://api.github.com/users/fbiville/events{/privacy}","received_events_url":"https://api.github.com/users/fbiville/received_events","type":"User","site_admin":false},"body":"- [x] Have you followed the guidelines in our [Contributing](https://github.com/Homebrew/homebrew-core/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/homebrew-core/pulls) for the same formula update/change?\r\n- [x] Have you built your formula locally prior to submission with `brew install <formula>` (where `<formula>` is the name of the formula you're submitting)?\r\n- [x] Does your submission pass `brew audit --strict --online <formula>` (after doing `brew install <formula>`)?\r\n\r\n### Description\r\n\r\nAudit partly passes. A warning is raised regarding the non-executable JAR being moved to `/usr/local/bin`.","created_at":"2016-04-21T12:57:12Z","updated_at":"2016-04-23T12:24:53Z","closed_at":null,"merged_at":null,"merge_commit_sha":"d6f2a74dcf63d441cddc69daaf8b1121a2db72c8","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/509/commits","review_comments_url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/509/comments","review_comment_url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/509/comments","statuses_url":"https://api.github.com/repos/Homebrew/homebrew-core/statuses/f6e91230eb66a445690b254bf0976b041f04ecfa","head":{"label":"fbiville:liquigraph","ref":"liquigraph","sha":"f6e91230eb66a445690b254bf0976b041f04ecfa","user":{"login":"fbiville","id":445792,"avatar_url":"https://avatars.githubusercontent.com/u/445792?v=3","gravatar_id":"","url":"https://api.github.com/users/fbiville","html_url":"https://github.com/fbiville","followers_url":"https://api.github.com/users/fbiville/followers","following_url":"https://api.github.com/users/fbiville/following{/other_user}","gists_url":"https://api.github.com/users/fbiville/gists{/gist_id}","starred_url":"https://api.github.com/users/fbiville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbiville/subscriptions","organizations_url":"https://api.github.com/users/fbiville/orgs","repos_url":"https://api.github.com/users/fbiville/repos","events_url":"https://api.github.com/users/fbiville/events{/privacy}","received_events_url":"https://api.github.com/users/fbiville/received_events","type":"User","site_admin":false},"repo":{"id":56772732,"name":"homebrew-core","full_name":"fbiville/homebrew-core","owner":{"login":"fbiville","id":445792,"avatar_url":"https://avatars.githubusercontent.com/u/445792?v=3","gravatar_id":"","url":"https://api.github.com/users/fbiville","html_url":"https://github.com/fbiville","followers_url":"https://api.github.com/users/fbiville/followers","following_url":"https://api.github.com/users/fbiville/following{/other_user}","gists_url":"https://api.github.com/users/fbiville/gists{/gist_id}","starred_url":"https://api.github.com/users/fbiville/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/fbiville/subscriptions","organizations_url":"https://api.github.com/users/fbiville/orgs","repos_url":"https://api.github.com/users/fbiville/repos","events_url":"https://api.github.com/users/fbiville/events{/privacy}","received_events_url":"https://api.github.com/users/fbiville/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/fbiville/homebrew-core","description":":beers: Core formulae for the Homebrew package manager","fork":true,"url":"https://api.github.com/repos/fbiville/homebrew-core","forks_url":"https://api.github.com/repos/fbiville/homebrew-core/forks","keys_url":"https://api.github.com/repos/fbiville/homebrew-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/fbiville/homebrew-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/fbiville/homebrew-core/teams","hooks_url":"https://api.github.com/repos/fbiville/homebrew-core/hooks","issue_events_url":"https://api.github.com/repos/fbiville/homebrew-core/issues/events{/number}","events_url":"https://api.github.com/repos/fbiville/homebrew-core/events","assignees_url":"https://api.github.com/repos/fbiville/homebrew-core/assignees{/user}","branches_url":"https://api.github.com/repos/fbiville/homebrew-core/branches{/branch}","tags_url":"https://api.github.com/repos/fbiville/homebrew-core/tags","blobs_url":"https://api.github.com/repos/fbiville/homebrew-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/fbiville/homebrew-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/fbiville/homebrew-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/fbiville/homebrew-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/fbiville/homebrew-core/statuses/{sha}","languages_url":"https://api.github.com/repos/fbiville/homebrew-core/languages","stargazers_url":"https://api.github.com/repos/fbiville/homebrew-core/stargazers","contributors_url":"https://api.github.com/repos/fbiville/homebrew-core/contributors","subscribers_url":"https://api.github.com/repos/fbiville/homebrew-core/subscribers","subscription_url":"https://api.github.com/repos/fbiville/homebrew-core/subscription","commits_url":"https://api.github.com/repos/fbiville/homebrew-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/fbiville/homebrew-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/fbiville/homebrew-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/fbiville/homebrew-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/fbiville/homebrew-core/contents/{+path}","compare_url":"https://api.github.com/repos/fbiville/homebrew-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/fbiville/homebrew-core/merges","archive_url":"https://api.github.com/repos/fbiville/homebrew-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/fbiville/homebrew-core/downloads","issues_url":"https://api.github.com/repos/fbiville/homebrew-core/issues{/number}","pulls_url":"https://api.github.com/repos/fbiville/homebrew-core/pulls{/number}","milestones_url":"https://api.github.com/repos/fbiville/homebrew-core/milestones{/number}","notifications_url":"https://api.github.com/repos/fbiville/homebrew-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/fbiville/homebrew-core/labels{/name}","releases_url":"https://api.github.com/repos/fbiville/homebrew-core/releases{/id}","deployments_url":"https://api.github.com/repos/fbiville/homebrew-core/deployments","created_at":"2016-04-21T12:42:14Z","updated_at":"2016-04-21T12:42:28Z","pushed_at":"2016-04-23T10:27:29Z","git_url":"git://github.com/fbiville/homebrew-core.git","ssh_url":"git@github.com:fbiville/homebrew-core.git","clone_url":"https://github.com/fbiville/homebrew-core.git","svn_url":"https://github.com/fbiville/homebrew-core","homepage":"http://brew.sh","size":57871,"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":"9904ad36db248ba69c30c545d47b83561f23e26c","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":52855516,"name":"homebrew-core","full_name":"Homebrew/homebrew-core","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-core","description":":beers: Core formulae for the Homebrew package manager","fork":false,"url":"https://api.github.com/repos/Homebrew/homebrew-core","forks_url":"https://api.github.com/repos/Homebrew/homebrew-core/forks","keys_url":"https://api.github.com/repos/Homebrew/homebrew-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Homebrew/homebrew-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Homebrew/homebrew-core/teams","hooks_url":"https://api.github.com/repos/Homebrew/homebrew-core/hooks","issue_events_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/events{/number}","events_url":"https://api.github.com/repos/Homebrew/homebrew-core/events","assignees_url":"https://api.github.com/repos/Homebrew/homebrew-core/assignees{/user}","branches_url":"https://api.github.com/repos/Homebrew/homebrew-core/branches{/branch}","tags_url":"https://api.github.com/repos/Homebrew/homebrew-core/tags","blobs_url":"https://api.github.com/repos/Homebrew/homebrew-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Homebrew/homebrew-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Homebrew/homebrew-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/Homebrew/homebrew-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Homebrew/homebrew-core/statuses/{sha}","languages_url":"https://api.github.com/repos/Homebrew/homebrew-core/languages","stargazers_url":"https://api.github.com/repos/Homebrew/homebrew-core/stargazers","contributors_url":"https://api.github.com/repos/Homebrew/homebrew-core/contributors","subscribers_url":"https://api.github.com/repos/Homebrew/homebrew-core/subscribers","subscription_url":"https://api.github.com/repos/Homebrew/homebrew-core/subscription","commits_url":"https://api.github.com/repos/Homebrew/homebrew-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/Homebrew/homebrew-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/Homebrew/homebrew-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/Homebrew/homebrew-core/contents/{+path}","compare_url":"https://api.github.com/repos/Homebrew/homebrew-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Homebrew/homebrew-core/merges","archive_url":"https://api.github.com/repos/Homebrew/homebrew-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Homebrew/homebrew-core/downloads","issues_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues{/number}","pulls_url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls{/number}","milestones_url":"https://api.github.com/repos/Homebrew/homebrew-core/milestones{/number}","notifications_url":"https://api.github.com/repos/Homebrew/homebrew-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Homebrew/homebrew-core/labels{/name}","releases_url":"https://api.github.com/repos/Homebrew/homebrew-core/releases{/id}","deployments_url":"https://api.github.com/repos/Homebrew/homebrew-core/deployments","created_at":"2016-03-01T06:58:36Z","updated_at":"2016-04-23T08:17:59Z","pushed_at":"2016-04-23T12:18:53Z","git_url":"git://github.com/Homebrew/homebrew-core.git","ssh_url":"git@github.com:Homebrew/homebrew-core.git","clone_url":"https://github.com/Homebrew/homebrew-core.git","svn_url":"https://github.com/Homebrew/homebrew-core","homepage":"http://brew.sh","size":59968,"stargazers_count":219,"watchers_count":219,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":314,"mirror_url":null,"open_issues_count":41,"forks":314,"open_issues":41,"watchers":219,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/509"},"html":{"href":"https://github.com/Homebrew/homebrew-core/pull/509"},"issue":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/issues/509"},"comments":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/issues/509/comments"},"review_comments":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/509/comments"},"review_comment":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/509/commits"},"statuses":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/statuses/f6e91230eb66a445690b254bf0976b041f04ecfa"}}}}