GitHub PullRequestReviewCommentEvent at 2014-11-24 07:35:02
Repository: worldreader
Actor: houndci
Payload: {"action":"created","comment":{"url":"https://api.github.com/repos/calblueprint/worldreader/pulls/comments/20775547","id":20775547,"diff_hunk":"@@ -6,9 +6,34 @@ var Cart = Backbone.Model.extend({\n });\n \n var cart = new Cart({\n-  items : gon.cart\n+  items : gon.cart,\n });\n \n+var isPurchaseable = function() {\n+  donatedBooks = _.filter(cart.get(\"items\"), function(book) {\n+    return parseFloat(book.price) <= 0;\n+  });\n+  paidBooks = _.filter(cart.get(\"items\"), function(book) {\n+    return parseFloat(book.price) > 0;\n+  });\n+  return paidBooks.length >= donatedBooks.length;\n+}\n+\n+var makePurchase = function() {\n+  var book_ids = _.map(cart.get(\"items\"), function(book) {","path":"app/assets/javascripts/models/cart.js","position":19,"original_position":19,"commit_id":"b55a36ac3ca35f1b9e87d68a52412d82ab8c1837","original_commit_id":"b55a36ac3ca35f1b9e87d68a52412d82ab8c1837","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Identifier 'book_ids' is not in camel case.<br>'_' is not defined.","created_at":"2014-11-24T07:35:02Z","updated_at":"2014-11-24T07:35:02Z","html_url":"https://github.com/calblueprint/worldreader/pull/132#discussion_r20775547","pull_request_url":"https://api.github.com/repos/calblueprint/worldreader/pulls/132","_links":{"self":{"href":"https://api.github.com/repos/calblueprint/worldreader/pulls/comments/20775547"},"html":{"href":"https://github.com/calblueprint/worldreader/pull/132#discussion_r20775547"},"pull_request":{"href":"https://api.github.com/repos/calblueprint/worldreader/pulls/132"}}},"pull_request":{"url":"https://api.github.com/repos/calblueprint/worldreader/pulls/132","id":24916996,"html_url":"https://github.com/calblueprint/worldreader/pull/132","diff_url":"https://github.com/calblueprint/worldreader/pull/132.diff","patch_url":"https://github.com/calblueprint/worldreader/pull/132.patch","issue_url":"https://api.github.com/repos/calblueprint/worldreader/issues/132","number":132,"state":"open","locked":false,"title":"Varun/checkout page","user":{"login":"varunrau","id":1448222,"avatar_url":"https://avatars.githubusercontent.com/u/1448222?v=3","gravatar_id":"","url":"https://api.github.com/users/varunrau","html_url":"https://github.com/varunrau","followers_url":"https://api.github.com/users/varunrau/followers","following_url":"https://api.github.com/users/varunrau/following{/other_user}","gists_url":"https://api.github.com/users/varunrau/gists{/gist_id}","starred_url":"https://api.github.com/users/varunrau/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/varunrau/subscriptions","organizations_url":"https://api.github.com/users/varunrau/orgs","repos_url":"https://api.github.com/users/varunrau/repos","events_url":"https://api.github.com/users/varunrau/events{/privacy}","received_events_url":"https://api.github.com/users/varunrau/received_events","type":"User","site_admin":false},"body":"","created_at":"2014-11-24T07:35:00Z","updated_at":"2014-11-24T07:35:03Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6ad2e7c8688bfc63ac221f1a6267ea51d28c734e","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/calblueprint/worldreader/pulls/132/commits","review_comments_url":"https://api.github.com/repos/calblueprint/worldreader/pulls/132/comments","review_comment_url":"https://api.github.com/repos/calblueprint/worldreader/pulls/comments/{number}","comments_url":"https://api.github.com/repos/calblueprint/worldreader/issues/132/comments","statuses_url":"https://api.github.com/repos/calblueprint/worldreader/statuses/b55a36ac3ca35f1b9e87d68a52412d82ab8c1837","head":{"label":"calblueprint:varun/checkout-page","ref":"varun/checkout-page","sha":"b55a36ac3ca35f1b9e87d68a52412d82ab8c1837","user":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"repo":{"id":23782466,"name":"worldreader","full_name":"calblueprint/worldreader","owner":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/calblueprint/worldreader","description":"Delivering relevant e-books to students in sub-Saharan Africa","fork":false,"url":"https://api.github.com/repos/calblueprint/worldreader","forks_url":"https://api.github.com/repos/calblueprint/worldreader/forks","keys_url":"https://api.github.com/repos/calblueprint/worldreader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calblueprint/worldreader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calblueprint/worldreader/teams","hooks_url":"https://api.github.com/repos/calblueprint/worldreader/hooks","issue_events_url":"https://api.github.com/repos/calblueprint/worldreader/issues/events{/number}","events_url":"https://api.github.com/repos/calblueprint/worldreader/events","assignees_url":"https://api.github.com/repos/calblueprint/worldreader/assignees{/user}","branches_url":"https://api.github.com/repos/calblueprint/worldreader/branches{/branch}","tags_url":"https://api.github.com/repos/calblueprint/worldreader/tags","blobs_url":"https://api.github.com/repos/calblueprint/worldreader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calblueprint/worldreader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calblueprint/worldreader/git/refs{/sha}","trees_url":"https://api.github.com/repos/calblueprint/worldreader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calblueprint/worldreader/statuses/{sha}","languages_url":"https://api.github.com/repos/calblueprint/worldreader/languages","stargazers_url":"https://api.github.com/repos/calblueprint/worldreader/stargazers","contributors_url":"https://api.github.com/repos/calblueprint/worldreader/contributors","subscribers_url":"https://api.github.com/repos/calblueprint/worldreader/subscribers","subscription_url":"https://api.github.com/repos/calblueprint/worldreader/subscription","commits_url":"https://api.github.com/repos/calblueprint/worldreader/commits{/sha}","git_commits_url":"https://api.github.com/repos/calblueprint/worldreader/git/commits{/sha}","comments_url":"https://api.github.com/repos/calblueprint/worldreader/comments{/number}","issue_comment_url":"https://api.github.com/repos/calblueprint/worldreader/issues/comments/{number}","contents_url":"https://api.github.com/repos/calblueprint/worldreader/contents/{+path}","compare_url":"https://api.github.com/repos/calblueprint/worldreader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calblueprint/worldreader/merges","archive_url":"https://api.github.com/repos/calblueprint/worldreader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calblueprint/worldreader/downloads","issues_url":"https://api.github.com/repos/calblueprint/worldreader/issues{/number}","pulls_url":"https://api.github.com/repos/calblueprint/worldreader/pulls{/number}","milestones_url":"https://api.github.com/repos/calblueprint/worldreader/milestones{/number}","notifications_url":"https://api.github.com/repos/calblueprint/worldreader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calblueprint/worldreader/labels{/name}","releases_url":"https://api.github.com/repos/calblueprint/worldreader/releases{/id}","created_at":"2014-09-08T07:26:29Z","updated_at":"2014-11-24T04:10:11Z","pushed_at":"2014-11-24T07:32:35Z","git_url":"git://github.com/calblueprint/worldreader.git","ssh_url":"git@github.com:calblueprint/worldreader.git","clone_url":"https://github.com/calblueprint/worldreader.git","svn_url":"https://github.com/calblueprint/worldreader","homepage":"","size":3064,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":34,"forks":0,"open_issues":34,"watchers":4,"default_branch":"master"}},"base":{"label":"calblueprint:master","ref":"master","sha":"458f26baff7f8756654ea7a59909f034518cb804","user":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"repo":{"id":23782466,"name":"worldreader","full_name":"calblueprint/worldreader","owner":{"login":"calblueprint","id":2729578,"avatar_url":"https://avatars.githubusercontent.com/u/2729578?v=3","gravatar_id":"","url":"https://api.github.com/users/calblueprint","html_url":"https://github.com/calblueprint","followers_url":"https://api.github.com/users/calblueprint/followers","following_url":"https://api.github.com/users/calblueprint/following{/other_user}","gists_url":"https://api.github.com/users/calblueprint/gists{/gist_id}","starred_url":"https://api.github.com/users/calblueprint/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/calblueprint/subscriptions","organizations_url":"https://api.github.com/users/calblueprint/orgs","repos_url":"https://api.github.com/users/calblueprint/repos","events_url":"https://api.github.com/users/calblueprint/events{/privacy}","received_events_url":"https://api.github.com/users/calblueprint/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/calblueprint/worldreader","description":"Delivering relevant e-books to students in sub-Saharan Africa","fork":false,"url":"https://api.github.com/repos/calblueprint/worldreader","forks_url":"https://api.github.com/repos/calblueprint/worldreader/forks","keys_url":"https://api.github.com/repos/calblueprint/worldreader/keys{/key_id}","collaborators_url":"https://api.github.com/repos/calblueprint/worldreader/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/calblueprint/worldreader/teams","hooks_url":"https://api.github.com/repos/calblueprint/worldreader/hooks","issue_events_url":"https://api.github.com/repos/calblueprint/worldreader/issues/events{/number}","events_url":"https://api.github.com/repos/calblueprint/worldreader/events","assignees_url":"https://api.github.com/repos/calblueprint/worldreader/assignees{/user}","branches_url":"https://api.github.com/repos/calblueprint/worldreader/branches{/branch}","tags_url":"https://api.github.com/repos/calblueprint/worldreader/tags","blobs_url":"https://api.github.com/repos/calblueprint/worldreader/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/calblueprint/worldreader/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/calblueprint/worldreader/git/refs{/sha}","trees_url":"https://api.github.com/repos/calblueprint/worldreader/git/trees{/sha}","statuses_url":"https://api.github.com/repos/calblueprint/worldreader/statuses/{sha}","languages_url":"https://api.github.com/repos/calblueprint/worldreader/languages","stargazers_url":"https://api.github.com/repos/calblueprint/worldreader/stargazers","contributors_url":"https://api.github.com/repos/calblueprint/worldreader/contributors","subscribers_url":"https://api.github.com/repos/calblueprint/worldreader/subscribers","subscription_url":"https://api.github.com/repos/calblueprint/worldreader/subscription","commits_url":"https://api.github.com/repos/calblueprint/worldreader/commits{/sha}","git_commits_url":"https://api.github.com/repos/calblueprint/worldreader/git/commits{/sha}","comments_url":"https://api.github.com/repos/calblueprint/worldreader/comments{/number}","issue_comment_url":"https://api.github.com/repos/calblueprint/worldreader/issues/comments/{number}","contents_url":"https://api.github.com/repos/calblueprint/worldreader/contents/{+path}","compare_url":"https://api.github.com/repos/calblueprint/worldreader/compare/{base}...{head}","merges_url":"https://api.github.com/repos/calblueprint/worldreader/merges","archive_url":"https://api.github.com/repos/calblueprint/worldreader/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/calblueprint/worldreader/downloads","issues_url":"https://api.github.com/repos/calblueprint/worldreader/issues{/number}","pulls_url":"https://api.github.com/repos/calblueprint/worldreader/pulls{/number}","milestones_url":"https://api.github.com/repos/calblueprint/worldreader/milestones{/number}","notifications_url":"https://api.github.com/repos/calblueprint/worldreader/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/calblueprint/worldreader/labels{/name}","releases_url":"https://api.github.com/repos/calblueprint/worldreader/releases{/id}","created_at":"2014-09-08T07:26:29Z","updated_at":"2014-11-24T04:10:11Z","pushed_at":"2014-11-24T07:32:35Z","git_url":"git://github.com/calblueprint/worldreader.git","ssh_url":"git@github.com:calblueprint/worldreader.git","clone_url":"https://github.com/calblueprint/worldreader.git","svn_url":"https://github.com/calblueprint/worldreader","homepage":"","size":3064,"stargazers_count":4,"watchers_count":4,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":34,"forks":0,"open_issues":34,"watchers":4,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/calblueprint/worldreader/pulls/132"},"html":{"href":"https://github.com/calblueprint/worldreader/pull/132"},"issue":{"href":"https://api.github.com/repos/calblueprint/worldreader/issues/132"},"comments":{"href":"https://api.github.com/repos/calblueprint/worldreader/issues/132/comments"},"review_comments":{"href":"https://api.github.com/repos/calblueprint/worldreader/pulls/132/comments"},"review_comment":{"href":"https://api.github.com/repos/calblueprint/worldreader/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/calblueprint/worldreader/pulls/132/commits"},"statuses":{"href":"https://api.github.com/repos/calblueprint/worldreader/statuses/b55a36ac3ca35f1b9e87d68a52412d82ab8c1837"}}}}