{"action":"closed","number":100,"pull_request":{"url":"https://api.github.com/repos/smysnk/gulp-rev-all/pulls/100","id":38695049,"html_url":"https://github.com/smysnk/gulp-rev-all/pull/100","diff_url":"https://github.com/smysnk/gulp-rev-all/pull/100.diff","patch_url":"https://github.com/smysnk/gulp-rev-all/pull/100.patch","issue_url":"https://api.github.com/repos/smysnk/gulp-rev-all/issues/100","number":100,"state":"closed","locked":false,"title":"Allow constructor to be called as a function","user":{"login":"jordansexton","id":1173161,"avatar_url":"https://avatars.githubusercontent.com/u/1173161?v=3","gravatar_id":"","url":"https://api.github.com/users/jordansexton","html_url":"https://github.com/jordansexton","followers_url":"https://api.github.com/users/jordansexton/followers","following_url":"https://api.github.com/users/jordansexton/following{/other_user}","gists_url":"https://api.github.com/users/jordansexton/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansexton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansexton/subscriptions","organizations_url":"https://api.github.com/users/jordansexton/orgs","repos_url":"https://api.github.com/users/jordansexton/repos","events_url":"https://api.github.com/users/jordansexton/events{/privacy}","received_events_url":"https://api.github.com/users/jordansexton/received_events","type":"User","site_admin":false},"body":"Idiomatic use for gulp seems to be to pipe to the output of a function call, which also works more naturally with requires that need a setup.\r\n\r\nCurrent behavior (throwaway variable `require`):\r\n```javascript\r\nvar RevAll = require('gulp-rev-all');\r\nvar revision = new RevAll({ /*options*/ };\r\n```\r\n\r\nCurrent behavior as one-liner (non-idiomatically invoked `require`):\r\n```javascript\r\nvar revision = new (require('gulp-rev-all'))({ /*options*/ });\r\n```\r\n\r\nNew proposed behavior (idiomatic immediately invoked `require`):\r\n```javascript\r\nvar revision = require('gulp-rev-all')({ /*options*/ });\r\n```\r\n\r\nWhat do you think?\r\n\r\n","created_at":"2015-06-26T22:26:27Z","updated_at":"2016-03-03T21:55:42Z","closed_at":"2016-03-03T21:55:42Z","merged_at":"2016-03-03T21:55:42Z","merge_commit_sha":"157d807066bd68589db4d96b3edd3433545b163c","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/smysnk/gulp-rev-all/pulls/100/commits","review_comments_url":"https://api.github.com/repos/smysnk/gulp-rev-all/pulls/100/comments","review_comment_url":"https://api.github.com/repos/smysnk/gulp-rev-all/pulls/comments{/number}","comments_url":"https://api.github.com/repos/smysnk/gulp-rev-all/issues/100/comments","statuses_url":"https://api.github.com/repos/smysnk/gulp-rev-all/statuses/8efd7757e9888ed422a40f9a71147a4657dd0b7e","head":{"label":"jordansexton:patch-1","ref":"patch-1","sha":"8efd7757e9888ed422a40f9a71147a4657dd0b7e","user":{"login":"jordansexton","id":1173161,"avatar_url":"https://avatars.githubusercontent.com/u/1173161?v=3","gravatar_id":"","url":"https://api.github.com/users/jordansexton","html_url":"https://github.com/jordansexton","followers_url":"https://api.github.com/users/jordansexton/followers","following_url":"https://api.github.com/users/jordansexton/following{/other_user}","gists_url":"https://api.github.com/users/jordansexton/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansexton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansexton/subscriptions","organizations_url":"https://api.github.com/users/jordansexton/orgs","repos_url":"https://api.github.com/users/jordansexton/repos","events_url":"https://api.github.com/users/jordansexton/events{/privacy}","received_events_url":"https://api.github.com/users/jordansexton/received_events","type":"User","site_admin":false},"repo":{"id":38136763,"name":"gulp-rev-all","full_name":"jordansexton/gulp-rev-all","owner":{"login":"jordansexton","id":1173161,"avatar_url":"https://avatars.githubusercontent.com/u/1173161?v=3","gravatar_id":"","url":"https://api.github.com/users/jordansexton","html_url":"https://github.com/jordansexton","followers_url":"https://api.github.com/users/jordansexton/followers","following_url":"https://api.github.com/users/jordansexton/following{/other_user}","gists_url":"https://api.github.com/users/jordansexton/gists{/gist_id}","starred_url":"https://api.github.com/users/jordansexton/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jordansexton/subscriptions","organizations_url":"https://api.github.com/users/jordansexton/orgs","repos_url":"https://api.github.com/users/jordansexton/repos","events_url":"https://api.github.com/users/jordansexton/events{/privacy}","received_events_url":"https://api.github.com/users/jordansexton/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jordansexton/gulp-rev-all","description":"Static asset revisioning with dependency considerations, appends content hash to each filename (eg. unicorn.css => unicorn.098f6bcd.css), re-writes references.","fork":true,"url":"https://api.github.com/repos/jordansexton/gulp-rev-all","forks_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/forks","keys_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/teams","hooks_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/hooks","issue_events_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/issues/events{/number}","events_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/events","assignees_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/assignees{/user}","branches_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/branches{/branch}","tags_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/tags","blobs_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/git/refs{/sha}","trees_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/statuses/{sha}","languages_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/languages","stargazers_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/stargazers","contributors_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/contributors","subscribers_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/subscribers","subscription_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/subscription","commits_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/commits{/sha}","git_commits_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/git/commits{/sha}","comments_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/comments{/number}","issue_comment_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/issues/comments{/number}","contents_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/contents/{+path}","compare_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/merges","archive_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/downloads","issues_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/issues{/number}","pulls_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/pulls{/number}","milestones_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/milestones{/number}","notifications_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/labels{/name}","releases_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/releases{/id}","deployments_url":"https://api.github.com/repos/jordansexton/gulp-rev-all/deployments","created_at":"2015-06-26T22:19:45Z","updated_at":"2015-06-26T22:19:46Z","pushed_at":"2015-06-26T22:21:44Z","git_url":"git://github.com/jordansexton/gulp-rev-all.git","ssh_url":"git@github.com:jordansexton/gulp-rev-all.git","clone_url":"https://github.com/jordansexton/gulp-rev-all.git","svn_url":"https://github.com/jordansexton/gulp-rev-all","homepage":"https://www.npmjs.org/package/gulp-rev-all","size":729,"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":"smysnk:master","ref":"master","sha":"a76347b065e3fd564b56bb1e4baeb273043d8d61","user":{"login":"smysnk","id":1548173,"avatar_url":"https://avatars.githubusercontent.com/u/1548173?v=3","gravatar_id":"","url":"https://api.github.com/users/smysnk","html_url":"https://github.com/smysnk","followers_url":"https://api.github.com/users/smysnk/followers","following_url":"https://api.github.com/users/smysnk/following{/other_user}","gists_url":"https://api.github.com/users/smysnk/gists{/gist_id}","starred_url":"https://api.github.com/users/smysnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smysnk/subscriptions","organizations_url":"https://api.github.com/users/smysnk/orgs","repos_url":"https://api.github.com/users/smysnk/repos","events_url":"https://api.github.com/users/smysnk/events{/privacy}","received_events_url":"https://api.github.com/users/smysnk/received_events","type":"User","site_admin":false},"repo":{"id":17579475,"name":"gulp-rev-all","full_name":"smysnk/gulp-rev-all","owner":{"login":"smysnk","id":1548173,"avatar_url":"https://avatars.githubusercontent.com/u/1548173?v=3","gravatar_id":"","url":"https://api.github.com/users/smysnk","html_url":"https://github.com/smysnk","followers_url":"https://api.github.com/users/smysnk/followers","following_url":"https://api.github.com/users/smysnk/following{/other_user}","gists_url":"https://api.github.com/users/smysnk/gists{/gist_id}","starred_url":"https://api.github.com/users/smysnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smysnk/subscriptions","organizations_url":"https://api.github.com/users/smysnk/orgs","repos_url":"https://api.github.com/users/smysnk/repos","events_url":"https://api.github.com/users/smysnk/events{/privacy}","received_events_url":"https://api.github.com/users/smysnk/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/smysnk/gulp-rev-all","description":"Static asset revisioning with dependency considerations, appends content hash to each filename (eg. unicorn.css => unicorn.098f6bcd.css), re-writes references.","fork":false,"url":"https://api.github.com/repos/smysnk/gulp-rev-all","forks_url":"https://api.github.com/repos/smysnk/gulp-rev-all/forks","keys_url":"https://api.github.com/repos/smysnk/gulp-rev-all/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smysnk/gulp-rev-all/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smysnk/gulp-rev-all/teams","hooks_url":"https://api.github.com/repos/smysnk/gulp-rev-all/hooks","issue_events_url":"https://api.github.com/repos/smysnk/gulp-rev-all/issues/events{/number}","events_url":"https://api.github.com/repos/smysnk/gulp-rev-all/events","assignees_url":"https://api.github.com/repos/smysnk/gulp-rev-all/assignees{/user}","branches_url":"https://api.github.com/repos/smysnk/gulp-rev-all/branches{/branch}","tags_url":"https://api.github.com/repos/smysnk/gulp-rev-all/tags","blobs_url":"https://api.github.com/repos/smysnk/gulp-rev-all/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smysnk/gulp-rev-all/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smysnk/gulp-rev-all/git/refs{/sha}","trees_url":"https://api.github.com/repos/smysnk/gulp-rev-all/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smysnk/gulp-rev-all/statuses/{sha}","languages_url":"https://api.github.com/repos/smysnk/gulp-rev-all/languages","stargazers_url":"https://api.github.com/repos/smysnk/gulp-rev-all/stargazers","contributors_url":"https://api.github.com/repos/smysnk/gulp-rev-all/contributors","subscribers_url":"https://api.github.com/repos/smysnk/gulp-rev-all/subscribers","subscription_url":"https://api.github.com/repos/smysnk/gulp-rev-all/subscription","commits_url":"https://api.github.com/repos/smysnk/gulp-rev-all/commits{/sha}","git_commits_url":"https://api.github.com/repos/smysnk/gulp-rev-all/git/commits{/sha}","comments_url":"https://api.github.com/repos/smysnk/gulp-rev-all/comments{/number}","issue_comment_url":"https://api.github.com/repos/smysnk/gulp-rev-all/issues/comments{/number}","contents_url":"https://api.github.com/repos/smysnk/gulp-rev-all/contents/{+path}","compare_url":"https://api.github.com/repos/smysnk/gulp-rev-all/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smysnk/gulp-rev-all/merges","archive_url":"https://api.github.com/repos/smysnk/gulp-rev-all/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smysnk/gulp-rev-all/downloads","issues_url":"https://api.github.com/repos/smysnk/gulp-rev-all/issues{/number}","pulls_url":"https://api.github.com/repos/smysnk/gulp-rev-all/pulls{/number}","milestones_url":"https://api.github.com/repos/smysnk/gulp-rev-all/milestones{/number}","notifications_url":"https://api.github.com/repos/smysnk/gulp-rev-all/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smysnk/gulp-rev-all/labels{/name}","releases_url":"https://api.github.com/repos/smysnk/gulp-rev-all/releases{/id}","deployments_url":"https://api.github.com/repos/smysnk/gulp-rev-all/deployments","created_at":"2014-03-10T02:28:05Z","updated_at":"2016-02-29T15:05:07Z","pushed_at":"2016-03-03T21:55:43Z","git_url":"git://github.com/smysnk/gulp-rev-all.git","ssh_url":"git@github.com:smysnk/gulp-rev-all.git","clone_url":"https://github.com/smysnk/gulp-rev-all.git","svn_url":"https://github.com/smysnk/gulp-rev-all","homepage":"https://www.npmjs.org/package/gulp-rev-all","size":1651,"stargazers_count":262,"watchers_count":262,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":56,"mirror_url":null,"open_issues_count":33,"forks":56,"open_issues":33,"watchers":262,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/smysnk/gulp-rev-all/pulls/100"},"html":{"href":"https://github.com/smysnk/gulp-rev-all/pull/100"},"issue":{"href":"https://api.github.com/repos/smysnk/gulp-rev-all/issues/100"},"comments":{"href":"https://api.github.com/repos/smysnk/gulp-rev-all/issues/100/comments"},"review_comments":{"href":"https://api.github.com/repos/smysnk/gulp-rev-all/pulls/100/comments"},"review_comment":{"href":"https://api.github.com/repos/smysnk/gulp-rev-all/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/smysnk/gulp-rev-all/pulls/100/commits"},"statuses":{"href":"https://api.github.com/repos/smysnk/gulp-rev-all/statuses/8efd7757e9888ed422a40f9a71147a4657dd0b7e"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"smysnk","id":1548173,"avatar_url":"https://avatars.githubusercontent.com/u/1548173?v=3","gravatar_id":"","url":"https://api.github.com/users/smysnk","html_url":"https://github.com/smysnk","followers_url":"https://api.github.com/users/smysnk/followers","following_url":"https://api.github.com/users/smysnk/following{/other_user}","gists_url":"https://api.github.com/users/smysnk/gists{/gist_id}","starred_url":"https://api.github.com/users/smysnk/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smysnk/subscriptions","organizations_url":"https://api.github.com/users/smysnk/orgs","repos_url":"https://api.github.com/users/smysnk/repos","events_url":"https://api.github.com/users/smysnk/events{/privacy}","received_events_url":"https://api.github.com/users/smysnk/received_events","type":"User","site_admin":false},"comments":0,"review_comments":0,"commits":1,"additions":4,"deletions":0,"changed_files":1}}