{"action":"created","comment":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/26453196","id":26453196,"diff_hunk":"@@ -0,0 +1,52 @@\n+require \"formula\"\n+\n+# Two requests are needed to download from Tigris.org. In the first, the server\n+# provides a cookie and then redirects the client to a servlet. The servlet\n+# requires this cookie, or it will send the client in a redirect loop.\n+#\n+# The Homebrew CurlDownloadStrategy does not store cookies, so this subclass\n+# adds the -c flag and a temporary cookie storage file.\n+#\n+# This relies on internal details of the CurlDownloadStrategy, so expect it to\n+# break.\n+class CurlWithCookiesDownloadStrategy < CurlDownloadStrategy\n+  def cookie_path\n+    @cookie_path ||= Pathname.new(\"#{self.tarball_path}.cookies\")\n+  end\n+\n+  def _fetch\n+    curl @url, \"-c\", cookie_path, \"-C\", self.downloaded_size, \"-o\",","path":"Library/Formula/delta.rb","position":18,"original_position":18,"commit_id":"018389a622a6514f97e51b2c4d20def8fbe28286","original_commit_id":"018389a622a6514f97e51b2c4d20def8fbe28286","user":{"login":"tamird","id":1535036,"avatar_url":"https://avatars.githubusercontent.com/u/1535036?v=3","gravatar_id":"","url":"https://api.github.com/users/tamird","html_url":"https://github.com/tamird","followers_url":"https://api.github.com/users/tamird/followers","following_url":"https://api.github.com/users/tamird/following{/other_user}","gists_url":"https://api.github.com/users/tamird/gists{/gist_id}","starred_url":"https://api.github.com/users/tamird/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tamird/subscriptions","organizations_url":"https://api.github.com/users/tamird/orgs","repos_url":"https://api.github.com/users/tamird/repos","events_url":"https://api.github.com/users/tamird/events{/privacy}","received_events_url":"https://api.github.com/users/tamird/received_events","type":"User","site_admin":false},"body":"@erickt `downloaded_size` and `temporary_path` are private methods - you'll need to call them with an implicit receiver, that is, without the `self.`.","created_at":"2015-03-15T22:19:51Z","updated_at":"2015-03-15T22:19:51Z","html_url":"https://github.com/Homebrew/homebrew/pull/34220#discussion_r26453196","pull_request_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/34220","_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments/26453196"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/34220#discussion_r26453196"},"pull_request":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/34220"}}},"pull_request":{"url":"https://api.github.com/repos/Homebrew/homebrew/pulls/34220","id":24494148,"html_url":"https://github.com/Homebrew/homebrew/pull/34220","diff_url":"https://github.com/Homebrew/homebrew/pull/34220.diff","patch_url":"https://github.com/Homebrew/homebrew/pull/34220.patch","issue_url":"https://api.github.com/repos/Homebrew/homebrew/issues/34220","number":34220,"state":"open","locked":false,"title":"Add support for delta and creduce","user":{"login":"erickt","id":84711,"avatar_url":"https://avatars.githubusercontent.com/u/84711?v=3","gravatar_id":"","url":"https://api.github.com/users/erickt","html_url":"https://github.com/erickt","followers_url":"https://api.github.com/users/erickt/followers","following_url":"https://api.github.com/users/erickt/following{/other_user}","gists_url":"https://api.github.com/users/erickt/gists{/gist_id}","starred_url":"https://api.github.com/users/erickt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erickt/subscriptions","organizations_url":"https://api.github.com/users/erickt/orgs","repos_url":"https://api.github.com/users/erickt/repos","events_url":"https://api.github.com/users/erickt/events{/privacy}","received_events_url":"https://api.github.com/users/erickt/received_events","type":"User","site_admin":false},"body":"These formulas are derived from #22041. It changes from using `=> :perl` dependencies to instead downloading a specific tarball, just like other formulas that use perl. This hopefully addresses the concerns that caused that PR to be rejected in the past.","created_at":"2014-11-15T21:15:19Z","updated_at":"2015-03-15T22:19:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f0e30eebe76910ca1dab819747952f659972678b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/34220/commits","review_comments_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/34220/comments","review_comment_url":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Homebrew/homebrew/issues/34220/comments","statuses_url":"https://api.github.com/repos/Homebrew/homebrew/statuses/018389a622a6514f97e51b2c4d20def8fbe28286","head":{"label":"erickt:delta-and-creduce","ref":"delta-and-creduce","sha":"018389a622a6514f97e51b2c4d20def8fbe28286","user":{"login":"erickt","id":84711,"avatar_url":"https://avatars.githubusercontent.com/u/84711?v=3","gravatar_id":"","url":"https://api.github.com/users/erickt","html_url":"https://github.com/erickt","followers_url":"https://api.github.com/users/erickt/followers","following_url":"https://api.github.com/users/erickt/following{/other_user}","gists_url":"https://api.github.com/users/erickt/gists{/gist_id}","starred_url":"https://api.github.com/users/erickt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erickt/subscriptions","organizations_url":"https://api.github.com/users/erickt/orgs","repos_url":"https://api.github.com/users/erickt/repos","events_url":"https://api.github.com/users/erickt/events{/privacy}","received_events_url":"https://api.github.com/users/erickt/received_events","type":"User","site_admin":false},"repo":{"id":6234453,"name":"homebrew","full_name":"erickt/homebrew","owner":{"login":"erickt","id":84711,"avatar_url":"https://avatars.githubusercontent.com/u/84711?v=3","gravatar_id":"","url":"https://api.github.com/users/erickt","html_url":"https://github.com/erickt","followers_url":"https://api.github.com/users/erickt/followers","following_url":"https://api.github.com/users/erickt/following{/other_user}","gists_url":"https://api.github.com/users/erickt/gists{/gist_id}","starred_url":"https://api.github.com/users/erickt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/erickt/subscriptions","organizations_url":"https://api.github.com/users/erickt/orgs","repos_url":"https://api.github.com/users/erickt/repos","events_url":"https://api.github.com/users/erickt/events{/privacy}","received_events_url":"https://api.github.com/users/erickt/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/erickt/homebrew","description":"The missing package manager for OS X.","fork":true,"url":"https://api.github.com/repos/erickt/homebrew","forks_url":"https://api.github.com/repos/erickt/homebrew/forks","keys_url":"https://api.github.com/repos/erickt/homebrew/keys{/key_id}","collaborators_url":"https://api.github.com/repos/erickt/homebrew/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/erickt/homebrew/teams","hooks_url":"https://api.github.com/repos/erickt/homebrew/hooks","issue_events_url":"https://api.github.com/repos/erickt/homebrew/issues/events{/number}","events_url":"https://api.github.com/repos/erickt/homebrew/events","assignees_url":"https://api.github.com/repos/erickt/homebrew/assignees{/user}","branches_url":"https://api.github.com/repos/erickt/homebrew/branches{/branch}","tags_url":"https://api.github.com/repos/erickt/homebrew/tags","blobs_url":"https://api.github.com/repos/erickt/homebrew/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/erickt/homebrew/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/erickt/homebrew/git/refs{/sha}","trees_url":"https://api.github.com/repos/erickt/homebrew/git/trees{/sha}","statuses_url":"https://api.github.com/repos/erickt/homebrew/statuses/{sha}","languages_url":"https://api.github.com/repos/erickt/homebrew/languages","stargazers_url":"https://api.github.com/repos/erickt/homebrew/stargazers","contributors_url":"https://api.github.com/repos/erickt/homebrew/contributors","subscribers_url":"https://api.github.com/repos/erickt/homebrew/subscribers","subscription_url":"https://api.github.com/repos/erickt/homebrew/subscription","commits_url":"https://api.github.com/repos/erickt/homebrew/commits{/sha}","git_commits_url":"https://api.github.com/repos/erickt/homebrew/git/commits{/sha}","comments_url":"https://api.github.com/repos/erickt/homebrew/comments{/number}","issue_comment_url":"https://api.github.com/repos/erickt/homebrew/issues/comments{/number}","contents_url":"https://api.github.com/repos/erickt/homebrew/contents/{+path}","compare_url":"https://api.github.com/repos/erickt/homebrew/compare/{base}...{head}","merges_url":"https://api.github.com/repos/erickt/homebrew/merges","archive_url":"https://api.github.com/repos/erickt/homebrew/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/erickt/homebrew/downloads","issues_url":"https://api.github.com/repos/erickt/homebrew/issues{/number}","pulls_url":"https://api.github.com/repos/erickt/homebrew/pulls{/number}","milestones_url":"https://api.github.com/repos/erickt/homebrew/milestones{/number}","notifications_url":"https://api.github.com/repos/erickt/homebrew/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/erickt/homebrew/labels{/name}","releases_url":"https://api.github.com/repos/erickt/homebrew/releases{/id}","created_at":"2012-10-15T21:13:14Z","updated_at":"2013-01-12T16:42:26Z","pushed_at":"2014-11-15T23:31:55Z","git_url":"git://github.com/erickt/homebrew.git","ssh_url":"git@github.com:erickt/homebrew.git","clone_url":"https://github.com/erickt/homebrew.git","svn_url":"https://github.com/erickt/homebrew","homepage":"http://mxcl.github.com/homebrew","size":47785,"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":"d21ccee108fc56d56f912b10e48969c373356cb9","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-03-15T21:07:19Z","pushed_at":"2015-03-15T17:43:16Z","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":1465073,"stargazers_count":21889,"watchers_count":21889,"language":"Ruby","has_issues":true,"has_downloads":false,"has_wiki":true,"has_pages":true,"forks_count":10950,"mirror_url":null,"open_issues_count":350,"forks":10950,"open_issues":350,"watchers":21889,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/34220"},"html":{"href":"https://github.com/Homebrew/homebrew/pull/34220"},"issue":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/34220"},"comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/issues/34220/comments"},"review_comments":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/34220/comments"},"review_comment":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Homebrew/homebrew/pulls/34220/commits"},"statuses":{"href":"https://api.github.com/repos/Homebrew/homebrew/statuses/018389a622a6514f97e51b2c4d20def8fbe28286"}}}}