{"action":"opened","number":146,"pull_request":{"url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/pulls/146","id":44881661,"html_url":"https://github.com/krampstudio/grunt-jsdoc/pull/146","diff_url":"https://github.com/krampstudio/grunt-jsdoc/pull/146.diff","patch_url":"https://github.com/krampstudio/grunt-jsdoc/pull/146.patch","issue_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/issues/146","number":146,"state":"open","locked":false,"title":"Make windows use node to run javascript files.","user":{"login":"Riobe","id":1712237,"avatar_url":"https://avatars.githubusercontent.com/u/1712237?v=3","gravatar_id":"","url":"https://api.github.com/users/Riobe","html_url":"https://github.com/Riobe","followers_url":"https://api.github.com/users/Riobe/followers","following_url":"https://api.github.com/users/Riobe/following{/other_user}","gists_url":"https://api.github.com/users/Riobe/gists{/gist_id}","starred_url":"https://api.github.com/users/Riobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Riobe/subscriptions","organizations_url":"https://api.github.com/users/Riobe/orgs","repos_url":"https://api.github.com/users/Riobe/repos","events_url":"https://api.github.com/users/Riobe/events{/privacy}","received_events_url":"https://api.github.com/users/Riobe/received_events","type":"User","site_admin":false},"body":"I had an issue where my default file handler for javascript files was to open them in gvim. I can't imagine I'd be the only person doing node.js and working with javascript all day who wouldn't want double-clicking a javascript file to open it for editing or do something other than trying to run it. Because this just ran `cmd /c` on the file it found, trying to do `grunt jsdoc` would open jsdoc.js in my editor instead of creating documentation.\r\n\r\nThis change makes it so that if lib/exec.lookup returns a path ending in 'js' that the command used will be `cmd /c node ` then script. I also noticed `test-basic` was duplicated for the alternate so I made `test-alternate` it's own task and called it in the `test` task.\r\n\r\nI don't know enough about the testing to add a test specifically for this (I still need to learn that), but I did run all the tests where it wasn't finding the js file, then delete the bash script (I'm in cygwin) that it was finding and run it again where it was hitting jsdoc.js and saw the tests still pass and it use node (via`grunt --debug test`). If this needs an explicit test before going in I'll have to go spend some time learning how.","created_at":"2015-09-13T21:47:58Z","updated_at":"2015-09-13T21:47:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":null,"assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/pulls/146/commits","review_comments_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/pulls/146/comments","review_comment_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/pulls/comments{/number}","comments_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/issues/146/comments","statuses_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/statuses/3258a94957a202e2acf8f260d0c9480d7c40ef0c","head":{"label":"Riobe:master","ref":"master","sha":"3258a94957a202e2acf8f260d0c9480d7c40ef0c","user":{"login":"Riobe","id":1712237,"avatar_url":"https://avatars.githubusercontent.com/u/1712237?v=3","gravatar_id":"","url":"https://api.github.com/users/Riobe","html_url":"https://github.com/Riobe","followers_url":"https://api.github.com/users/Riobe/followers","following_url":"https://api.github.com/users/Riobe/following{/other_user}","gists_url":"https://api.github.com/users/Riobe/gists{/gist_id}","starred_url":"https://api.github.com/users/Riobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Riobe/subscriptions","organizations_url":"https://api.github.com/users/Riobe/orgs","repos_url":"https://api.github.com/users/Riobe/repos","events_url":"https://api.github.com/users/Riobe/events{/privacy}","received_events_url":"https://api.github.com/users/Riobe/received_events","type":"User","site_admin":false},"repo":{"id":42361818,"name":"grunt-jsdoc","full_name":"Riobe/grunt-jsdoc","owner":{"login":"Riobe","id":1712237,"avatar_url":"https://avatars.githubusercontent.com/u/1712237?v=3","gravatar_id":"","url":"https://api.github.com/users/Riobe","html_url":"https://github.com/Riobe","followers_url":"https://api.github.com/users/Riobe/followers","following_url":"https://api.github.com/users/Riobe/following{/other_user}","gists_url":"https://api.github.com/users/Riobe/gists{/gist_id}","starred_url":"https://api.github.com/users/Riobe/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Riobe/subscriptions","organizations_url":"https://api.github.com/users/Riobe/orgs","repos_url":"https://api.github.com/users/Riobe/repos","events_url":"https://api.github.com/users/Riobe/events{/privacy}","received_events_url":"https://api.github.com/users/Riobe/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Riobe/grunt-jsdoc","description":"A grunt plugin to generate javascript doc by running jsdoc3 on your grunt projects.","fork":true,"url":"https://api.github.com/repos/Riobe/grunt-jsdoc","forks_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/forks","keys_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/teams","hooks_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/hooks","issue_events_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/issues/events{/number}","events_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/events","assignees_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/assignees{/user}","branches_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/branches{/branch}","tags_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/tags","blobs_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/git/refs{/sha}","trees_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/statuses/{sha}","languages_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/languages","stargazers_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/stargazers","contributors_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/contributors","subscribers_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/subscribers","subscription_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/subscription","commits_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/commits{/sha}","git_commits_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/git/commits{/sha}","comments_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/comments{/number}","issue_comment_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/issues/comments{/number}","contents_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/contents/{+path}","compare_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/merges","archive_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/downloads","issues_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/issues{/number}","pulls_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/pulls{/number}","milestones_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/milestones{/number}","notifications_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/labels{/name}","releases_url":"https://api.github.com/repos/Riobe/grunt-jsdoc/releases{/id}","created_at":"2015-09-12T15:24:11Z","updated_at":"2015-09-12T15:24:12Z","pushed_at":"2015-09-13T21:30:27Z","git_url":"git://github.com/Riobe/grunt-jsdoc.git","ssh_url":"git@github.com:Riobe/grunt-jsdoc.git","clone_url":"https://github.com/Riobe/grunt-jsdoc.git","svn_url":"https://github.com/Riobe/grunt-jsdoc","homepage":"","size":207,"stargazers_count":0,"watchers_count":0,"language":"JavaScript","has_issues":false,"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":"krampstudio:master","ref":"master","sha":"2a0554369b3f569231f3c7d8b65f58c674dc2f1a","user":{"login":"krampstudio","id":468620,"avatar_url":"https://avatars.githubusercontent.com/u/468620?v=3","gravatar_id":"","url":"https://api.github.com/users/krampstudio","html_url":"https://github.com/krampstudio","followers_url":"https://api.github.com/users/krampstudio/followers","following_url":"https://api.github.com/users/krampstudio/following{/other_user}","gists_url":"https://api.github.com/users/krampstudio/gists{/gist_id}","starred_url":"https://api.github.com/users/krampstudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krampstudio/subscriptions","organizations_url":"https://api.github.com/users/krampstudio/orgs","repos_url":"https://api.github.com/users/krampstudio/repos","events_url":"https://api.github.com/users/krampstudio/events{/privacy}","received_events_url":"https://api.github.com/users/krampstudio/received_events","type":"User","site_admin":false},"repo":{"id":5925629,"name":"grunt-jsdoc","full_name":"krampstudio/grunt-jsdoc","owner":{"login":"krampstudio","id":468620,"avatar_url":"https://avatars.githubusercontent.com/u/468620?v=3","gravatar_id":"","url":"https://api.github.com/users/krampstudio","html_url":"https://github.com/krampstudio","followers_url":"https://api.github.com/users/krampstudio/followers","following_url":"https://api.github.com/users/krampstudio/following{/other_user}","gists_url":"https://api.github.com/users/krampstudio/gists{/gist_id}","starred_url":"https://api.github.com/users/krampstudio/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/krampstudio/subscriptions","organizations_url":"https://api.github.com/users/krampstudio/orgs","repos_url":"https://api.github.com/users/krampstudio/repos","events_url":"https://api.github.com/users/krampstudio/events{/privacy}","received_events_url":"https://api.github.com/users/krampstudio/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/krampstudio/grunt-jsdoc","description":"A grunt plugin to generate javascript doc by running jsdoc3 on your grunt projects.","fork":false,"url":"https://api.github.com/repos/krampstudio/grunt-jsdoc","forks_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/forks","keys_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/keys{/key_id}","collaborators_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/teams","hooks_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/hooks","issue_events_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/issues/events{/number}","events_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/events","assignees_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/assignees{/user}","branches_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/branches{/branch}","tags_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/tags","blobs_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/git/refs{/sha}","trees_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/git/trees{/sha}","statuses_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/statuses/{sha}","languages_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/languages","stargazers_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/stargazers","contributors_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/contributors","subscribers_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/subscribers","subscription_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/subscription","commits_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/commits{/sha}","git_commits_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/git/commits{/sha}","comments_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/comments{/number}","issue_comment_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/issues/comments{/number}","contents_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/contents/{+path}","compare_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/compare/{base}...{head}","merges_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/merges","archive_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/downloads","issues_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/issues{/number}","pulls_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/pulls{/number}","milestones_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/milestones{/number}","notifications_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/labels{/name}","releases_url":"https://api.github.com/repos/krampstudio/grunt-jsdoc/releases{/id}","created_at":"2012-09-23T20:01:07Z","updated_at":"2015-09-11T15:34:59Z","pushed_at":"2015-09-13T21:47:58Z","git_url":"git://github.com/krampstudio/grunt-jsdoc.git","ssh_url":"git@github.com:krampstudio/grunt-jsdoc.git","clone_url":"https://github.com/krampstudio/grunt-jsdoc.git","svn_url":"https://github.com/krampstudio/grunt-jsdoc","homepage":"","size":643,"stargazers_count":307,"watchers_count":307,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":64,"mirror_url":null,"open_issues_count":12,"forks":64,"open_issues":12,"watchers":307,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/krampstudio/grunt-jsdoc/pulls/146"},"html":{"href":"https://github.com/krampstudio/grunt-jsdoc/pull/146"},"issue":{"href":"https://api.github.com/repos/krampstudio/grunt-jsdoc/issues/146"},"comments":{"href":"https://api.github.com/repos/krampstudio/grunt-jsdoc/issues/146/comments"},"review_comments":{"href":"https://api.github.com/repos/krampstudio/grunt-jsdoc/pulls/146/comments"},"review_comment":{"href":"https://api.github.com/repos/krampstudio/grunt-jsdoc/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/krampstudio/grunt-jsdoc/pulls/146/commits"},"statuses":{"href":"https://api.github.com/repos/krampstudio/grunt-jsdoc/statuses/3258a94957a202e2acf8f260d0c9480d7c40ef0c"}},"merged":false,"mergeable":null,"mergeable_state":"unknown","merged_by":null,"comments":0,"review_comments":0,"commits":2,"additions":3,"deletions":3,"changed_files":2}}