{"action":"created","comment":{"url":"https://api.github.com/repos/NickTomlin/protractor-flake/pulls/comments/92916377","pull_request_review_id":13441820,"id":92916377,"diff_hunk":"@@ -1,16 +1,46 @@\n import cucumber from './cucumber'\n import cucumberMulti from './cucumber.multi'\n+import { extname } from 'path'\n import multi from './multi'\n import standard from './standard'\n \n let all = { cucumber, cucumberMulti, multi, standard }\n \n-function getParser (name) {\n-  if (name && all[name]) {\n-    return all[name]\n+function handleObject (parserObject) {\n+  if (typeof parserObject.parse !== 'function') {\n+    throw new Error(`Invalid Parser Object specified. Your parser must define a \\`parse\\` method`)\n+  }\n+\n+  return parserObject\n+}\n+\n+function handlePah (parserPath) {","path":"src/parsers/index.js","position":20,"original_position":20,"commit_id":"adb6a7861a4c0f4ad4b72c7bf79b2ed66b1a7619","original_commit_id":"adb6a7861a4c0f4ad4b72c7bf79b2ed66b1a7619","user":{"login":"wswebcreation","id":11979740,"avatar_url":"https://avatars.githubusercontent.com/u/11979740?v=3","gravatar_id":"","url":"https://api.github.com/users/wswebcreation","html_url":"https://github.com/wswebcreation","followers_url":"https://api.github.com/users/wswebcreation/followers","following_url":"https://api.github.com/users/wswebcreation/following{/other_user}","gists_url":"https://api.github.com/users/wswebcreation/gists{/gist_id}","starred_url":"https://api.github.com/users/wswebcreation/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/wswebcreation/subscriptions","organizations_url":"https://api.github.com/users/wswebcreation/orgs","repos_url":"https://api.github.com/users/wswebcreation/repos","events_url":"https://api.github.com/users/wswebcreation/events{/privacy}","received_events_url":"https://api.github.com/users/wswebcreation/received_events","type":"User","site_admin":false},"body":"Typo? `handlePath`","created_at":"2016-12-17T06:15:22Z","updated_at":"2016-12-17T06:15:22Z","html_url":"https://github.com/NickTomlin/protractor-flake/pull/45#discussion_r92916377","pull_request_url":"https://api.github.com/repos/NickTomlin/protractor-flake/pulls/45","_links":{"self":{"href":"https://api.github.com/repos/NickTomlin/protractor-flake/pulls/comments/92916377"},"html":{"href":"https://github.com/NickTomlin/protractor-flake/pull/45#discussion_r92916377"},"pull_request":{"href":"https://api.github.com/repos/NickTomlin/protractor-flake/pulls/45"}}},"pull_request":{"url":"https://api.github.com/repos/NickTomlin/protractor-flake/pulls/45","id":97432130,"html_url":"https://github.com/NickTomlin/protractor-flake/pull/45","diff_url":"https://github.com/NickTomlin/protractor-flake/pull/45.diff","patch_url":"https://github.com/NickTomlin/protractor-flake/pull/45.patch","issue_url":"https://api.github.com/repos/NickTomlin/protractor-flake/issues/45","number":45,"state":"open","locked":false,"title":"User supplied parsers","user":{"login":"NickTomlin","id":1290336,"avatar_url":"https://avatars.githubusercontent.com/u/1290336?v=3","gravatar_id":"","url":"https://api.github.com/users/NickTomlin","html_url":"https://github.com/NickTomlin","followers_url":"https://api.github.com/users/NickTomlin/followers","following_url":"https://api.github.com/users/NickTomlin/following{/other_user}","gists_url":"https://api.github.com/users/NickTomlin/gists{/gist_id}","starred_url":"https://api.github.com/users/NickTomlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickTomlin/subscriptions","organizations_url":"https://api.github.com/users/NickTomlin/orgs","repos_url":"https://api.github.com/users/NickTomlin/repos","events_url":"https://api.github.com/users/NickTomlin/events{/privacy}","received_events_url":"https://api.github.com/users/NickTomlin/received_events","type":"User","site_admin":false},"body":"This adds the ability for users to supply a custom parser by: \r\n\r\n- providing the path to a module that will be required, the path must end in a `.*` extension\r\n- providing a custom parsing object (when used programmatically)\r\n\r\nThis should help in cases where a custom reporter is being used; it allows users to design a parser that fits their needs without having to update protractor-flake itself. \r\n\r\nEventually it would be nice to provide some tools to make parsing output easier but this is a first step.","created_at":"2016-12-10T17:42:20Z","updated_at":"2016-12-17T06:15:22Z","closed_at":null,"merged_at":null,"merge_commit_sha":"ca0b304afc4b0c97039afe95cdd3af70a42d2fc4","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/NickTomlin/protractor-flake/pulls/45/commits","review_comments_url":"https://api.github.com/repos/NickTomlin/protractor-flake/pulls/45/comments","review_comment_url":"https://api.github.com/repos/NickTomlin/protractor-flake/pulls/comments{/number}","comments_url":"https://api.github.com/repos/NickTomlin/protractor-flake/issues/45/comments","statuses_url":"https://api.github.com/repos/NickTomlin/protractor-flake/statuses/adb6a7861a4c0f4ad4b72c7bf79b2ed66b1a7619","head":{"label":"NickTomlin:user-supplied-parsers","ref":"user-supplied-parsers","sha":"adb6a7861a4c0f4ad4b72c7bf79b2ed66b1a7619","user":{"login":"NickTomlin","id":1290336,"avatar_url":"https://avatars.githubusercontent.com/u/1290336?v=3","gravatar_id":"","url":"https://api.github.com/users/NickTomlin","html_url":"https://github.com/NickTomlin","followers_url":"https://api.github.com/users/NickTomlin/followers","following_url":"https://api.github.com/users/NickTomlin/following{/other_user}","gists_url":"https://api.github.com/users/NickTomlin/gists{/gist_id}","starred_url":"https://api.github.com/users/NickTomlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickTomlin/subscriptions","organizations_url":"https://api.github.com/users/NickTomlin/orgs","repos_url":"https://api.github.com/users/NickTomlin/repos","events_url":"https://api.github.com/users/NickTomlin/events{/privacy}","received_events_url":"https://api.github.com/users/NickTomlin/received_events","type":"User","site_admin":false},"repo":{"id":40843364,"name":"protractor-flake","full_name":"NickTomlin/protractor-flake","owner":{"login":"NickTomlin","id":1290336,"avatar_url":"https://avatars.githubusercontent.com/u/1290336?v=3","gravatar_id":"","url":"https://api.github.com/users/NickTomlin","html_url":"https://github.com/NickTomlin","followers_url":"https://api.github.com/users/NickTomlin/followers","following_url":"https://api.github.com/users/NickTomlin/following{/other_user}","gists_url":"https://api.github.com/users/NickTomlin/gists{/gist_id}","starred_url":"https://api.github.com/users/NickTomlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickTomlin/subscriptions","organizations_url":"https://api.github.com/users/NickTomlin/orgs","repos_url":"https://api.github.com/users/NickTomlin/repos","events_url":"https://api.github.com/users/NickTomlin/events{/privacy}","received_events_url":"https://api.github.com/users/NickTomlin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NickTomlin/protractor-flake","description":"Rerun potentially flakey protractor tests before failing.","fork":false,"url":"https://api.github.com/repos/NickTomlin/protractor-flake","forks_url":"https://api.github.com/repos/NickTomlin/protractor-flake/forks","keys_url":"https://api.github.com/repos/NickTomlin/protractor-flake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NickTomlin/protractor-flake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NickTomlin/protractor-flake/teams","hooks_url":"https://api.github.com/repos/NickTomlin/protractor-flake/hooks","issue_events_url":"https://api.github.com/repos/NickTomlin/protractor-flake/issues/events{/number}","events_url":"https://api.github.com/repos/NickTomlin/protractor-flake/events","assignees_url":"https://api.github.com/repos/NickTomlin/protractor-flake/assignees{/user}","branches_url":"https://api.github.com/repos/NickTomlin/protractor-flake/branches{/branch}","tags_url":"https://api.github.com/repos/NickTomlin/protractor-flake/tags","blobs_url":"https://api.github.com/repos/NickTomlin/protractor-flake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NickTomlin/protractor-flake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NickTomlin/protractor-flake/git/refs{/sha}","trees_url":"https://api.github.com/repos/NickTomlin/protractor-flake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NickTomlin/protractor-flake/statuses/{sha}","languages_url":"https://api.github.com/repos/NickTomlin/protractor-flake/languages","stargazers_url":"https://api.github.com/repos/NickTomlin/protractor-flake/stargazers","contributors_url":"https://api.github.com/repos/NickTomlin/protractor-flake/contributors","subscribers_url":"https://api.github.com/repos/NickTomlin/protractor-flake/subscribers","subscription_url":"https://api.github.com/repos/NickTomlin/protractor-flake/subscription","commits_url":"https://api.github.com/repos/NickTomlin/protractor-flake/commits{/sha}","git_commits_url":"https://api.github.com/repos/NickTomlin/protractor-flake/git/commits{/sha}","comments_url":"https://api.github.com/repos/NickTomlin/protractor-flake/comments{/number}","issue_comment_url":"https://api.github.com/repos/NickTomlin/protractor-flake/issues/comments{/number}","contents_url":"https://api.github.com/repos/NickTomlin/protractor-flake/contents/{+path}","compare_url":"https://api.github.com/repos/NickTomlin/protractor-flake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NickTomlin/protractor-flake/merges","archive_url":"https://api.github.com/repos/NickTomlin/protractor-flake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NickTomlin/protractor-flake/downloads","issues_url":"https://api.github.com/repos/NickTomlin/protractor-flake/issues{/number}","pulls_url":"https://api.github.com/repos/NickTomlin/protractor-flake/pulls{/number}","milestones_url":"https://api.github.com/repos/NickTomlin/protractor-flake/milestones{/number}","notifications_url":"https://api.github.com/repos/NickTomlin/protractor-flake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NickTomlin/protractor-flake/labels{/name}","releases_url":"https://api.github.com/repos/NickTomlin/protractor-flake/releases{/id}","deployments_url":"https://api.github.com/repos/NickTomlin/protractor-flake/deployments","created_at":"2015-08-16T21:53:27Z","updated_at":"2016-12-16T14:27:46Z","pushed_at":"2016-12-16T22:42:17Z","git_url":"git://github.com/NickTomlin/protractor-flake.git","ssh_url":"git@github.com:NickTomlin/protractor-flake.git","clone_url":"https://github.com/NickTomlin/protractor-flake.git","svn_url":"https://github.com/NickTomlin/protractor-flake","homepage":"","size":155,"stargazers_count":24,"watchers_count":24,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":6,"forks":26,"open_issues":6,"watchers":24,"default_branch":"master"}},"base":{"label":"NickTomlin:master","ref":"master","sha":"9cce406e16ffcf582876f3b15b53330fe666fd41","user":{"login":"NickTomlin","id":1290336,"avatar_url":"https://avatars.githubusercontent.com/u/1290336?v=3","gravatar_id":"","url":"https://api.github.com/users/NickTomlin","html_url":"https://github.com/NickTomlin","followers_url":"https://api.github.com/users/NickTomlin/followers","following_url":"https://api.github.com/users/NickTomlin/following{/other_user}","gists_url":"https://api.github.com/users/NickTomlin/gists{/gist_id}","starred_url":"https://api.github.com/users/NickTomlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickTomlin/subscriptions","organizations_url":"https://api.github.com/users/NickTomlin/orgs","repos_url":"https://api.github.com/users/NickTomlin/repos","events_url":"https://api.github.com/users/NickTomlin/events{/privacy}","received_events_url":"https://api.github.com/users/NickTomlin/received_events","type":"User","site_admin":false},"repo":{"id":40843364,"name":"protractor-flake","full_name":"NickTomlin/protractor-flake","owner":{"login":"NickTomlin","id":1290336,"avatar_url":"https://avatars.githubusercontent.com/u/1290336?v=3","gravatar_id":"","url":"https://api.github.com/users/NickTomlin","html_url":"https://github.com/NickTomlin","followers_url":"https://api.github.com/users/NickTomlin/followers","following_url":"https://api.github.com/users/NickTomlin/following{/other_user}","gists_url":"https://api.github.com/users/NickTomlin/gists{/gist_id}","starred_url":"https://api.github.com/users/NickTomlin/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/NickTomlin/subscriptions","organizations_url":"https://api.github.com/users/NickTomlin/orgs","repos_url":"https://api.github.com/users/NickTomlin/repos","events_url":"https://api.github.com/users/NickTomlin/events{/privacy}","received_events_url":"https://api.github.com/users/NickTomlin/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/NickTomlin/protractor-flake","description":"Rerun potentially flakey protractor tests before failing.","fork":false,"url":"https://api.github.com/repos/NickTomlin/protractor-flake","forks_url":"https://api.github.com/repos/NickTomlin/protractor-flake/forks","keys_url":"https://api.github.com/repos/NickTomlin/protractor-flake/keys{/key_id}","collaborators_url":"https://api.github.com/repos/NickTomlin/protractor-flake/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/NickTomlin/protractor-flake/teams","hooks_url":"https://api.github.com/repos/NickTomlin/protractor-flake/hooks","issue_events_url":"https://api.github.com/repos/NickTomlin/protractor-flake/issues/events{/number}","events_url":"https://api.github.com/repos/NickTomlin/protractor-flake/events","assignees_url":"https://api.github.com/repos/NickTomlin/protractor-flake/assignees{/user}","branches_url":"https://api.github.com/repos/NickTomlin/protractor-flake/branches{/branch}","tags_url":"https://api.github.com/repos/NickTomlin/protractor-flake/tags","blobs_url":"https://api.github.com/repos/NickTomlin/protractor-flake/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/NickTomlin/protractor-flake/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/NickTomlin/protractor-flake/git/refs{/sha}","trees_url":"https://api.github.com/repos/NickTomlin/protractor-flake/git/trees{/sha}","statuses_url":"https://api.github.com/repos/NickTomlin/protractor-flake/statuses/{sha}","languages_url":"https://api.github.com/repos/NickTomlin/protractor-flake/languages","stargazers_url":"https://api.github.com/repos/NickTomlin/protractor-flake/stargazers","contributors_url":"https://api.github.com/repos/NickTomlin/protractor-flake/contributors","subscribers_url":"https://api.github.com/repos/NickTomlin/protractor-flake/subscribers","subscription_url":"https://api.github.com/repos/NickTomlin/protractor-flake/subscription","commits_url":"https://api.github.com/repos/NickTomlin/protractor-flake/commits{/sha}","git_commits_url":"https://api.github.com/repos/NickTomlin/protractor-flake/git/commits{/sha}","comments_url":"https://api.github.com/repos/NickTomlin/protractor-flake/comments{/number}","issue_comment_url":"https://api.github.com/repos/NickTomlin/protractor-flake/issues/comments{/number}","contents_url":"https://api.github.com/repos/NickTomlin/protractor-flake/contents/{+path}","compare_url":"https://api.github.com/repos/NickTomlin/protractor-flake/compare/{base}...{head}","merges_url":"https://api.github.com/repos/NickTomlin/protractor-flake/merges","archive_url":"https://api.github.com/repos/NickTomlin/protractor-flake/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/NickTomlin/protractor-flake/downloads","issues_url":"https://api.github.com/repos/NickTomlin/protractor-flake/issues{/number}","pulls_url":"https://api.github.com/repos/NickTomlin/protractor-flake/pulls{/number}","milestones_url":"https://api.github.com/repos/NickTomlin/protractor-flake/milestones{/number}","notifications_url":"https://api.github.com/repos/NickTomlin/protractor-flake/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/NickTomlin/protractor-flake/labels{/name}","releases_url":"https://api.github.com/repos/NickTomlin/protractor-flake/releases{/id}","deployments_url":"https://api.github.com/repos/NickTomlin/protractor-flake/deployments","created_at":"2015-08-16T21:53:27Z","updated_at":"2016-12-16T14:27:46Z","pushed_at":"2016-12-16T22:42:17Z","git_url":"git://github.com/NickTomlin/protractor-flake.git","ssh_url":"git@github.com:NickTomlin/protractor-flake.git","clone_url":"https://github.com/NickTomlin/protractor-flake.git","svn_url":"https://github.com/NickTomlin/protractor-flake","homepage":"","size":155,"stargazers_count":24,"watchers_count":24,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":26,"mirror_url":null,"open_issues_count":6,"forks":26,"open_issues":6,"watchers":24,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/NickTomlin/protractor-flake/pulls/45"},"html":{"href":"https://github.com/NickTomlin/protractor-flake/pull/45"},"issue":{"href":"https://api.github.com/repos/NickTomlin/protractor-flake/issues/45"},"comments":{"href":"https://api.github.com/repos/NickTomlin/protractor-flake/issues/45/comments"},"review_comments":{"href":"https://api.github.com/repos/NickTomlin/protractor-flake/pulls/45/comments"},"review_comment":{"href":"https://api.github.com/repos/NickTomlin/protractor-flake/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/NickTomlin/protractor-flake/pulls/45/commits"},"statuses":{"href":"https://api.github.com/repos/NickTomlin/protractor-flake/statuses/adb6a7861a4c0f4ad4b72c7bf79b2ed66b1a7619"}}}}
{"actor":{"display_login":"wswebcreation"}}