{"action":"created","comment":{"url":"https://api.github.com/repos/ramda/ramda/pulls/comments/31872560","id":31872560,"diff_hunk":"@@ -21,10 +20,24 @@ var template = fs.readFileSync(path.join(__dirname, 'template.js'),\n //  version :: String\n var version = require('../package.json').version;\n \n-//  $pathEq = [String] -> a -> Object -> ()\n-var $pathEq = R.curry(function(path, expected, obj) {\n-  assert.strictEqual(R.path(path, obj), expected);\n-});\n+//  logWithPrefix = String -> String -> ()\n+var logWithPrefix = R.curryN(2, R.pipe(\n+  R.concat,\n+  R.concat(_, '\\n'),\n+  function(str) {\n+    process.stderr.write(str);\n+  }\n+));","path":"scripts/build","position":23,"original_position":23,"commit_id":"0ea04fb3632527d12f0eb32996ecfa63614fa0cb","original_commit_id":"0ea04fb3632527d12f0eb32996ecfa63614fa0cb","user":{"login":"davidchambers","id":210406,"avatar_url":"https://avatars.githubusercontent.com/u/210406?v=3","gravatar_id":"","url":"https://api.github.com/users/davidchambers","html_url":"https://github.com/davidchambers","followers_url":"https://api.github.com/users/davidchambers/followers","following_url":"https://api.github.com/users/davidchambers/following{/other_user}","gists_url":"https://api.github.com/users/davidchambers/gists{/gist_id}","starred_url":"https://api.github.com/users/davidchambers/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/davidchambers/subscriptions","organizations_url":"https://api.github.com/users/davidchambers/orgs","repos_url":"https://api.github.com/users/davidchambers/repos","events_url":"https://api.github.com/users/davidchambers/events{/privacy}","received_events_url":"https://api.github.com/users/davidchambers/received_events","type":"User","site_admin":false},"body":"I think this would read better without the pipe:\r\n\r\n```javascript\r\nvar logWithPrefix = R.curry(function(prefix, message) {\r\n  process.stderr.write(prefix + message + '\\n');\r\n});\r\n```\r\n","created_at":"2015-06-07T00:09:04Z","updated_at":"2015-06-07T00:09:04Z","html_url":"https://github.com/ramda/ramda/pull/1163#discussion_r31872560","pull_request_url":"https://api.github.com/repos/ramda/ramda/pulls/1163","_links":{"self":{"href":"https://api.github.com/repos/ramda/ramda/pulls/comments/31872560"},"html":{"href":"https://github.com/ramda/ramda/pull/1163#discussion_r31872560"},"pull_request":{"href":"https://api.github.com/repos/ramda/ramda/pulls/1163"}}},"pull_request":{"url":"https://api.github.com/repos/ramda/ramda/pulls/1163","id":37098667,"html_url":"https://github.com/ramda/ramda/pull/1163","diff_url":"https://github.com/ramda/ramda/pull/1163.diff","patch_url":"https://github.com/ramda/ramda/pull/1163.patch","issue_url":"https://api.github.com/repos/ramda/ramda/issues/1163","number":1163,"state":"open","locked":false,"title":"Adds stderr logging to `scripts/build`","user":{"login":"scott-christopher","id":8951601,"avatar_url":"https://avatars.githubusercontent.com/u/8951601?v=3","gravatar_id":"","url":"https://api.github.com/users/scott-christopher","html_url":"https://github.com/scott-christopher","followers_url":"https://api.github.com/users/scott-christopher/followers","following_url":"https://api.github.com/users/scott-christopher/following{/other_user}","gists_url":"https://api.github.com/users/scott-christopher/gists{/gist_id}","starred_url":"https://api.github.com/users/scott-christopher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scott-christopher/subscriptions","organizations_url":"https://api.github.com/users/scott-christopher/orgs","repos_url":"https://api.github.com/users/scott-christopher/repos","events_url":"https://api.github.com/users/scott-christopher/events{/privacy}","received_events_url":"https://api.github.com/users/scott-christopher/received_events","type":"User","site_admin":false},"body":"This change adds logging messages for some of the various error scenarios in the build script that were previously handled with `assert`s.\r\n\r\nSome examples:\r\n```\r\n>>> ERROR: Dependency declared with different variable name: `equal` & `./equals` in /Users/Scott/build/ramda/src/uniq.js\r\n```\r\n```\r\n>>> ERROR: Dependencies not declared in alphabetical order in /Users/Scott/build/ramda/src/uniq.js\r\n```\r\n```\r\n>>> ERROR: module.exports not positioned last in /Users/Scott/build/ramda/src/uniq.js\r\n```\r\n```\r\n>>> WARNING: Top-level declaration `foo` ignored in /Users/Scott/build/ramda/src/uniq.js:23\r\n```\r\n\r\nThe logic of the build script itself should not have changed.\r\n```\r\n> git checkout build-logging && scripts/build --complete > build-logging.js\r\n> git checkout master && scripts/build --complete > master.js\r\n> diff master.js build-logging.js | wc -l\r\n0\r\n```","created_at":"2015-06-06T23:45:03Z","updated_at":"2015-06-07T00:09:04Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6f95a7561eb84c7652b9042dc9d9a0fba54a980f","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ramda/ramda/pulls/1163/commits","review_comments_url":"https://api.github.com/repos/ramda/ramda/pulls/1163/comments","review_comment_url":"https://api.github.com/repos/ramda/ramda/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ramda/ramda/issues/1163/comments","statuses_url":"https://api.github.com/repos/ramda/ramda/statuses/0ea04fb3632527d12f0eb32996ecfa63614fa0cb","head":{"label":"scott-christopher:build-logging","ref":"build-logging","sha":"0ea04fb3632527d12f0eb32996ecfa63614fa0cb","user":{"login":"scott-christopher","id":8951601,"avatar_url":"https://avatars.githubusercontent.com/u/8951601?v=3","gravatar_id":"","url":"https://api.github.com/users/scott-christopher","html_url":"https://github.com/scott-christopher","followers_url":"https://api.github.com/users/scott-christopher/followers","following_url":"https://api.github.com/users/scott-christopher/following{/other_user}","gists_url":"https://api.github.com/users/scott-christopher/gists{/gist_id}","starred_url":"https://api.github.com/users/scott-christopher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scott-christopher/subscriptions","organizations_url":"https://api.github.com/users/scott-christopher/orgs","repos_url":"https://api.github.com/users/scott-christopher/repos","events_url":"https://api.github.com/users/scott-christopher/events{/privacy}","received_events_url":"https://api.github.com/users/scott-christopher/received_events","type":"User","site_admin":false},"repo":{"id":32675617,"name":"ramda","full_name":"scott-christopher/ramda","owner":{"login":"scott-christopher","id":8951601,"avatar_url":"https://avatars.githubusercontent.com/u/8951601?v=3","gravatar_id":"","url":"https://api.github.com/users/scott-christopher","html_url":"https://github.com/scott-christopher","followers_url":"https://api.github.com/users/scott-christopher/followers","following_url":"https://api.github.com/users/scott-christopher/following{/other_user}","gists_url":"https://api.github.com/users/scott-christopher/gists{/gist_id}","starred_url":"https://api.github.com/users/scott-christopher/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/scott-christopher/subscriptions","organizations_url":"https://api.github.com/users/scott-christopher/orgs","repos_url":"https://api.github.com/users/scott-christopher/repos","events_url":"https://api.github.com/users/scott-christopher/events{/privacy}","received_events_url":"https://api.github.com/users/scott-christopher/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/scott-christopher/ramda","description":":ram: Practical functional Javascript","fork":true,"url":"https://api.github.com/repos/scott-christopher/ramda","forks_url":"https://api.github.com/repos/scott-christopher/ramda/forks","keys_url":"https://api.github.com/repos/scott-christopher/ramda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/scott-christopher/ramda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/scott-christopher/ramda/teams","hooks_url":"https://api.github.com/repos/scott-christopher/ramda/hooks","issue_events_url":"https://api.github.com/repos/scott-christopher/ramda/issues/events{/number}","events_url":"https://api.github.com/repos/scott-christopher/ramda/events","assignees_url":"https://api.github.com/repos/scott-christopher/ramda/assignees{/user}","branches_url":"https://api.github.com/repos/scott-christopher/ramda/branches{/branch}","tags_url":"https://api.github.com/repos/scott-christopher/ramda/tags","blobs_url":"https://api.github.com/repos/scott-christopher/ramda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/scott-christopher/ramda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/scott-christopher/ramda/git/refs{/sha}","trees_url":"https://api.github.com/repos/scott-christopher/ramda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/scott-christopher/ramda/statuses/{sha}","languages_url":"https://api.github.com/repos/scott-christopher/ramda/languages","stargazers_url":"https://api.github.com/repos/scott-christopher/ramda/stargazers","contributors_url":"https://api.github.com/repos/scott-christopher/ramda/contributors","subscribers_url":"https://api.github.com/repos/scott-christopher/ramda/subscribers","subscription_url":"https://api.github.com/repos/scott-christopher/ramda/subscription","commits_url":"https://api.github.com/repos/scott-christopher/ramda/commits{/sha}","git_commits_url":"https://api.github.com/repos/scott-christopher/ramda/git/commits{/sha}","comments_url":"https://api.github.com/repos/scott-christopher/ramda/comments{/number}","issue_comment_url":"https://api.github.com/repos/scott-christopher/ramda/issues/comments{/number}","contents_url":"https://api.github.com/repos/scott-christopher/ramda/contents/{+path}","compare_url":"https://api.github.com/repos/scott-christopher/ramda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/scott-christopher/ramda/merges","archive_url":"https://api.github.com/repos/scott-christopher/ramda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/scott-christopher/ramda/downloads","issues_url":"https://api.github.com/repos/scott-christopher/ramda/issues{/number}","pulls_url":"https://api.github.com/repos/scott-christopher/ramda/pulls{/number}","milestones_url":"https://api.github.com/repos/scott-christopher/ramda/milestones{/number}","notifications_url":"https://api.github.com/repos/scott-christopher/ramda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/scott-christopher/ramda/labels{/name}","releases_url":"https://api.github.com/repos/scott-christopher/ramda/releases{/id}","created_at":"2015-03-22T12:58:30Z","updated_at":"2015-03-25T02:47:09Z","pushed_at":"2015-06-07T00:07:08Z","git_url":"git://github.com/scott-christopher/ramda.git","ssh_url":"git@github.com:scott-christopher/ramda.git","clone_url":"https://github.com/scott-christopher/ramda.git","svn_url":"https://github.com/scott-christopher/ramda","homepage":"http://ramdajs.com","size":4664,"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":"ramda:master","ref":"master","sha":"464830db172dad39f6c0efc59f1ae9b5465facc1","user":{"login":"ramda","id":5298359,"avatar_url":"https://avatars.githubusercontent.com/u/5298359?v=3","gravatar_id":"","url":"https://api.github.com/users/ramda","html_url":"https://github.com/ramda","followers_url":"https://api.github.com/users/ramda/followers","following_url":"https://api.github.com/users/ramda/following{/other_user}","gists_url":"https://api.github.com/users/ramda/gists{/gist_id}","starred_url":"https://api.github.com/users/ramda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramda/subscriptions","organizations_url":"https://api.github.com/users/ramda/orgs","repos_url":"https://api.github.com/users/ramda/repos","events_url":"https://api.github.com/users/ramda/events{/privacy}","received_events_url":"https://api.github.com/users/ramda/received_events","type":"Organization","site_admin":false},"repo":{"id":10851820,"name":"ramda","full_name":"ramda/ramda","owner":{"login":"ramda","id":5298359,"avatar_url":"https://avatars.githubusercontent.com/u/5298359?v=3","gravatar_id":"","url":"https://api.github.com/users/ramda","html_url":"https://github.com/ramda","followers_url":"https://api.github.com/users/ramda/followers","following_url":"https://api.github.com/users/ramda/following{/other_user}","gists_url":"https://api.github.com/users/ramda/gists{/gist_id}","starred_url":"https://api.github.com/users/ramda/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ramda/subscriptions","organizations_url":"https://api.github.com/users/ramda/orgs","repos_url":"https://api.github.com/users/ramda/repos","events_url":"https://api.github.com/users/ramda/events{/privacy}","received_events_url":"https://api.github.com/users/ramda/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ramda/ramda","description":":ram: Practical functional Javascript","fork":false,"url":"https://api.github.com/repos/ramda/ramda","forks_url":"https://api.github.com/repos/ramda/ramda/forks","keys_url":"https://api.github.com/repos/ramda/ramda/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ramda/ramda/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ramda/ramda/teams","hooks_url":"https://api.github.com/repos/ramda/ramda/hooks","issue_events_url":"https://api.github.com/repos/ramda/ramda/issues/events{/number}","events_url":"https://api.github.com/repos/ramda/ramda/events","assignees_url":"https://api.github.com/repos/ramda/ramda/assignees{/user}","branches_url":"https://api.github.com/repos/ramda/ramda/branches{/branch}","tags_url":"https://api.github.com/repos/ramda/ramda/tags","blobs_url":"https://api.github.com/repos/ramda/ramda/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ramda/ramda/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ramda/ramda/git/refs{/sha}","trees_url":"https://api.github.com/repos/ramda/ramda/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ramda/ramda/statuses/{sha}","languages_url":"https://api.github.com/repos/ramda/ramda/languages","stargazers_url":"https://api.github.com/repos/ramda/ramda/stargazers","contributors_url":"https://api.github.com/repos/ramda/ramda/contributors","subscribers_url":"https://api.github.com/repos/ramda/ramda/subscribers","subscription_url":"https://api.github.com/repos/ramda/ramda/subscription","commits_url":"https://api.github.com/repos/ramda/ramda/commits{/sha}","git_commits_url":"https://api.github.com/repos/ramda/ramda/git/commits{/sha}","comments_url":"https://api.github.com/repos/ramda/ramda/comments{/number}","issue_comment_url":"https://api.github.com/repos/ramda/ramda/issues/comments{/number}","contents_url":"https://api.github.com/repos/ramda/ramda/contents/{+path}","compare_url":"https://api.github.com/repos/ramda/ramda/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ramda/ramda/merges","archive_url":"https://api.github.com/repos/ramda/ramda/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ramda/ramda/downloads","issues_url":"https://api.github.com/repos/ramda/ramda/issues{/number}","pulls_url":"https://api.github.com/repos/ramda/ramda/pulls{/number}","milestones_url":"https://api.github.com/repos/ramda/ramda/milestones{/number}","notifications_url":"https://api.github.com/repos/ramda/ramda/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ramda/ramda/labels{/name}","releases_url":"https://api.github.com/repos/ramda/ramda/releases{/id}","created_at":"2013-06-21T20:32:35Z","updated_at":"2015-06-06T13:34:02Z","pushed_at":"2015-06-07T00:07:08Z","git_url":"git://github.com/ramda/ramda.git","ssh_url":"git@github.com:ramda/ramda.git","clone_url":"https://github.com/ramda/ramda.git","svn_url":"https://github.com/ramda/ramda","homepage":"http://ramdajs.com","size":12277,"stargazers_count":2163,"watchers_count":2163,"language":"JavaScript","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":167,"mirror_url":null,"open_issues_count":48,"forks":167,"open_issues":48,"watchers":2163,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ramda/ramda/pulls/1163"},"html":{"href":"https://github.com/ramda/ramda/pull/1163"},"issue":{"href":"https://api.github.com/repos/ramda/ramda/issues/1163"},"comments":{"href":"https://api.github.com/repos/ramda/ramda/issues/1163/comments"},"review_comments":{"href":"https://api.github.com/repos/ramda/ramda/pulls/1163/comments"},"review_comment":{"href":"https://api.github.com/repos/ramda/ramda/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ramda/ramda/pulls/1163/commits"},"statuses":{"href":"https://api.github.com/repos/ramda/ramda/statuses/0ea04fb3632527d12f0eb32996ecfa63614fa0cb"}}}}