{"action":"reopened","number":4,"pull_request":{"url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/pulls/4","id":47964683,"html_url":"https://github.com/sanyueyu/gulp-mock-server/pull/4","diff_url":"https://github.com/sanyueyu/gulp-mock-server/pull/4.diff","patch_url":"https://github.com/sanyueyu/gulp-mock-server/pull/4.patch","issue_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/issues/4","number":4,"state":"open","locked":false,"title":"Fix path separator issue on Windows vs Linux","user":{"login":"dstj","id":467692,"avatar_url":"https://avatars.githubusercontent.com/u/467692?v=3","gravatar_id":"","url":"https://api.github.com/users/dstj","html_url":"https://github.com/dstj","followers_url":"https://api.github.com/users/dstj/followers","following_url":"https://api.github.com/users/dstj/following{/other_user}","gists_url":"https://api.github.com/users/dstj/gists{/gist_id}","starred_url":"https://api.github.com/users/dstj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstj/subscriptions","organizations_url":"https://api.github.com/users/dstj/orgs","repos_url":"https://api.github.com/users/dstj/repos","events_url":"https://api.github.com/users/dstj/events{/privacy}","received_events_url":"https://api.github.com/users/dstj/received_events","type":"User","site_admin":false},"body":"On Windows, the hardcoded `/` directory separator caused the following error. Using `path.sep` fixes the issue.\r\n\r\n```\r\n[17:43:42] Using gulpfile D:\\Dev\\testing\\gulp-mock-server\\gulpfile.js\r\n[17:43:42] Starting 'mock'...\r\n[17:43:42] Webserver started at http://localhost:8090\r\nTypeError: Cannot call method 'split' of undefined\r\n    at D:\\Dev\\testing\\gulp-mock-server\\node_modules\\gulp-mock-server\\src\\mock.js:16:38\r\n    at Array.map (native)\r\n    at module.exports (D:\\Dev\\testing\\gulp-mock-server\\node_modules\\gulp-mock-server\\src\\mock.js:16:6)\r\n    at call (D:\\Dev\\testing\\gulp-mock-server\\node_modules\\gulp-mock-server\\node_modules\\connect\\index.js:239:7)\r\n    at next (D:\\Dev\\testing\\gulp-mock-server\\node_modules\\gulp-mock-server\\node_modules\\connect\\index.js:183:5)\r\n    at D:\\Dev\\testing\\gulp-mock-server\\node_modules\\gulp-mock-server\\node_modules\\connect-query\\index.js:8:5\r\n    at call (D:\\Dev\\testing\\gulp-mock-server\\node_modules\\gulp-mock-server\\node_modules\\connect\\index.js:239:7)\r\n    at next (D:\\Dev\\testing\\gulp-mock-server\\node_modules\\gulp-mock-server\\node_modules\\connect\\index.js:183:5)\r\n    at jsonParser (D:\\Dev\\testing\\gulp-mock-server\\node_modules\\gulp-mock-server\\node_modules\\body-parser\\lib\\types\\json.js:100:40)\r\n    at call (D:\\Dev\\testing\\gulp-mock-server\\node_modules\\gulp-mock-server\\node_modules\\connect\\index.js:239:7)\r\nTypeError: Cannot call method 'split' of undefined\r\n    at D:\\Dev\\testing\\gulp-mock-server\\node_modules\\gulp-mock-server\\src\\mock.js:16:38\r\n    at Array.map (native)\r\n    at module.exports (D:\\Dev\\testing\\gulp-mock-server\\node_modules\\gulp-mock-server\\src\\mock.js:16:6)\r\n    at call (D:\\Dev\\testing\\gulp-mock-server\\node_modules\\gulp-mock-server\\node_modules\\connect\\index.js:239:7)\r\n    at next (D:\\Dev\\testing\\gulp-mock-server\\node_modules\\gulp-mock-server\\node_modules\\connect\\index.js:183:5)\r\n    at D:\\Dev\\testing\\gulp-mock-server\\node_modules\\gulp-mock-server\\node_modules\\connect-query\\index.js:8:5\r\n    at call (D:\\Dev\\testing\\gulp-mock-server\\node_modules\\gulp-mock-server\\node_modules\\connect\\index.js:239:7)\r\n    at next (D:\\Dev\\testing\\gulp-mock-server\\node_modules\\gulp-mock-server\\node_modules\\connect\\index.js:183:5)\r\n    at jsonParser (D:\\Dev\\testing\\gulp-mock-server\\node_modules\\gulp-mock-server\\node_modules\\body-parser\\lib\\types\\json.js:100:40)\r\n    at call (D:\\Dev\\testing\\gulp-mock-server\\node_modules\\gulp-mock-server\\node_modules\\connect\\index.js:239:7)\r\n```","created_at":"2015-10-16T21:54:02Z","updated_at":"2015-10-16T22:12:08Z","closed_at":null,"merged_at":null,"merge_commit_sha":"7f86c27c1fb8ea22bebf346a2055edf4ac2c4373","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/pulls/4/commits","review_comments_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/pulls/4/comments","review_comment_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/pulls/comments{/number}","comments_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/issues/4/comments","statuses_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/statuses/0ad3c11119606670717780e17529e405acd059d9","head":{"label":"dstj:master","ref":"master","sha":"0ad3c11119606670717780e17529e405acd059d9","user":{"login":"dstj","id":467692,"avatar_url":"https://avatars.githubusercontent.com/u/467692?v=3","gravatar_id":"","url":"https://api.github.com/users/dstj","html_url":"https://github.com/dstj","followers_url":"https://api.github.com/users/dstj/followers","following_url":"https://api.github.com/users/dstj/following{/other_user}","gists_url":"https://api.github.com/users/dstj/gists{/gist_id}","starred_url":"https://api.github.com/users/dstj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstj/subscriptions","organizations_url":"https://api.github.com/users/dstj/orgs","repos_url":"https://api.github.com/users/dstj/repos","events_url":"https://api.github.com/users/dstj/events{/privacy}","received_events_url":"https://api.github.com/users/dstj/received_events","type":"User","site_admin":false},"repo":{"id":44412203,"name":"gulp-mock-server","full_name":"dstj/gulp-mock-server","owner":{"login":"dstj","id":467692,"avatar_url":"https://avatars.githubusercontent.com/u/467692?v=3","gravatar_id":"","url":"https://api.github.com/users/dstj","html_url":"https://github.com/dstj","followers_url":"https://api.github.com/users/dstj/followers","following_url":"https://api.github.com/users/dstj/following{/other_user}","gists_url":"https://api.github.com/users/dstj/gists{/gist_id}","starred_url":"https://api.github.com/users/dstj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dstj/subscriptions","organizations_url":"https://api.github.com/users/dstj/orgs","repos_url":"https://api.github.com/users/dstj/repos","events_url":"https://api.github.com/users/dstj/events{/privacy}","received_events_url":"https://api.github.com/users/dstj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dstj/gulp-mock-server","description":"to be the most simple gulp mock tool in the world","fork":true,"url":"https://api.github.com/repos/dstj/gulp-mock-server","forks_url":"https://api.github.com/repos/dstj/gulp-mock-server/forks","keys_url":"https://api.github.com/repos/dstj/gulp-mock-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dstj/gulp-mock-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dstj/gulp-mock-server/teams","hooks_url":"https://api.github.com/repos/dstj/gulp-mock-server/hooks","issue_events_url":"https://api.github.com/repos/dstj/gulp-mock-server/issues/events{/number}","events_url":"https://api.github.com/repos/dstj/gulp-mock-server/events","assignees_url":"https://api.github.com/repos/dstj/gulp-mock-server/assignees{/user}","branches_url":"https://api.github.com/repos/dstj/gulp-mock-server/branches{/branch}","tags_url":"https://api.github.com/repos/dstj/gulp-mock-server/tags","blobs_url":"https://api.github.com/repos/dstj/gulp-mock-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dstj/gulp-mock-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dstj/gulp-mock-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/dstj/gulp-mock-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dstj/gulp-mock-server/statuses/{sha}","languages_url":"https://api.github.com/repos/dstj/gulp-mock-server/languages","stargazers_url":"https://api.github.com/repos/dstj/gulp-mock-server/stargazers","contributors_url":"https://api.github.com/repos/dstj/gulp-mock-server/contributors","subscribers_url":"https://api.github.com/repos/dstj/gulp-mock-server/subscribers","subscription_url":"https://api.github.com/repos/dstj/gulp-mock-server/subscription","commits_url":"https://api.github.com/repos/dstj/gulp-mock-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/dstj/gulp-mock-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/dstj/gulp-mock-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/dstj/gulp-mock-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/dstj/gulp-mock-server/contents/{+path}","compare_url":"https://api.github.com/repos/dstj/gulp-mock-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dstj/gulp-mock-server/merges","archive_url":"https://api.github.com/repos/dstj/gulp-mock-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dstj/gulp-mock-server/downloads","issues_url":"https://api.github.com/repos/dstj/gulp-mock-server/issues{/number}","pulls_url":"https://api.github.com/repos/dstj/gulp-mock-server/pulls{/number}","milestones_url":"https://api.github.com/repos/dstj/gulp-mock-server/milestones{/number}","notifications_url":"https://api.github.com/repos/dstj/gulp-mock-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dstj/gulp-mock-server/labels{/name}","releases_url":"https://api.github.com/repos/dstj/gulp-mock-server/releases{/id}","created_at":"2015-10-16T21:46:51Z","updated_at":"2015-10-16T21:46:51Z","pushed_at":"2015-10-16T21:52:19Z","git_url":"git://github.com/dstj/gulp-mock-server.git","ssh_url":"git@github.com:dstj/gulp-mock-server.git","clone_url":"https://github.com/dstj/gulp-mock-server.git","svn_url":"https://github.com/dstj/gulp-mock-server","homepage":null,"size":986,"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":"sanyueyu:master","ref":"master","sha":"ab035e1dd5cc82c88ca7bad7350fa9187682b826","user":{"login":"sanyueyu","id":4980565,"avatar_url":"https://avatars.githubusercontent.com/u/4980565?v=3","gravatar_id":"","url":"https://api.github.com/users/sanyueyu","html_url":"https://github.com/sanyueyu","followers_url":"https://api.github.com/users/sanyueyu/followers","following_url":"https://api.github.com/users/sanyueyu/following{/other_user}","gists_url":"https://api.github.com/users/sanyueyu/gists{/gist_id}","starred_url":"https://api.github.com/users/sanyueyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanyueyu/subscriptions","organizations_url":"https://api.github.com/users/sanyueyu/orgs","repos_url":"https://api.github.com/users/sanyueyu/repos","events_url":"https://api.github.com/users/sanyueyu/events{/privacy}","received_events_url":"https://api.github.com/users/sanyueyu/received_events","type":"User","site_admin":false},"repo":{"id":43148741,"name":"gulp-mock-server","full_name":"sanyueyu/gulp-mock-server","owner":{"login":"sanyueyu","id":4980565,"avatar_url":"https://avatars.githubusercontent.com/u/4980565?v=3","gravatar_id":"","url":"https://api.github.com/users/sanyueyu","html_url":"https://github.com/sanyueyu","followers_url":"https://api.github.com/users/sanyueyu/followers","following_url":"https://api.github.com/users/sanyueyu/following{/other_user}","gists_url":"https://api.github.com/users/sanyueyu/gists{/gist_id}","starred_url":"https://api.github.com/users/sanyueyu/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/sanyueyu/subscriptions","organizations_url":"https://api.github.com/users/sanyueyu/orgs","repos_url":"https://api.github.com/users/sanyueyu/repos","events_url":"https://api.github.com/users/sanyueyu/events{/privacy}","received_events_url":"https://api.github.com/users/sanyueyu/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/sanyueyu/gulp-mock-server","description":"to be the most simple gulp mock tool in the world","fork":false,"url":"https://api.github.com/repos/sanyueyu/gulp-mock-server","forks_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/forks","keys_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/keys{/key_id}","collaborators_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/teams","hooks_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/hooks","issue_events_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/issues/events{/number}","events_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/events","assignees_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/assignees{/user}","branches_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/branches{/branch}","tags_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/tags","blobs_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/git/refs{/sha}","trees_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/git/trees{/sha}","statuses_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/statuses/{sha}","languages_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/languages","stargazers_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/stargazers","contributors_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/contributors","subscribers_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/subscribers","subscription_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/subscription","commits_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/commits{/sha}","git_commits_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/git/commits{/sha}","comments_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/comments{/number}","issue_comment_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/issues/comments{/number}","contents_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/contents/{+path}","compare_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/compare/{base}...{head}","merges_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/merges","archive_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/downloads","issues_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/issues{/number}","pulls_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/pulls{/number}","milestones_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/milestones{/number}","notifications_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/labels{/name}","releases_url":"https://api.github.com/repos/sanyueyu/gulp-mock-server/releases{/id}","created_at":"2015-09-25T14:22:59Z","updated_at":"2015-09-28T04:58:48Z","pushed_at":"2015-10-16T21:54:02Z","git_url":"git://github.com/sanyueyu/gulp-mock-server.git","ssh_url":"git@github.com:sanyueyu/gulp-mock-server.git","clone_url":"https://github.com/sanyueyu/gulp-mock-server.git","svn_url":"https://github.com/sanyueyu/gulp-mock-server","homepage":null,"size":986,"stargazers_count":2,"watchers_count":2,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"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/sanyueyu/gulp-mock-server/pulls/4"},"html":{"href":"https://github.com/sanyueyu/gulp-mock-server/pull/4"},"issue":{"href":"https://api.github.com/repos/sanyueyu/gulp-mock-server/issues/4"},"comments":{"href":"https://api.github.com/repos/sanyueyu/gulp-mock-server/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/sanyueyu/gulp-mock-server/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/sanyueyu/gulp-mock-server/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/sanyueyu/gulp-mock-server/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/sanyueyu/gulp-mock-server/statuses/0ad3c11119606670717780e17529e405acd059d9"}},"merged":false,"mergeable":true,"mergeable_state":"clean","merged_by":null,"comments":0,"review_comments":0,"commits":1,"additions":1,"deletions":1,"changed_files":1}}