{"action":"created","comment":{"url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/pulls/comments/49687173","id":49687173,"diff_hunk":"@@ -27,6 +27,9 @@ def total_quantity\n   end\n \n   def total_cost\n-    \"%.2f\" % contents.map {|stache_id, quantity| Stache.find(stache_id).price * quantity}.sum\n+    costs = contents.map do\n+              |stache_id, quantity| Stache.find(stache_id).price * quantity\n+            end","path":"app/models/cart.rb","position":7,"original_position":7,"commit_id":"596afe2f91508b75a3f306b42864aaa86a8191db","original_commit_id":"596afe2f91508b75a3f306b42864aaa86a8191db","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":"`end` at 32, 12 is not aligned with `costs = contents.map do` at 30, 4.","created_at":"2016-01-14T04:41:41Z","updated_at":"2016-01-14T04:41:41Z","html_url":"https://github.com/bethsecor/little-shop-private-stache/pull/28#discussion_r49687173","pull_request_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/pulls/28","_links":{"self":{"href":"https://api.github.com/repos/bethsecor/little-shop-private-stache/pulls/comments/49687173"},"html":{"href":"https://github.com/bethsecor/little-shop-private-stache/pull/28#discussion_r49687173"},"pull_request":{"href":"https://api.github.com/repos/bethsecor/little-shop-private-stache/pulls/28"}}},"pull_request":{"url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/pulls/28","id":55979181,"html_url":"https://github.com/bethsecor/little-shop-private-stache/pull/28","diff_url":"https://github.com/bethsecor/little-shop-private-stache/pull/28.diff","patch_url":"https://github.com/bethsecor/little-shop-private-stache/pull/28.patch","issue_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/issues/28","number":28,"state":"open","locked":false,"title":"15 viewing past orders","user":{"login":"bethsecor","id":11467561,"avatar_url":"https://avatars.githubusercontent.com/u/11467561?v=3","gravatar_id":"","url":"https://api.github.com/users/bethsecor","html_url":"https://github.com/bethsecor","followers_url":"https://api.github.com/users/bethsecor/followers","following_url":"https://api.github.com/users/bethsecor/following{/other_user}","gists_url":"https://api.github.com/users/bethsecor/gists{/gist_id}","starred_url":"https://api.github.com/users/bethsecor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bethsecor/subscriptions","organizations_url":"https://api.github.com/users/bethsecor/orgs","repos_url":"https://api.github.com/users/bethsecor/repos","events_url":"https://api.github.com/users/bethsecor/events{/privacy}","received_events_url":"https://api.github.com/users/bethsecor/received_events","type":"User","site_admin":false},"body":"This branch completes two user stories for a user to be able to view past orders and view a show page for that order with many details including order status, total price, date order was submitted, date order was updated, and if order is complete or not. Orders index and show page need styling.\r\n\r\nConnects to #15 and connects to #16.","created_at":"2016-01-14T00:53:56Z","updated_at":"2016-01-14T04:41:41Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cfdecedf69389660db8b2d45007c2b91739744bf","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/pulls/28/commits","review_comments_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/pulls/28/comments","review_comment_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/pulls/comments{/number}","comments_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/issues/28/comments","statuses_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/statuses/596afe2f91508b75a3f306b42864aaa86a8191db","head":{"label":"bethsecor:15_viewing_past_orders","ref":"15_viewing_past_orders","sha":"596afe2f91508b75a3f306b42864aaa86a8191db","user":{"login":"bethsecor","id":11467561,"avatar_url":"https://avatars.githubusercontent.com/u/11467561?v=3","gravatar_id":"","url":"https://api.github.com/users/bethsecor","html_url":"https://github.com/bethsecor","followers_url":"https://api.github.com/users/bethsecor/followers","following_url":"https://api.github.com/users/bethsecor/following{/other_user}","gists_url":"https://api.github.com/users/bethsecor/gists{/gist_id}","starred_url":"https://api.github.com/users/bethsecor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bethsecor/subscriptions","organizations_url":"https://api.github.com/users/bethsecor/orgs","repos_url":"https://api.github.com/users/bethsecor/repos","events_url":"https://api.github.com/users/bethsecor/events{/privacy}","received_events_url":"https://api.github.com/users/bethsecor/received_events","type":"User","site_admin":false},"repo":{"id":49443250,"name":"little-shop-private-stache","full_name":"bethsecor/little-shop-private-stache","owner":{"login":"bethsecor","id":11467561,"avatar_url":"https://avatars.githubusercontent.com/u/11467561?v=3","gravatar_id":"","url":"https://api.github.com/users/bethsecor","html_url":"https://github.com/bethsecor","followers_url":"https://api.github.com/users/bethsecor/followers","following_url":"https://api.github.com/users/bethsecor/following{/other_user}","gists_url":"https://api.github.com/users/bethsecor/gists{/gist_id}","starred_url":"https://api.github.com/users/bethsecor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bethsecor/subscriptions","organizations_url":"https://api.github.com/users/bethsecor/orgs","repos_url":"https://api.github.com/users/bethsecor/repos","events_url":"https://api.github.com/users/bethsecor/events{/privacy}","received_events_url":"https://api.github.com/users/bethsecor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bethsecor/little-shop-private-stache","description":null,"fork":false,"url":"https://api.github.com/repos/bethsecor/little-shop-private-stache","forks_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/forks","keys_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/teams","hooks_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/hooks","issue_events_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/issues/events{/number}","events_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/events","assignees_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/assignees{/user}","branches_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/branches{/branch}","tags_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/tags","blobs_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/git/refs{/sha}","trees_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/statuses/{sha}","languages_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/languages","stargazers_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/stargazers","contributors_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/contributors","subscribers_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/subscribers","subscription_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/subscription","commits_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/commits{/sha}","git_commits_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/git/commits{/sha}","comments_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/comments{/number}","issue_comment_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/issues/comments{/number}","contents_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/contents/{+path}","compare_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/merges","archive_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/downloads","issues_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/issues{/number}","pulls_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/pulls{/number}","milestones_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/milestones{/number}","notifications_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/labels{/name}","releases_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/releases{/id}","created_at":"2016-01-11T17:46:07Z","updated_at":"2016-01-11T17:46:42Z","pushed_at":"2016-01-14T04:41:34Z","git_url":"git://github.com/bethsecor/little-shop-private-stache.git","ssh_url":"git@github.com:bethsecor/little-shop-private-stache.git","clone_url":"https://github.com/bethsecor/little-shop-private-stache.git","svn_url":"https://github.com/bethsecor/little-shop-private-stache","homepage":null,"size":609,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"base":{"label":"bethsecor:master","ref":"master","sha":"9de422c775a126380c5142d8e4e0b6916647da99","user":{"login":"bethsecor","id":11467561,"avatar_url":"https://avatars.githubusercontent.com/u/11467561?v=3","gravatar_id":"","url":"https://api.github.com/users/bethsecor","html_url":"https://github.com/bethsecor","followers_url":"https://api.github.com/users/bethsecor/followers","following_url":"https://api.github.com/users/bethsecor/following{/other_user}","gists_url":"https://api.github.com/users/bethsecor/gists{/gist_id}","starred_url":"https://api.github.com/users/bethsecor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bethsecor/subscriptions","organizations_url":"https://api.github.com/users/bethsecor/orgs","repos_url":"https://api.github.com/users/bethsecor/repos","events_url":"https://api.github.com/users/bethsecor/events{/privacy}","received_events_url":"https://api.github.com/users/bethsecor/received_events","type":"User","site_admin":false},"repo":{"id":49443250,"name":"little-shop-private-stache","full_name":"bethsecor/little-shop-private-stache","owner":{"login":"bethsecor","id":11467561,"avatar_url":"https://avatars.githubusercontent.com/u/11467561?v=3","gravatar_id":"","url":"https://api.github.com/users/bethsecor","html_url":"https://github.com/bethsecor","followers_url":"https://api.github.com/users/bethsecor/followers","following_url":"https://api.github.com/users/bethsecor/following{/other_user}","gists_url":"https://api.github.com/users/bethsecor/gists{/gist_id}","starred_url":"https://api.github.com/users/bethsecor/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bethsecor/subscriptions","organizations_url":"https://api.github.com/users/bethsecor/orgs","repos_url":"https://api.github.com/users/bethsecor/repos","events_url":"https://api.github.com/users/bethsecor/events{/privacy}","received_events_url":"https://api.github.com/users/bethsecor/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/bethsecor/little-shop-private-stache","description":null,"fork":false,"url":"https://api.github.com/repos/bethsecor/little-shop-private-stache","forks_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/forks","keys_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/keys{/key_id}","collaborators_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/teams","hooks_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/hooks","issue_events_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/issues/events{/number}","events_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/events","assignees_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/assignees{/user}","branches_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/branches{/branch}","tags_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/tags","blobs_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/git/refs{/sha}","trees_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/git/trees{/sha}","statuses_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/statuses/{sha}","languages_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/languages","stargazers_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/stargazers","contributors_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/contributors","subscribers_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/subscribers","subscription_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/subscription","commits_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/commits{/sha}","git_commits_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/git/commits{/sha}","comments_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/comments{/number}","issue_comment_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/issues/comments{/number}","contents_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/contents/{+path}","compare_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/compare/{base}...{head}","merges_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/merges","archive_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/downloads","issues_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/issues{/number}","pulls_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/pulls{/number}","milestones_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/milestones{/number}","notifications_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/labels{/name}","releases_url":"https://api.github.com/repos/bethsecor/little-shop-private-stache/releases{/id}","created_at":"2016-01-11T17:46:07Z","updated_at":"2016-01-11T17:46:42Z","pushed_at":"2016-01-14T04:41:34Z","git_url":"git://github.com/bethsecor/little-shop-private-stache.git","ssh_url":"git@github.com:bethsecor/little-shop-private-stache.git","clone_url":"https://github.com/bethsecor/little-shop-private-stache.git","svn_url":"https://github.com/bethsecor/little-shop-private-stache","homepage":null,"size":609,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":6,"forks":0,"open_issues":6,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/bethsecor/little-shop-private-stache/pulls/28"},"html":{"href":"https://github.com/bethsecor/little-shop-private-stache/pull/28"},"issue":{"href":"https://api.github.com/repos/bethsecor/little-shop-private-stache/issues/28"},"comments":{"href":"https://api.github.com/repos/bethsecor/little-shop-private-stache/issues/28/comments"},"review_comments":{"href":"https://api.github.com/repos/bethsecor/little-shop-private-stache/pulls/28/comments"},"review_comment":{"href":"https://api.github.com/repos/bethsecor/little-shop-private-stache/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/bethsecor/little-shop-private-stache/pulls/28/commits"},"statuses":{"href":"https://api.github.com/repos/bethsecor/little-shop-private-stache/statuses/596afe2f91508b75a3f306b42864aaa86a8191db"}}}}