{"action":"closed","number":7,"pull_request":{"url":"https://api.github.com/repos/CapacitorSet/box-js/pulls/7","id":86124740,"html_url":"https://github.com/CapacitorSet/box-js/pull/7","diff_url":"https://github.com/CapacitorSet/box-js/pull/7.diff","patch_url":"https://github.com/CapacitorSet/box-js/pull/7.patch","issue_url":"https://api.github.com/repos/CapacitorSet/box-js/issues/7","number":7,"state":"closed","locked":false,"title":"Use package-relative file paths","user":{"login":"daviesjamie","id":1678348,"avatar_url":"https://avatars.githubusercontent.com/u/1678348?v=3","gravatar_id":"","url":"https://api.github.com/users/daviesjamie","html_url":"https://github.com/daviesjamie","followers_url":"https://api.github.com/users/daviesjamie/followers","following_url":"https://api.github.com/users/daviesjamie/following{/other_user}","gists_url":"https://api.github.com/users/daviesjamie/gists{/gist_id}","starred_url":"https://api.github.com/users/daviesjamie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviesjamie/subscriptions","organizations_url":"https://api.github.com/users/daviesjamie/orgs","repos_url":"https://api.github.com/users/daviesjamie/repos","events_url":"https://api.github.com/users/daviesjamie/events{/privacy}","received_events_url":"https://api.github.com/users/daviesjamie/received_events","type":"User","site_admin":false},"body":"This PR gives a couple of fixes for things that I've overlooked recently:\r\n- Reference other JS/JSON files relative to `__dirname` (the name of the directory the currently executing script is in), instead of the current working directory. This is important when using the global `box-js` command, as otherwise it cannot find the necessary files\r\n- Use the `path` module to tidy up the construction of file/directory paths (less manual manipulation of trailing slashes)","created_at":"2016-09-21T09:14:13Z","updated_at":"2016-09-21T16:20:33Z","closed_at":"2016-09-21T16:20:33Z","merged_at":"2016-09-21T16:20:33Z","merge_commit_sha":"bc7824cb5c371e05f1ba3430eeae75f5304f6355","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/CapacitorSet/box-js/pulls/7/commits","review_comments_url":"https://api.github.com/repos/CapacitorSet/box-js/pulls/7/comments","review_comment_url":"https://api.github.com/repos/CapacitorSet/box-js/pulls/comments{/number}","comments_url":"https://api.github.com/repos/CapacitorSet/box-js/issues/7/comments","statuses_url":"https://api.github.com/repos/CapacitorSet/box-js/statuses/ab997e0f9ca480897f3847da7f02ca48d0333fa4","head":{"label":"daviesjamie:relative-file-paths","ref":"relative-file-paths","sha":"ab997e0f9ca480897f3847da7f02ca48d0333fa4","user":{"login":"daviesjamie","id":1678348,"avatar_url":"https://avatars.githubusercontent.com/u/1678348?v=3","gravatar_id":"","url":"https://api.github.com/users/daviesjamie","html_url":"https://github.com/daviesjamie","followers_url":"https://api.github.com/users/daviesjamie/followers","following_url":"https://api.github.com/users/daviesjamie/following{/other_user}","gists_url":"https://api.github.com/users/daviesjamie/gists{/gist_id}","starred_url":"https://api.github.com/users/daviesjamie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviesjamie/subscriptions","organizations_url":"https://api.github.com/users/daviesjamie/orgs","repos_url":"https://api.github.com/users/daviesjamie/repos","events_url":"https://api.github.com/users/daviesjamie/events{/privacy}","received_events_url":"https://api.github.com/users/daviesjamie/received_events","type":"User","site_admin":false},"repo":{"id":68292114,"name":"box-js","full_name":"daviesjamie/box-js","owner":{"login":"daviesjamie","id":1678348,"avatar_url":"https://avatars.githubusercontent.com/u/1678348?v=3","gravatar_id":"","url":"https://api.github.com/users/daviesjamie","html_url":"https://github.com/daviesjamie","followers_url":"https://api.github.com/users/daviesjamie/followers","following_url":"https://api.github.com/users/daviesjamie/following{/other_user}","gists_url":"https://api.github.com/users/daviesjamie/gists{/gist_id}","starred_url":"https://api.github.com/users/daviesjamie/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/daviesjamie/subscriptions","organizations_url":"https://api.github.com/users/daviesjamie/orgs","repos_url":"https://api.github.com/users/daviesjamie/repos","events_url":"https://api.github.com/users/daviesjamie/events{/privacy}","received_events_url":"https://api.github.com/users/daviesjamie/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/daviesjamie/box-js","description":"A tool for studying JavaScript malware.","fork":true,"url":"https://api.github.com/repos/daviesjamie/box-js","forks_url":"https://api.github.com/repos/daviesjamie/box-js/forks","keys_url":"https://api.github.com/repos/daviesjamie/box-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/daviesjamie/box-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/daviesjamie/box-js/teams","hooks_url":"https://api.github.com/repos/daviesjamie/box-js/hooks","issue_events_url":"https://api.github.com/repos/daviesjamie/box-js/issues/events{/number}","events_url":"https://api.github.com/repos/daviesjamie/box-js/events","assignees_url":"https://api.github.com/repos/daviesjamie/box-js/assignees{/user}","branches_url":"https://api.github.com/repos/daviesjamie/box-js/branches{/branch}","tags_url":"https://api.github.com/repos/daviesjamie/box-js/tags","blobs_url":"https://api.github.com/repos/daviesjamie/box-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/daviesjamie/box-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/daviesjamie/box-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/daviesjamie/box-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/daviesjamie/box-js/statuses/{sha}","languages_url":"https://api.github.com/repos/daviesjamie/box-js/languages","stargazers_url":"https://api.github.com/repos/daviesjamie/box-js/stargazers","contributors_url":"https://api.github.com/repos/daviesjamie/box-js/contributors","subscribers_url":"https://api.github.com/repos/daviesjamie/box-js/subscribers","subscription_url":"https://api.github.com/repos/daviesjamie/box-js/subscription","commits_url":"https://api.github.com/repos/daviesjamie/box-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/daviesjamie/box-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/daviesjamie/box-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/daviesjamie/box-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/daviesjamie/box-js/contents/{+path}","compare_url":"https://api.github.com/repos/daviesjamie/box-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/daviesjamie/box-js/merges","archive_url":"https://api.github.com/repos/daviesjamie/box-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/daviesjamie/box-js/downloads","issues_url":"https://api.github.com/repos/daviesjamie/box-js/issues{/number}","pulls_url":"https://api.github.com/repos/daviesjamie/box-js/pulls{/number}","milestones_url":"https://api.github.com/repos/daviesjamie/box-js/milestones{/number}","notifications_url":"https://api.github.com/repos/daviesjamie/box-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/daviesjamie/box-js/labels{/name}","releases_url":"https://api.github.com/repos/daviesjamie/box-js/releases{/id}","deployments_url":"https://api.github.com/repos/daviesjamie/box-js/deployments","created_at":"2016-09-15T12:32:29Z","updated_at":"2016-09-15T12:32:30Z","pushed_at":"2016-09-21T09:06:58Z","git_url":"git://github.com/daviesjamie/box-js.git","ssh_url":"git@github.com:daviesjamie/box-js.git","clone_url":"https://github.com/daviesjamie/box-js.git","svn_url":"https://github.com/daviesjamie/box-js","homepage":null,"size":105,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","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":"CapacitorSet:master","ref":"master","sha":"83d9cbf6ad854ea85be71ec69028e5063496191f","user":{"login":"CapacitorSet","id":9286933,"avatar_url":"https://avatars.githubusercontent.com/u/9286933?v=3","gravatar_id":"","url":"https://api.github.com/users/CapacitorSet","html_url":"https://github.com/CapacitorSet","followers_url":"https://api.github.com/users/CapacitorSet/followers","following_url":"https://api.github.com/users/CapacitorSet/following{/other_user}","gists_url":"https://api.github.com/users/CapacitorSet/gists{/gist_id}","starred_url":"https://api.github.com/users/CapacitorSet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CapacitorSet/subscriptions","organizations_url":"https://api.github.com/users/CapacitorSet/orgs","repos_url":"https://api.github.com/users/CapacitorSet/repos","events_url":"https://api.github.com/users/CapacitorSet/events{/privacy}","received_events_url":"https://api.github.com/users/CapacitorSet/received_events","type":"User","site_admin":false},"repo":{"id":61387950,"name":"box-js","full_name":"CapacitorSet/box-js","owner":{"login":"CapacitorSet","id":9286933,"avatar_url":"https://avatars.githubusercontent.com/u/9286933?v=3","gravatar_id":"","url":"https://api.github.com/users/CapacitorSet","html_url":"https://github.com/CapacitorSet","followers_url":"https://api.github.com/users/CapacitorSet/followers","following_url":"https://api.github.com/users/CapacitorSet/following{/other_user}","gists_url":"https://api.github.com/users/CapacitorSet/gists{/gist_id}","starred_url":"https://api.github.com/users/CapacitorSet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CapacitorSet/subscriptions","organizations_url":"https://api.github.com/users/CapacitorSet/orgs","repos_url":"https://api.github.com/users/CapacitorSet/repos","events_url":"https://api.github.com/users/CapacitorSet/events{/privacy}","received_events_url":"https://api.github.com/users/CapacitorSet/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/CapacitorSet/box-js","description":"A tool for studying JavaScript malware.","fork":false,"url":"https://api.github.com/repos/CapacitorSet/box-js","forks_url":"https://api.github.com/repos/CapacitorSet/box-js/forks","keys_url":"https://api.github.com/repos/CapacitorSet/box-js/keys{/key_id}","collaborators_url":"https://api.github.com/repos/CapacitorSet/box-js/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/CapacitorSet/box-js/teams","hooks_url":"https://api.github.com/repos/CapacitorSet/box-js/hooks","issue_events_url":"https://api.github.com/repos/CapacitorSet/box-js/issues/events{/number}","events_url":"https://api.github.com/repos/CapacitorSet/box-js/events","assignees_url":"https://api.github.com/repos/CapacitorSet/box-js/assignees{/user}","branches_url":"https://api.github.com/repos/CapacitorSet/box-js/branches{/branch}","tags_url":"https://api.github.com/repos/CapacitorSet/box-js/tags","blobs_url":"https://api.github.com/repos/CapacitorSet/box-js/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/CapacitorSet/box-js/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/CapacitorSet/box-js/git/refs{/sha}","trees_url":"https://api.github.com/repos/CapacitorSet/box-js/git/trees{/sha}","statuses_url":"https://api.github.com/repos/CapacitorSet/box-js/statuses/{sha}","languages_url":"https://api.github.com/repos/CapacitorSet/box-js/languages","stargazers_url":"https://api.github.com/repos/CapacitorSet/box-js/stargazers","contributors_url":"https://api.github.com/repos/CapacitorSet/box-js/contributors","subscribers_url":"https://api.github.com/repos/CapacitorSet/box-js/subscribers","subscription_url":"https://api.github.com/repos/CapacitorSet/box-js/subscription","commits_url":"https://api.github.com/repos/CapacitorSet/box-js/commits{/sha}","git_commits_url":"https://api.github.com/repos/CapacitorSet/box-js/git/commits{/sha}","comments_url":"https://api.github.com/repos/CapacitorSet/box-js/comments{/number}","issue_comment_url":"https://api.github.com/repos/CapacitorSet/box-js/issues/comments{/number}","contents_url":"https://api.github.com/repos/CapacitorSet/box-js/contents/{+path}","compare_url":"https://api.github.com/repos/CapacitorSet/box-js/compare/{base}...{head}","merges_url":"https://api.github.com/repos/CapacitorSet/box-js/merges","archive_url":"https://api.github.com/repos/CapacitorSet/box-js/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/CapacitorSet/box-js/downloads","issues_url":"https://api.github.com/repos/CapacitorSet/box-js/issues{/number}","pulls_url":"https://api.github.com/repos/CapacitorSet/box-js/pulls{/number}","milestones_url":"https://api.github.com/repos/CapacitorSet/box-js/milestones{/number}","notifications_url":"https://api.github.com/repos/CapacitorSet/box-js/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/CapacitorSet/box-js/labels{/name}","releases_url":"https://api.github.com/repos/CapacitorSet/box-js/releases{/id}","deployments_url":"https://api.github.com/repos/CapacitorSet/box-js/deployments","created_at":"2016-06-17T16:38:26Z","updated_at":"2016-09-21T14:56:34Z","pushed_at":"2016-09-21T16:20:34Z","git_url":"git://github.com/CapacitorSet/box-js.git","ssh_url":"git@github.com:CapacitorSet/box-js.git","clone_url":"https://github.com/CapacitorSet/box-js.git","svn_url":"https://github.com/CapacitorSet/box-js","homepage":null,"size":105,"stargazers_count":123,"watchers_count":123,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":11,"mirror_url":null,"open_issues_count":0,"forks":11,"open_issues":0,"watchers":123,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/CapacitorSet/box-js/pulls/7"},"html":{"href":"https://github.com/CapacitorSet/box-js/pull/7"},"issue":{"href":"https://api.github.com/repos/CapacitorSet/box-js/issues/7"},"comments":{"href":"https://api.github.com/repos/CapacitorSet/box-js/issues/7/comments"},"review_comments":{"href":"https://api.github.com/repos/CapacitorSet/box-js/pulls/7/comments"},"review_comment":{"href":"https://api.github.com/repos/CapacitorSet/box-js/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/CapacitorSet/box-js/pulls/7/commits"},"statuses":{"href":"https://api.github.com/repos/CapacitorSet/box-js/statuses/ab997e0f9ca480897f3847da7f02ca48d0333fa4"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"CapacitorSet","id":9286933,"avatar_url":"https://avatars.githubusercontent.com/u/9286933?v=3","gravatar_id":"","url":"https://api.github.com/users/CapacitorSet","html_url":"https://github.com/CapacitorSet","followers_url":"https://api.github.com/users/CapacitorSet/followers","following_url":"https://api.github.com/users/CapacitorSet/following{/other_user}","gists_url":"https://api.github.com/users/CapacitorSet/gists{/gist_id}","starred_url":"https://api.github.com/users/CapacitorSet/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/CapacitorSet/subscriptions","organizations_url":"https://api.github.com/users/CapacitorSet/orgs","repos_url":"https://api.github.com/users/CapacitorSet/repos","events_url":"https://api.github.com/users/CapacitorSet/events{/privacy}","received_events_url":"https://api.github.com/users/CapacitorSet/received_events","type":"User","site_admin":false},"comments":1,"review_comments":0,"commits":3,"additions":15,"deletions":15,"changed_files":2}}
{"actor":{"display_login":"CapacitorSet"}}