{"action":"opened","number":4,"pull_request":{"url":"https://api.github.com/repos/yugui/ruby-jsonnet/pulls/4","id":128267936,"html_url":"https://github.com/yugui/ruby-jsonnet/pull/4","diff_url":"https://github.com/yugui/ruby-jsonnet/pull/4.diff","patch_url":"https://github.com/yugui/ruby-jsonnet/pull/4.patch","issue_url":"https://api.github.com/repos/yugui/ruby-jsonnet/issues/4","number":4,"state":"open","locked":false,"title":"Add a top level API","user":{"login":"kevindew","id":282717,"avatar_url":"https://avatars3.githubusercontent.com/u/282717?v=3","gravatar_id":"","url":"https://api.github.com/users/kevindew","html_url":"https://github.com/kevindew","followers_url":"https://api.github.com/users/kevindew/followers","following_url":"https://api.github.com/users/kevindew/following{/other_user}","gists_url":"https://api.github.com/users/kevindew/gists{/gist_id}","starred_url":"https://api.github.com/users/kevindew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevindew/subscriptions","organizations_url":"https://api.github.com/users/kevindew/orgs","repos_url":"https://api.github.com/users/kevindew/repos","events_url":"https://api.github.com/users/kevindew/events{/privacy}","received_events_url":"https://api.github.com/users/kevindew/received_events","type":"User","site_admin":false},"body":"This PR aims to make it easier to use Jsonnet in Ruby projects by adding a simpler API.\r\n\r\nIt adds two module functions to `Jsonnet` of `.parse` and `.load` (naming inspired by [Ruby JSON](https://ruby-doc.org/stdlib-2.4.0/libdoc/json/rdoc/JSON.html)) which initialise the `Jsonnet::VM` and run the output through `JSON.parse`. This gives you a simpler, nicer interface to load in Jsonnet files.\r\n\r\nIt also adds usage instructions for the README","created_at":"2017-06-29T23:26:31Z","updated_at":"2017-06-29T23:26:31Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"assignees":[],"requested_reviewers":[],"milestone":null,"commits_url":"https://api.github.com/repos/yugui/ruby-jsonnet/pulls/4/commits","review_comments_url":"https://api.github.com/repos/yugui/ruby-jsonnet/pulls/4/comments","review_comment_url":"https://api.github.com/repos/yugui/ruby-jsonnet/pulls/comments{/number}","comments_url":"https://api.github.com/repos/yugui/ruby-jsonnet/issues/4/comments","statuses_url":"https://api.github.com/repos/yugui/ruby-jsonnet/statuses/51fde2a032647fad89fed8db6c450fe25faf96b4","head":{"label":"kevindew:json-api","ref":"json-api","sha":"51fde2a032647fad89fed8db6c450fe25faf96b4","user":{"login":"kevindew","id":282717,"avatar_url":"https://avatars3.githubusercontent.com/u/282717?v=3","gravatar_id":"","url":"https://api.github.com/users/kevindew","html_url":"https://github.com/kevindew","followers_url":"https://api.github.com/users/kevindew/followers","following_url":"https://api.github.com/users/kevindew/following{/other_user}","gists_url":"https://api.github.com/users/kevindew/gists{/gist_id}","starred_url":"https://api.github.com/users/kevindew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevindew/subscriptions","organizations_url":"https://api.github.com/users/kevindew/orgs","repos_url":"https://api.github.com/users/kevindew/repos","events_url":"https://api.github.com/users/kevindew/events{/privacy}","received_events_url":"https://api.github.com/users/kevindew/received_events","type":"User","site_admin":false},"repo":{"id":95475422,"name":"ruby-jsonnet","full_name":"kevindew/ruby-jsonnet","owner":{"login":"kevindew","id":282717,"avatar_url":"https://avatars3.githubusercontent.com/u/282717?v=3","gravatar_id":"","url":"https://api.github.com/users/kevindew","html_url":"https://github.com/kevindew","followers_url":"https://api.github.com/users/kevindew/followers","following_url":"https://api.github.com/users/kevindew/following{/other_user}","gists_url":"https://api.github.com/users/kevindew/gists{/gist_id}","starred_url":"https://api.github.com/users/kevindew/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/kevindew/subscriptions","organizations_url":"https://api.github.com/users/kevindew/orgs","repos_url":"https://api.github.com/users/kevindew/repos","events_url":"https://api.github.com/users/kevindew/events{/privacy}","received_events_url":"https://api.github.com/users/kevindew/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/kevindew/ruby-jsonnet","description":"Jsonnet library for Ruby","fork":true,"url":"https://api.github.com/repos/kevindew/ruby-jsonnet","forks_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/forks","keys_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/teams","hooks_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/hooks","issue_events_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/issues/events{/number}","events_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/events","assignees_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/assignees{/user}","branches_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/branches{/branch}","tags_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/tags","blobs_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/git/refs{/sha}","trees_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/statuses/{sha}","languages_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/languages","stargazers_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/stargazers","contributors_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/contributors","subscribers_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/subscribers","subscription_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/subscription","commits_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/commits{/sha}","git_commits_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/git/commits{/sha}","comments_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/comments{/number}","issue_comment_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/issues/comments{/number}","contents_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/contents/{+path}","compare_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/merges","archive_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/downloads","issues_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/issues{/number}","pulls_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/pulls{/number}","milestones_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/milestones{/number}","notifications_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/labels{/name}","releases_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/releases{/id}","deployments_url":"https://api.github.com/repos/kevindew/ruby-jsonnet/deployments","created_at":"2017-06-26T18:11:45Z","updated_at":"2017-06-26T22:49:49Z","pushed_at":"2017-06-29T23:22:59Z","git_url":"git://github.com/kevindew/ruby-jsonnet.git","ssh_url":"git@github.com:kevindew/ruby-jsonnet.git","clone_url":"https://github.com/kevindew/ruby-jsonnet.git","svn_url":"https://github.com/kevindew/ruby-jsonnet","homepage":null,"size":47,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_projects":true,"has_downloads":true,"has_wiki":true,"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":"yugui:master","ref":"master","sha":"674d6f9d99ff6c5610ef7e2b7351a72db232aee9","user":{"login":"yugui","id":8161,"avatar_url":"https://avatars2.githubusercontent.com/u/8161?v=3","gravatar_id":"","url":"https://api.github.com/users/yugui","html_url":"https://github.com/yugui","followers_url":"https://api.github.com/users/yugui/followers","following_url":"https://api.github.com/users/yugui/following{/other_user}","gists_url":"https://api.github.com/users/yugui/gists{/gist_id}","starred_url":"https://api.github.com/users/yugui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yugui/subscriptions","organizations_url":"https://api.github.com/users/yugui/orgs","repos_url":"https://api.github.com/users/yugui/repos","events_url":"https://api.github.com/users/yugui/events{/privacy}","received_events_url":"https://api.github.com/users/yugui/received_events","type":"User","site_admin":false},"repo":{"id":41868005,"name":"ruby-jsonnet","full_name":"yugui/ruby-jsonnet","owner":{"login":"yugui","id":8161,"avatar_url":"https://avatars2.githubusercontent.com/u/8161?v=3","gravatar_id":"","url":"https://api.github.com/users/yugui","html_url":"https://github.com/yugui","followers_url":"https://api.github.com/users/yugui/followers","following_url":"https://api.github.com/users/yugui/following{/other_user}","gists_url":"https://api.github.com/users/yugui/gists{/gist_id}","starred_url":"https://api.github.com/users/yugui/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/yugui/subscriptions","organizations_url":"https://api.github.com/users/yugui/orgs","repos_url":"https://api.github.com/users/yugui/repos","events_url":"https://api.github.com/users/yugui/events{/privacy}","received_events_url":"https://api.github.com/users/yugui/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/yugui/ruby-jsonnet","description":"Jsonnet library for Ruby","fork":false,"url":"https://api.github.com/repos/yugui/ruby-jsonnet","forks_url":"https://api.github.com/repos/yugui/ruby-jsonnet/forks","keys_url":"https://api.github.com/repos/yugui/ruby-jsonnet/keys{/key_id}","collaborators_url":"https://api.github.com/repos/yugui/ruby-jsonnet/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/yugui/ruby-jsonnet/teams","hooks_url":"https://api.github.com/repos/yugui/ruby-jsonnet/hooks","issue_events_url":"https://api.github.com/repos/yugui/ruby-jsonnet/issues/events{/number}","events_url":"https://api.github.com/repos/yugui/ruby-jsonnet/events","assignees_url":"https://api.github.com/repos/yugui/ruby-jsonnet/assignees{/user}","branches_url":"https://api.github.com/repos/yugui/ruby-jsonnet/branches{/branch}","tags_url":"https://api.github.com/repos/yugui/ruby-jsonnet/tags","blobs_url":"https://api.github.com/repos/yugui/ruby-jsonnet/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/yugui/ruby-jsonnet/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/yugui/ruby-jsonnet/git/refs{/sha}","trees_url":"https://api.github.com/repos/yugui/ruby-jsonnet/git/trees{/sha}","statuses_url":"https://api.github.com/repos/yugui/ruby-jsonnet/statuses/{sha}","languages_url":"https://api.github.com/repos/yugui/ruby-jsonnet/languages","stargazers_url":"https://api.github.com/repos/yugui/ruby-jsonnet/stargazers","contributors_url":"https://api.github.com/repos/yugui/ruby-jsonnet/contributors","subscribers_url":"https://api.github.com/repos/yugui/ruby-jsonnet/subscribers","subscription_url":"https://api.github.com/repos/yugui/ruby-jsonnet/subscription","commits_url":"https://api.github.com/repos/yugui/ruby-jsonnet/commits{/sha}","git_commits_url":"https://api.github.com/repos/yugui/ruby-jsonnet/git/commits{/sha}","comments_url":"https://api.github.com/repos/yugui/ruby-jsonnet/comments{/number}","issue_comment_url":"https://api.github.com/repos/yugui/ruby-jsonnet/issues/comments{/number}","contents_url":"https://api.github.com/repos/yugui/ruby-jsonnet/contents/{+path}","compare_url":"https://api.github.com/repos/yugui/ruby-jsonnet/compare/{base}...{head}","merges_url":"https://api.github.com/repos/yugui/ruby-jsonnet/merges","archive_url":"https://api.github.com/repos/yugui/ruby-jsonnet/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/yugui/ruby-jsonnet/downloads","issues_url":"https://api.github.com/repos/yugui/ruby-jsonnet/issues{/number}","pulls_url":"https://api.github.com/repos/yugui/ruby-jsonnet/pulls{/number}","milestones_url":"https://api.github.com/repos/yugui/ruby-jsonnet/milestones{/number}","notifications_url":"https://api.github.com/repos/yugui/ruby-jsonnet/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/yugui/ruby-jsonnet/labels{/name}","releases_url":"https://api.github.com/repos/yugui/ruby-jsonnet/releases{/id}","deployments_url":"https://api.github.com/repos/yugui/ruby-jsonnet/deployments","created_at":"2015-09-03T15:35:12Z","updated_at":"2017-05-25T06:50:27Z","pushed_at":"2017-06-29T23:21:19Z","git_url":"git://github.com/yugui/ruby-jsonnet.git","ssh_url":"git@github.com:yugui/ruby-jsonnet.git","clone_url":"https://github.com/yugui/ruby-jsonnet.git","svn_url":"https://github.com/yugui/ruby-jsonnet","homepage":null,"size":157,"stargazers_count":4,"watchers_count":4,"language":"C","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":2,"mirror_url":null,"open_issues_count":3,"forks":2,"open_issues":3,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/yugui/ruby-jsonnet/pulls/4"},"html":{"href":"https://github.com/yugui/ruby-jsonnet/pull/4"},"issue":{"href":"https://api.github.com/repos/yugui/ruby-jsonnet/issues/4"},"comments":{"href":"https://api.github.com/repos/yugui/ruby-jsonnet/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/yugui/ruby-jsonnet/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/yugui/ruby-jsonnet/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/yugui/ruby-jsonnet/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/yugui/ruby-jsonnet/statuses/51fde2a032647fad89fed8db6c450fe25faf96b4"}},"merged":false,"mergeable":null,"rebaseable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"maintainer_can_modify":true,"commits":3,"additions":161,"deletions":4,"changed_files":5}}
{"actor":{"display_login":"kevindew"}}