{"action":"created","comment":{"url":"https://api.github.com/repos/angularity/node-angularity/pulls/comments/24632464","id":24632464,"diff_hunk":"@@ -16,7 +18,69 @@ function quote(value) {\n   return '\"' + value + '\"';\n }\n \n+var defaultReporterName = 'angularity-karma-reporter';\n+\n var filesAppendRegex = /\\/\\*+\\s*ANGULARITY_FILE_LIST\\s*\\*+\\// ;\n+var reportersAppendRegex = /\\/\\*+\\s*ANGULARITY_REPORTER_LIST\\s*\\*+\\// ;\n+var pluginsAppendRegex = /\\/\\*+\\s*ANGULARITY_PLUGIN_LIST\\s*\\*+\\// ;\n+var karmaReporterMatchNameRegex = /^karma-(.+)-reporter$/ ;\n+\n+/**\n+ * Determine the `require` path for a plugin.\n+ *\n+ * @param {string} reporterName Either a package name,\n+ *   *OR* an absolute path, for a karma reporter.\n+ * @return {string} In karma config file, `plugins` will be inline `require`d\n+ *   using this return value.\n+ */\n+function getKarmaReporterPluginPath(reporterName) {\n+  if (typeof reporterName !== 'string') {\n+    throw 'Get Karma Reporter Plugin Path: Reporter name is unspecified';\n+  }\n+\n+  if (reporterName === defaultReporterName) {\n+    return defaultReporterName;\n+  }\n+  else {\n+    var reporterPath = (path.dirname(reporterName) === '.') ?\n+      path.resolve('node_modules', 'karma-'+reporterName+'-reporter') :\n+      reporterName;\n+    try {\n+      require(reporterPath);\n+    }\n+    catch (ex) {\n+      throw 'Get Karma Reporter Plugin Path: Attempt to require reporter from path '+reporterPath+' with no success.';\n+    }\n+    return reporterPath;\n+  }\n+}\n+\n+/**\n+ * Determine the registered reporter name.\n+ *\n+ * @param {string} reporterName Either the registered reporter name,\n+ *   *OR* an absolute path, for a karma reporter.\n+ * @return {string} The registered reporter name for use in\n+ *   the `reporters` section of the karma config file.\n+ */\n+function getKarmaReporterName(reporterName) {\n+  if (typeof reporterName !== 'string') {\n+    throw 'Get Karma Reporter Name: Reporter name is unspecified';","path":"lib/test/karma.js","position":60,"original_position":60,"commit_id":"f5188e9743f410a78ab818672102e4136d413929","original_commit_id":"f5188e9743f410a78ab818672102e4136d413929","user":{"login":"bguiz","id":1773785,"avatar_url":"https://avatars.githubusercontent.com/u/1773785?v=3","gravatar_id":"","url":"https://api.github.com/users/bguiz","html_url":"https://github.com/bguiz","followers_url":"https://api.github.com/users/bguiz/followers","following_url":"https://api.github.com/users/bguiz/following{/other_user}","gists_url":"https://api.github.com/users/bguiz/gists{/gist_id}","starred_url":"https://api.github.com/users/bguiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bguiz/subscriptions","organizations_url":"https://api.github.com/users/bguiz/orgs","repos_url":"https://api.github.com/users/bguiz/repos","events_url":"https://api.github.com/users/bguiz/events{/privacy}","received_events_url":"https://api.github.com/users/bguiz/received_events","type":"User","site_admin":false},"body":"See above","created_at":"2015-02-12T23:40:57Z","updated_at":"2015-02-12T23:40:57Z","html_url":"https://github.com/angularity/node-angularity/pull/17#discussion_r24632464","pull_request_url":"https://api.github.com/repos/angularity/node-angularity/pulls/17","_links":{"self":{"href":"https://api.github.com/repos/angularity/node-angularity/pulls/comments/24632464"},"html":{"href":"https://github.com/angularity/node-angularity/pull/17#discussion_r24632464"},"pull_request":{"href":"https://api.github.com/repos/angularity/node-angularity/pulls/17"}}},"pull_request":{"url":"https://api.github.com/repos/angularity/node-angularity/pulls/17","id":29156769,"html_url":"https://github.com/angularity/node-angularity/pull/17","diff_url":"https://github.com/angularity/node-angularity/pull/17.diff","patch_url":"https://github.com/angularity/node-angularity/pull/17.patch","issue_url":"https://api.github.com/repos/angularity/node-angularity/issues/17","number":17,"state":"open","locked":false,"title":"Karma reporter dynamic","user":{"login":"bguiz","id":1773785,"avatar_url":"https://avatars.githubusercontent.com/u/1773785?v=3","gravatar_id":"","url":"https://api.github.com/users/bguiz","html_url":"https://github.com/bguiz","followers_url":"https://api.github.com/users/bguiz/followers","following_url":"https://api.github.com/users/bguiz/following{/other_user}","gists_url":"https://api.github.com/users/bguiz/gists{/gist_id}","starred_url":"https://api.github.com/users/bguiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bguiz/subscriptions","organizations_url":"https://api.github.com/users/bguiz/orgs","repos_url":"https://api.github.com/users/bguiz/repos","events_url":"https://api.github.com/users/bguiz/events{/privacy}","received_events_url":"https://api.github.com/users/bguiz/received_events","type":"User","site_admin":false},"body":"- karma reports can be specified using both absolute paths and pro…\r\n- add CLI option to specify karma reporter, either by name or with… ","created_at":"2015-02-12T06:56:34Z","updated_at":"2015-02-12T23:40:57Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6124fd8ec671e25af93de46433a6934fa7c440fe","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/angularity/node-angularity/pulls/17/commits","review_comments_url":"https://api.github.com/repos/angularity/node-angularity/pulls/17/comments","review_comment_url":"https://api.github.com/repos/angularity/node-angularity/pulls/comments/{number}","comments_url":"https://api.github.com/repos/angularity/node-angularity/issues/17/comments","statuses_url":"https://api.github.com/repos/angularity/node-angularity/statuses/f5188e9743f410a78ab818672102e4136d413929","head":{"label":"bguiz:karma-reporter-dynamic","ref":"karma-reporter-dynamic","sha":"f5188e9743f410a78ab818672102e4136d413929","user":{"login":"bguiz","id":1773785,"avatar_url":"https://avatars.githubusercontent.com/u/1773785?v=3","gravatar_id":"","url":"https://api.github.com/users/bguiz","html_url":"https://github.com/bguiz","followers_url":"https://api.github.com/users/bguiz/followers","following_url":"https://api.github.com/users/bguiz/following{/other_user}","gists_url":"https://api.github.com/users/bguiz/gists{/gist_id}","starred_url":"https://api.github.com/users/bguiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bguiz/subscriptions","organizations_url":"https://api.github.com/users/bguiz/orgs","repos_url":"https://api.github.com/users/bguiz/repos","events_url":"https://api.github.com/users/bguiz/events{/privacy}","received_events_url":"https://api.github.com/users/bguiz/received_events","type":"User","site_admin":false},"repo":{"id":27950438,"name":"node-angularity","full_name":"bguiz/node-angularity","owner":{"login":"bguiz","id":1773785,"avatar_url":"https://avatars.githubusercontent.com/u/1773785?v=3","gravatar_id":"","url":"https://api.github.com/users/bguiz","html_url":"https://github.com/bguiz","followers_url":"https://api.github.com/users/bguiz/followers","following_url":"https://api.github.com/users/bguiz/following{/other_user}","gists_url":"https://api.github.com/users/bguiz/gists{/gist_id}","starred_url":"https://api.github.com/users/bguiz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bguiz/subscriptions","organizations_url":"https://api.github.com/users/bguiz/orgs","repos_url":"https://api.github.com/users/bguiz/repos","events_url":"https://api.github.com/users/bguiz/events{/privacy}","received_events_url":"https://api.github.com/users/bguiz/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bguiz/node-angularity","description":"Angularity proper","fork":true,"url":"https://api.github.com/repos/bguiz/node-angularity","forks_url":"https://api.github.com/repos/bguiz/node-angularity/forks","keys_url":"https://api.github.com/repos/bguiz/node-angularity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bguiz/node-angularity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bguiz/node-angularity/teams","hooks_url":"https://api.github.com/repos/bguiz/node-angularity/hooks","issue_events_url":"https://api.github.com/repos/bguiz/node-angularity/issues/events{/number}","events_url":"https://api.github.com/repos/bguiz/node-angularity/events","assignees_url":"https://api.github.com/repos/bguiz/node-angularity/assignees{/user}","branches_url":"https://api.github.com/repos/bguiz/node-angularity/branches{/branch}","tags_url":"https://api.github.com/repos/bguiz/node-angularity/tags","blobs_url":"https://api.github.com/repos/bguiz/node-angularity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bguiz/node-angularity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bguiz/node-angularity/git/refs{/sha}","trees_url":"https://api.github.com/repos/bguiz/node-angularity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bguiz/node-angularity/statuses/{sha}","languages_url":"https://api.github.com/repos/bguiz/node-angularity/languages","stargazers_url":"https://api.github.com/repos/bguiz/node-angularity/stargazers","contributors_url":"https://api.github.com/repos/bguiz/node-angularity/contributors","subscribers_url":"https://api.github.com/repos/bguiz/node-angularity/subscribers","subscription_url":"https://api.github.com/repos/bguiz/node-angularity/subscription","commits_url":"https://api.github.com/repos/bguiz/node-angularity/commits{/sha}","git_commits_url":"https://api.github.com/repos/bguiz/node-angularity/git/commits{/sha}","comments_url":"https://api.github.com/repos/bguiz/node-angularity/comments{/number}","issue_comment_url":"https://api.github.com/repos/bguiz/node-angularity/issues/comments/{number}","contents_url":"https://api.github.com/repos/bguiz/node-angularity/contents/{+path}","compare_url":"https://api.github.com/repos/bguiz/node-angularity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bguiz/node-angularity/merges","archive_url":"https://api.github.com/repos/bguiz/node-angularity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bguiz/node-angularity/downloads","issues_url":"https://api.github.com/repos/bguiz/node-angularity/issues{/number}","pulls_url":"https://api.github.com/repos/bguiz/node-angularity/pulls{/number}","milestones_url":"https://api.github.com/repos/bguiz/node-angularity/milestones{/number}","notifications_url":"https://api.github.com/repos/bguiz/node-angularity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bguiz/node-angularity/labels{/name}","releases_url":"https://api.github.com/repos/bguiz/node-angularity/releases{/id}","created_at":"2014-12-13T05:22:44Z","updated_at":"2015-02-10T04:35:23Z","pushed_at":"2015-02-12T06:54:43Z","git_url":"git://github.com/bguiz/node-angularity.git","ssh_url":"git@github.com:bguiz/node-angularity.git","clone_url":"https://github.com/bguiz/node-angularity.git","svn_url":"https://github.com/bguiz/node-angularity","homepage":"http://angularity.github.io","size":1912,"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":"angularity:master","ref":"master","sha":"efa3970ef6d240e1c8191d6d79d60285658bbc9c","user":{"login":"angularity","id":9144036,"avatar_url":"https://avatars.githubusercontent.com/u/9144036?v=3","gravatar_id":"","url":"https://api.github.com/users/angularity","html_url":"https://github.com/angularity","followers_url":"https://api.github.com/users/angularity/followers","following_url":"https://api.github.com/users/angularity/following{/other_user}","gists_url":"https://api.github.com/users/angularity/gists{/gist_id}","starred_url":"https://api.github.com/users/angularity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angularity/subscriptions","organizations_url":"https://api.github.com/users/angularity/orgs","repos_url":"https://api.github.com/users/angularity/repos","events_url":"https://api.github.com/users/angularity/events{/privacy}","received_events_url":"https://api.github.com/users/angularity/received_events","type":"Organization","site_admin":false},"repo":{"id":25058161,"name":"node-angularity","full_name":"angularity/node-angularity","owner":{"login":"angularity","id":9144036,"avatar_url":"https://avatars.githubusercontent.com/u/9144036?v=3","gravatar_id":"","url":"https://api.github.com/users/angularity","html_url":"https://github.com/angularity","followers_url":"https://api.github.com/users/angularity/followers","following_url":"https://api.github.com/users/angularity/following{/other_user}","gists_url":"https://api.github.com/users/angularity/gists{/gist_id}","starred_url":"https://api.github.com/users/angularity/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/angularity/subscriptions","organizations_url":"https://api.github.com/users/angularity/orgs","repos_url":"https://api.github.com/users/angularity/repos","events_url":"https://api.github.com/users/angularity/events{/privacy}","received_events_url":"https://api.github.com/users/angularity/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/angularity/node-angularity","description":"Angularity proper","fork":true,"url":"https://api.github.com/repos/angularity/node-angularity","forks_url":"https://api.github.com/repos/angularity/node-angularity/forks","keys_url":"https://api.github.com/repos/angularity/node-angularity/keys{/key_id}","collaborators_url":"https://api.github.com/repos/angularity/node-angularity/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/angularity/node-angularity/teams","hooks_url":"https://api.github.com/repos/angularity/node-angularity/hooks","issue_events_url":"https://api.github.com/repos/angularity/node-angularity/issues/events{/number}","events_url":"https://api.github.com/repos/angularity/node-angularity/events","assignees_url":"https://api.github.com/repos/angularity/node-angularity/assignees{/user}","branches_url":"https://api.github.com/repos/angularity/node-angularity/branches{/branch}","tags_url":"https://api.github.com/repos/angularity/node-angularity/tags","blobs_url":"https://api.github.com/repos/angularity/node-angularity/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/angularity/node-angularity/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/angularity/node-angularity/git/refs{/sha}","trees_url":"https://api.github.com/repos/angularity/node-angularity/git/trees{/sha}","statuses_url":"https://api.github.com/repos/angularity/node-angularity/statuses/{sha}","languages_url":"https://api.github.com/repos/angularity/node-angularity/languages","stargazers_url":"https://api.github.com/repos/angularity/node-angularity/stargazers","contributors_url":"https://api.github.com/repos/angularity/node-angularity/contributors","subscribers_url":"https://api.github.com/repos/angularity/node-angularity/subscribers","subscription_url":"https://api.github.com/repos/angularity/node-angularity/subscription","commits_url":"https://api.github.com/repos/angularity/node-angularity/commits{/sha}","git_commits_url":"https://api.github.com/repos/angularity/node-angularity/git/commits{/sha}","comments_url":"https://api.github.com/repos/angularity/node-angularity/comments{/number}","issue_comment_url":"https://api.github.com/repos/angularity/node-angularity/issues/comments/{number}","contents_url":"https://api.github.com/repos/angularity/node-angularity/contents/{+path}","compare_url":"https://api.github.com/repos/angularity/node-angularity/compare/{base}...{head}","merges_url":"https://api.github.com/repos/angularity/node-angularity/merges","archive_url":"https://api.github.com/repos/angularity/node-angularity/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/angularity/node-angularity/downloads","issues_url":"https://api.github.com/repos/angularity/node-angularity/issues{/number}","pulls_url":"https://api.github.com/repos/angularity/node-angularity/pulls{/number}","milestones_url":"https://api.github.com/repos/angularity/node-angularity/milestones{/number}","notifications_url":"https://api.github.com/repos/angularity/node-angularity/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/angularity/node-angularity/labels{/name}","releases_url":"https://api.github.com/repos/angularity/node-angularity/releases{/id}","created_at":"2014-10-11T00:36:20Z","updated_at":"2015-02-11T23:55:40Z","pushed_at":"2015-02-11T23:55:39Z","git_url":"git://github.com/angularity/node-angularity.git","ssh_url":"git@github.com:angularity/node-angularity.git","clone_url":"https://github.com/angularity/node-angularity.git","svn_url":"https://github.com/angularity/node-angularity","homepage":"http://angularity.github.io","size":2321,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":false,"has_pages":false,"forks_count":3,"mirror_url":null,"open_issues_count":3,"forks":3,"open_issues":3,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/angularity/node-angularity/pulls/17"},"html":{"href":"https://github.com/angularity/node-angularity/pull/17"},"issue":{"href":"https://api.github.com/repos/angularity/node-angularity/issues/17"},"comments":{"href":"https://api.github.com/repos/angularity/node-angularity/issues/17/comments"},"review_comments":{"href":"https://api.github.com/repos/angularity/node-angularity/pulls/17/comments"},"review_comment":{"href":"https://api.github.com/repos/angularity/node-angularity/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/angularity/node-angularity/pulls/17/commits"},"statuses":{"href":"https://api.github.com/repos/angularity/node-angularity/statuses/f5188e9743f410a78ab818672102e4136d413929"}}}}