{"action":"created","comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/24296196","id":24296196,"diff_hunk":"@@ -0,0 +1,70 @@\n+require \"FileUtils\"\n+\n+class Websockify < Formula\n+  homepage \"https://github.com/kanaka/websockify\"\n+  url \"https://github.com/kanaka/websockify/archive/v0.6.0.tar.gz\"\n+  sha1 \"f2bffebc9e4d94ad3a329638bee63e899eaad9c0\"\n+\n+  depends_on :python if MacOS.version <= :snow_leopard\n+\n+  def install\n+    system \"make\"\n+\n+    Dir.chdir(\"other\") do\n+      system \"make\"\n+    end\n+\n+    ENV.prepend_create_path \"PYTHONPATH\", libexec/\"lib/python2.7/site-packages\"\n+    system \"python\", *Language::Python.setup_install_args(libexec)\n+    bin.install Dir[\"#{libexec}/bin/*\"]\n+    bin.env_script_all_files(libexec/\"bin\", :PYTHONPATH => ENV[\"PYTHONPATH\"])\n+\n+    # Move this so it is not installed with the other docs\n+    move 'docs/websockify.1', 'websockify.1'\n+    (share+\"man\"+\"man1\").install 'websockify.1'\n+    (doc+\"websockify\").install 'docs'\n+\n+    # Upstream Bug: Not named '.dylib'\n+    lib.install 'rebind.so'\n+\n+    # Install C version of websockify\n+    move 'other/websockify', 'other/websockify-c'\n+    bin.install 'other/websockify-c'\n+\n+    # Clean up before installing client\n+    Dir.mkdir 'client'\n+    move 'wsirc.html', 'client/wsirc.html'\n+    move 'wstelnet.html', 'client/wstelnet.html'\n+    rmdir 'include/web-socket-js-project'","path":"Library/Formula/websockify.rb","position":null,"original_position":38,"commit_id":"5d41a5c3cad581740556144f7a50b15fa1966217","original_commit_id":"9b97a5a8d59414ed73c9d5cb6ae86ab0a139225b","user":{"login":"raphaelcohn","id":1307097,"avatar_url":"https://avatars.githubusercontent.com/u/1307097?v=3","gravatar_id":"","url":"https://api.github.com/users/raphaelcohn","html_url":"https://github.com/raphaelcohn","followers_url":"https://api.github.com/users/raphaelcohn/followers","following_url":"https://api.github.com/users/raphaelcohn/following{/other_user}","gists_url":"https://api.github.com/users/raphaelcohn/gists{/gist_id}","starred_url":"https://api.github.com/users/raphaelcohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphaelcohn/subscriptions","organizations_url":"https://api.github.com/users/raphaelcohn/orgs","repos_url":"https://api.github.com/users/raphaelcohn/repos","events_url":"https://api.github.com/users/raphaelcohn/events{/privacy}","received_events_url":"https://api.github.com/users/raphaelcohn/received_events","type":"User","site_admin":false},"body":"Exactly. I want it to fail.","created_at":"2015-02-08T06:09:12Z","updated_at":"2015-02-08T06:09:12Z","html_url":"https://github.com/Homebrew/homebrew/pull/36643#discussion_r24296196","pull_request_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/36643","_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/24296196"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/36643#discussion_r24296196"},"pull_request":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/36643"}}},"pull_request":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/36643","id":28875919,"html_url":"https://github.com/Homebrew/homebrew/pull/36643","diff_url":"https://github.com/Homebrew/homebrew/pull/36643.diff","patch_url":"https://github.com/Homebrew/homebrew/pull/36643.patch","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/36643","number":36643,"state":"open","locked":false,"title":"New Formula: websockify 0.6.0","user":{"login":"raphaelcohn","id":1307097,"avatar_url":"https://avatars.githubusercontent.com/u/1307097?v=3","gravatar_id":"","url":"https://api.github.com/users/raphaelcohn","html_url":"https://github.com/raphaelcohn","followers_url":"https://api.github.com/users/raphaelcohn/followers","following_url":"https://api.github.com/users/raphaelcohn/following{/other_user}","gists_url":"https://api.github.com/users/raphaelcohn/gists{/gist_id}","starred_url":"https://api.github.com/users/raphaelcohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphaelcohn/subscriptions","organizations_url":"https://api.github.com/users/raphaelcohn/orgs","repos_url":"https://api.github.com/users/raphaelcohn/repos","events_url":"https://api.github.com/users/raphaelcohn/events{/privacy}","received_events_url":"https://api.github.com/users/raphaelcohn/received_events","type":"User","site_admin":false},"body":"Websockify is a suite of programs to bridge WebSockets to TCP\r\nimplemented in different languages. It also includes support\r\nresources to simplify WebSocket programming for some older\r\nbrowsers.","created_at":"2015-02-08T05:34:23Z","updated_at":"2015-02-08T06:09:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f35f0a14e8f0bf731e459ba82292403ef22d5458","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/36643/commits","review_comments_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/36643/comments","review_comment_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/{number}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/36643/comments","statuses_url":"https://api.github.com/repos/Homebrew/homebrew/statuses/5d41a5c3cad581740556144f7a50b15fa1966217","head":{"label":"raphaelcohn:websockify","ref":"websockify","sha":"5d41a5c3cad581740556144f7a50b15fa1966217","user":{"login":"raphaelcohn","id":1307097,"avatar_url":"https://avatars.githubusercontent.com/u/1307097?v=3","gravatar_id":"","url":"https://api.github.com/users/raphaelcohn","html_url":"https://github.com/raphaelcohn","followers_url":"https://api.github.com/users/raphaelcohn/followers","following_url":"https://api.github.com/users/raphaelcohn/following{/other_user}","gists_url":"https://api.github.com/users/raphaelcohn/gists{/gist_id}","starred_url":"https://api.github.com/users/raphaelcohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphaelcohn/subscriptions","organizations_url":"https://api.github.com/users/raphaelcohn/orgs","repos_url":"https://api.github.com/users/raphaelcohn/repos","events_url":"https://api.github.com/users/raphaelcohn/events{/privacy}","received_events_url":"https://api.github.com/users/raphaelcohn/received_events","type":"User","site_admin":false},"repo":{"id":30445869,"name":"homebrew","full_name":"raphaelcohn/homebrew","owner":{"login":"raphaelcohn","id":1307097,"avatar_url":"https://avatars.githubusercontent.com/u/1307097?v=3","gravatar_id":"","url":"https://api.github.com/users/raphaelcohn","html_url":"https://github.com/raphaelcohn","followers_url":"https://api.github.com/users/raphaelcohn/followers","following_url":"https://api.github.com/users/raphaelcohn/following{/other_user}","gists_url":"https://api.github.com/users/raphaelcohn/gists{/gist_id}","starred_url":"https://api.github.com/users/raphaelcohn/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/raphaelcohn/subscriptions","organizations_url":"https://api.github.com/users/raphaelcohn/orgs","repos_url":"https://api.github.com/users/raphaelcohn/repos","events_url":"https://api.github.com/users/raphaelcohn/events{/privacy}","received_events_url":"https://api.github.com/users/raphaelcohn/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/raphaelcohn/homebrew","description":"The missing package manager for OS X.","fork":true,"url":"https://api.github.com/repos/raphaelcohn/homebrew","forks_url":"https://api.github.com/repos/raphaelcohn/homebrew/forks","keys_url":"https://api.github.com/repos/raphaelcohn/homebrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/raphaelcohn/homebrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/raphaelcohn/homebrew/teams","hooks_url":"https://api.github.com/repos/raphaelcohn/homebrew/hooks","issue_events_url":"https://api.github.com/repos/raphaelcohn/homebrew/issues/events{/number}","events_url":"https://api.github.com/repos/raphaelcohn/homebrew/events","assignees_url":"https://api.github.com/repos/raphaelcohn/homebrew/assignees{/user}","branches_url":"https://api.github.com/repos/raphaelcohn/homebrew/branches{/branch}","tags_url":"https://api.github.com/repos/raphaelcohn/homebrew/tags","blobs_url":"https://api.github.com/repos/raphaelcohn/homebrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/raphaelcohn/homebrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/raphaelcohn/homebrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/raphaelcohn/homebrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/raphaelcohn/homebrew/statuses/{sha}","languages_url":"https://api.github.com/repos/raphaelcohn/homebrew/languages","stargazers_url":"https://api.github.com/repos/raphaelcohn/homebrew/stargazers","contributors_url":"https://api.github.com/repos/raphaelcohn/homebrew/contributors","subscribers_url":"https://api.github.com/repos/raphaelcohn/homebrew/subscribers","subscription_url":"https://api.github.com/repos/raphaelcohn/homebrew/subscription","commits_url":"https://api.github.com/repos/raphaelcohn/homebrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/raphaelcohn/homebrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/raphaelcohn/homebrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/raphaelcohn/homebrew/issues/comments/{number}","contents_url":"https://api.github.com/repos/raphaelcohn/homebrew/contents/{+path}","compare_url":"https://api.github.com/repos/raphaelcohn/homebrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/raphaelcohn/homebrew/merges","archive_url":"https://api.github.com/repos/raphaelcohn/homebrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/raphaelcohn/homebrew/downloads","issues_url":"https://api.github.com/repos/raphaelcohn/homebrew/issues{/number}","pulls_url":"https://api.github.com/repos/raphaelcohn/homebrew/pulls{/number}","milestones_url":"https://api.github.com/repos/raphaelcohn/homebrew/milestones{/number}","notifications_url":"https://api.github.com/repos/raphaelcohn/homebrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/raphaelcohn/homebrew/labels{/name}","releases_url":"https://api.github.com/repos/raphaelcohn/homebrew/releases{/id}","created_at":"2015-02-07T05:09:55Z","updated_at":"2015-02-07T05:10:09Z","pushed_at":"2015-02-08T05:58:03Z","git_url":"git://github.com/raphaelcohn/homebrew.git","ssh_url":"git@github.com:raphaelcohn/homebrew.git","clone_url":"https://github.com/raphaelcohn/homebrew.git","svn_url":"https://github.com/raphaelcohn/homebrew","homepage":"http://brew.sh","size":54457,"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":"9a0fbf6a54a84960499c9505bdefa96c331be7ec","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":"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-02-08T05:47:58Z","pushed_at":"2015-02-07T20:43:36Z","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":1172062,"stargazers_count":21387,"watchers_count":21387,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":10687,"mirror_url":null,"open_issues_count":290,"forks":10687,"open_issues":290,"watchers":21387,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/36643"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/36643"},"issue":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/36643"},"comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/36643/comments"},"review_comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/36643/comments"},"review_comment":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/36643/commits"},"statuses":{"href":"https://api.github.com/repos/Homebrew/homebrew/statuses/5d41a5c3cad581740556144f7a50b15fa1966217"}}}}