{"action":"created","comment":{"url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/comments/158078409","pull_request_review_id":84828895,"id":158078409,"diff_hunk":"@@ -0,0 +1,44 @@\n+class Libjwt < Formula\n+  desc \"JWT C Library\"\n+  homepage \"https://benmcollins.github.io/libjwt/\"\n+  url \"https://github.com/benmcollins/libjwt/archive/v1.8.0.tar.gz\"\n+  sha256 \"e97c15c14dbd49d5ba435cb26e06e6cdd6e32cf9f0be6b6e9a2d2d330923ea17\"\n+\n+  depends_on \"autoconf\" => :build\n+  depends_on \"pkg-config\" => :build\n+  depends_on \"automake\" => :build\n+  depends_on \"libtool\" => :build\n+  depends_on \"openssl\"\n+  depends_on \"jansson\"\n+  depends_on \"check\" => :build\n+\n+  def install\n+    system \"autoreconf\", \"-v\", \"-i\"\n+    system \"./configure\", \"--prefix=#{prefix}\"\n+    system \"make\", \"all\"\n+    system \"make\", \"check\"\n+    system \"make\", \"install\"\n+  end\n+\n+  test do\n+    (testpath/\"test.c\").write <<~EOS\n+      #include <stdio.h>\n+      #include <stdlib.h>\n+      #include <errno.h>\n+\n+      #include <jwt.h>\n+\n+      int main() {\n+        jwt_t *jwt = NULL;\n+        int token = 0;\n+\n+        token = jwt_new(&jwt);\n+        if (token != 0) abort();\n+\n+        return 0;\n+      }\n+    EOS\n+    system ENV.cc, \"test.c\", \"-L#{lib}\", \"-o\", \"test\"","path":"Formula/libjwt.rb","position":null,"original_position":41,"commit_id":"9f4dc09f2812e3e54f4da8829dffc5ea41789baf","original_commit_id":"892cf87301df2bd28431d790f035211587000523","user":{"login":"jose-lpa","id":2226098,"avatar_url":"https://avatars3.githubusercontent.com/u/2226098?v=4","gravatar_id":"","url":"https://api.github.com/users/jose-lpa","html_url":"https://github.com/jose-lpa","followers_url":"https://api.github.com/users/jose-lpa/followers","following_url":"https://api.github.com/users/jose-lpa/following{/other_user}","gists_url":"https://api.github.com/users/jose-lpa/gists{/gist_id}","starred_url":"https://api.github.com/users/jose-lpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jose-lpa/subscriptions","organizations_url":"https://api.github.com/users/jose-lpa/orgs","repos_url":"https://api.github.com/users/jose-lpa/repos","events_url":"https://api.github.com/users/jose-lpa/events{/privacy}","received_events_url":"https://api.github.com/users/jose-lpa/received_events","type":"User","site_admin":false},"body":"> `-ljwt`\r\n\r\nI have been struggling for a while with that one! Couldn't figure it out myself. Thank you!","created_at":"2017-12-20T16:55:12Z","updated_at":"2017-12-20T16:55:12Z","html_url":"https://github.com/Homebrew/homebrew-core/pull/21882#discussion_r158078409","pull_request_url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/21882","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/comments/158078409"},"html":{"href":"https://github.com/Homebrew/homebrew-core/pull/21882#discussion_r158078409"},"pull_request":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/21882"}},"in_reply_to_id":158047033},"pull_request":{"url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/21882","id":159132894,"html_url":"https://github.com/Homebrew/homebrew-core/pull/21882","diff_url":"https://github.com/Homebrew/homebrew-core/pull/21882.diff","patch_url":"https://github.com/Homebrew/homebrew-core/pull/21882.patch","issue_url":"https://api.github.com/repos/Homebrew/homebrew-core/issues/21882","number":21882,"state":"open","locked":false,"title":"libjwt 1.8.0 (new formula)","user":{"login":"jose-lpa","id":2226098,"avatar_url":"https://avatars3.githubusercontent.com/u/2226098?v=4","gravatar_id":"","url":"https://api.github.com/users/jose-lpa","html_url":"https://github.com/jose-lpa","followers_url":"https://api.github.com/users/jose-lpa/followers","following_url":"https://api.github.com/users/jose-lpa/following{/other_user}","gists_url":"https://api.github.com/users/jose-lpa/gists{/gist_id}","starred_url":"https://api.github.com/users/jose-lpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jose-lpa/subscriptions","organizations_url":"https://api.github.com/users/jose-lpa/orgs","repos_url":"https://api.github.com/users/jose-lpa/repos","events_url":"https://api.github.com/users/jose-lpa/events{/privacy}","received_events_url":"https://api.github.com/users/jose-lpa/received_events","type":"User","site_admin":false},"body":"C library for JSON Web Tokens, by Ben Collins.\r\nGitHub homepage: https://github.com/benmcollins/libjwt","created_at":"2017-12-19T10:40:30Z","updated_at":"2017-12-20T16:55:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"01e9427b90019a43eb59cd0736573495fa88b0cc","assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/21882/commits","review_comments_url":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/21882/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/21882/comments","statuses_url":"https://api.github.com/repos/Homebrew/homebrew-core/statuses/9f4dc09f2812e3e54f4da8829dffc5ea41789baf","head":{"label":"jose-lpa:libjwt","ref":"libjwt","sha":"9f4dc09f2812e3e54f4da8829dffc5ea41789baf","user":{"login":"jose-lpa","id":2226098,"avatar_url":"https://avatars3.githubusercontent.com/u/2226098?v=4","gravatar_id":"","url":"https://api.github.com/users/jose-lpa","html_url":"https://github.com/jose-lpa","followers_url":"https://api.github.com/users/jose-lpa/followers","following_url":"https://api.github.com/users/jose-lpa/following{/other_user}","gists_url":"https://api.github.com/users/jose-lpa/gists{/gist_id}","starred_url":"https://api.github.com/users/jose-lpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jose-lpa/subscriptions","organizations_url":"https://api.github.com/users/jose-lpa/orgs","repos_url":"https://api.github.com/users/jose-lpa/repos","events_url":"https://api.github.com/users/jose-lpa/events{/privacy}","received_events_url":"https://api.github.com/users/jose-lpa/received_events","type":"User","site_admin":false},"repo":{"id":114748402,"name":"homebrew-core","full_name":"jose-lpa/homebrew-core","owner":{"login":"jose-lpa","id":2226098,"avatar_url":"https://avatars3.githubusercontent.com/u/2226098?v=4","gravatar_id":"","url":"https://api.github.com/users/jose-lpa","html_url":"https://github.com/jose-lpa","followers_url":"https://api.github.com/users/jose-lpa/followers","following_url":"https://api.github.com/users/jose-lpa/following{/other_user}","gists_url":"https://api.github.com/users/jose-lpa/gists{/gist_id}","starred_url":"https://api.github.com/users/jose-lpa/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jose-lpa/subscriptions","organizations_url":"https://api.github.com/users/jose-lpa/orgs","repos_url":"https://api.github.com/users/jose-lpa/repos","events_url":"https://api.github.com/users/jose-lpa/events{/privacy}","received_events_url":"https://api.github.com/users/jose-lpa/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jose-lpa/homebrew-core","description":"🍻 Default formulae for the missing package manager for macOS","fork":true,"url":"https://api.github.com/repos/jose-lpa/homebrew-core","forks_url":"https://api.github.com/repos/jose-lpa/homebrew-core/forks","keys_url":"https://api.github.com/repos/jose-lpa/homebrew-core/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jose-lpa/homebrew-core/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jose-lpa/homebrew-core/teams","hooks_url":"https://api.github.com/repos/jose-lpa/homebrew-core/hooks","issue_events_url":"https://api.github.com/repos/jose-lpa/homebrew-core/issues/events{/number}","events_url":"https://api.github.com/repos/jose-lpa/homebrew-core/events","assignees_url":"https://api.github.com/repos/jose-lpa/homebrew-core/assignees{/user}","branches_url":"https://api.github.com/repos/jose-lpa/homebrew-core/branches{/branch}","tags_url":"https://api.github.com/repos/jose-lpa/homebrew-core/tags","blobs_url":"https://api.github.com/repos/jose-lpa/homebrew-core/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jose-lpa/homebrew-core/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jose-lpa/homebrew-core/git/refs{/sha}","trees_url":"https://api.github.com/repos/jose-lpa/homebrew-core/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jose-lpa/homebrew-core/statuses/{sha}","languages_url":"https://api.github.com/repos/jose-lpa/homebrew-core/languages","stargazers_url":"https://api.github.com/repos/jose-lpa/homebrew-core/stargazers","contributors_url":"https://api.github.com/repos/jose-lpa/homebrew-core/contributors","subscribers_url":"https://api.github.com/repos/jose-lpa/homebrew-core/subscribers","subscription_url":"https://api.github.com/repos/jose-lpa/homebrew-core/subscription","commits_url":"https://api.github.com/repos/jose-lpa/homebrew-core/commits{/sha}","git_commits_url":"https://api.github.com/repos/jose-lpa/homebrew-core/git/commits{/sha}","comments_url":"https://api.github.com/repos/jose-lpa/homebrew-core/comments{/number}","issue_comment_url":"https://api.github.com/repos/jose-lpa/homebrew-core/issues/comments{/number}","contents_url":"https://api.github.com/repos/jose-lpa/homebrew-core/contents/{+path}","compare_url":"https://api.github.com/repos/jose-lpa/homebrew-core/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jose-lpa/homebrew-core/merges","archive_url":"https://api.github.com/repos/jose-lpa/homebrew-core/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jose-lpa/homebrew-core/downloads","issues_url":"https://api.github.com/repos/jose-lpa/homebrew-core/issues{/number}","pulls_url":"https://api.github.com/repos/jose-lpa/homebrew-core/pulls{/number}","milestones_url":"https://api.github.com/repos/jose-lpa/homebrew-core/milestones{/number}","notifications_url":"https://api.github.com/repos/jose-lpa/homebrew-core/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jose-lpa/homebrew-core/labels{/name}","releases_url":"https://api.github.com/repos/jose-lpa/homebrew-core/releases{/id}","deployments_url":"https://api.github.com/repos/jose-lpa/homebrew-core/deployments","created_at":"2017-12-19T09:55:35Z","updated_at":"2017-12-19T09:56:09Z","pushed_at":"2017-12-20T16:49:40Z","git_url":"git://github.com/jose-lpa/homebrew-core.git","ssh_url":"git@github.com:jose-lpa/homebrew-core.git","clone_url":"https://github.com/jose-lpa/homebrew-core.git","svn_url":"https://github.com/jose-lpa/homebrew-core","homepage":"https://brew.sh","size":160641,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":0,"license":null,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"Homebrew:master","ref":"master","sha":"40dbff7d887a50972fd0ba12686e0c31951661b9","user":{"login":"Homebrew","id":1503512,"avatar_url":"https://avatars2.githubusercontent.com/u/1503512?v=4","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://avatars2.githubusercontent.com/u/1503512?v=4","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":"🍻 Default formulae for the missing package manager for macOS","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":"2017-12-20T13:49:37Z","pushed_at":"2017-12-20T16:49:43Z","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":"https://brew.sh","size":161008,"stargazers_count":2701,"watchers_count":2701,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3651,"mirror_url":null,"archived":false,"open_issues_count":87,"license":{"key":"bsd-2-clause","name":"BSD 2-clause \"Simplified\" License","spdx_id":"BSD-2-Clause","url":"https://api.github.com/licenses/bsd-2-clause"},"forks":3651,"open_issues":87,"watchers":2701,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/21882"},"html":{"href":"https://github.com/Homebrew/homebrew-core/pull/21882"},"issue":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/issues/21882"},"comments":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/issues/21882/comments"},"review_comments":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/pulls/21882/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/21882/commits"},"statuses":{"href":"https://api.github.com/repos/Homebrew/homebrew-core/statuses/9f4dc09f2812e3e54f4da8829dffc5ea41789baf"}},"author_association":"NONE"}}
{"actor":{"display_login":"jose-lpa"}}