{"action":"created","comment":{"url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/pulls/comments/51301263","id":51301263,"diff_hunk":"@@ -22,3 +22,12 @@\n AdminUser.create!(email: 'admin@example.com',\n                   password: 'password',\n                   password_confirmation: 'password')\n+\n+20.times do\n+  PendingPurchase.create!(\n+    user_id: rand(1...21),\n+    book_id: rand(1...100),\n+    price_at_purchase: rand(1...100),\n+    quantity: 1\n+   )","path":"db/seeds.rb","position":11,"original_position":11,"commit_id":"0b927cdc110462f9b0289a4151ad350d6773dcac","original_commit_id":"0b927cdc110462f9b0289a4151ad350d6773dcac","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":"Indent `)` the same as the start of the line where `(` is.","created_at":"2016-01-29T19:07:19Z","updated_at":"2016-01-29T19:07:19Z","html_url":"https://github.com/smashingboxes/ruti-bookstore/pull/6#discussion_r51301263","pull_request_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/pulls/6","_links":{"self":{"href":"https://api.github.com/repos/smashingboxes/ruti-bookstore/pulls/comments/51301263"},"html":{"href":"https://github.com/smashingboxes/ruti-bookstore/pull/6#discussion_r51301263"},"pull_request":{"href":"https://api.github.com/repos/smashingboxes/ruti-bookstore/pulls/6"}}},"pull_request":{"url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/pulls/6","id":57572659,"html_url":"https://github.com/smashingboxes/ruti-bookstore/pull/6","diff_url":"https://github.com/smashingboxes/ruti-bookstore/pull/6.diff","patch_url":"https://github.com/smashingboxes/ruti-bookstore/pull/6.patch","issue_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/issues/6","number":6,"state":"closed","locked":false,"title":"Create cart","user":{"login":"Ru-T","id":12813762,"avatar_url":"https://avatars.githubusercontent.com/u/12813762?v=3","gravatar_id":"","url":"https://api.github.com/users/Ru-T","html_url":"https://github.com/Ru-T","followers_url":"https://api.github.com/users/Ru-T/followers","following_url":"https://api.github.com/users/Ru-T/following{/other_user}","gists_url":"https://api.github.com/users/Ru-T/gists{/gist_id}","starred_url":"https://api.github.com/users/Ru-T/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ru-T/subscriptions","organizations_url":"https://api.github.com/users/Ru-T/orgs","repos_url":"https://api.github.com/users/Ru-T/repos","events_url":"https://api.github.com/users/Ru-T/events{/privacy}","received_events_url":"https://api.github.com/users/Ru-T/received_events","type":"User","site_admin":false},"body":"## What Changed?\r\n* Created pending_purchases table \r\n* Added index view for user's cart showing only their own pending purchases\r\n* Added create action for add to cart, defaulting book, price_at_purchase, and quantity at creation\r\n* Added destroy action for remove from cart\r\n* Added edit action and view to update the quantity from the cart\r\n* Passed integration suite for quantity adjustment\r\n\r\n## Why? \r\n* To allow users to add their books to a shopping cart before purchasing them","created_at":"2016-01-28T21:57:34Z","updated_at":"2016-01-29T19:07:19Z","closed_at":"2016-01-29T19:02:40Z","merged_at":"2016-01-29T19:02:40Z","merge_commit_sha":"a2d2d1f277521abe3c7334494a6ac8138c1d81e3","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/pulls/6/commits","review_comments_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/pulls/6/comments","review_comment_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/pulls/comments{/number}","comments_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/issues/6/comments","statuses_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/statuses/0b927cdc110462f9b0289a4151ad350d6773dcac","head":{"label":"smashingboxes:create_cart","ref":"create_cart","sha":"0b927cdc110462f9b0289a4151ad350d6773dcac","user":{"login":"smashingboxes","id":784473,"avatar_url":"https://avatars.githubusercontent.com/u/784473?v=3","gravatar_id":"","url":"https://api.github.com/users/smashingboxes","html_url":"https://github.com/smashingboxes","followers_url":"https://api.github.com/users/smashingboxes/followers","following_url":"https://api.github.com/users/smashingboxes/following{/other_user}","gists_url":"https://api.github.com/users/smashingboxes/gists{/gist_id}","starred_url":"https://api.github.com/users/smashingboxes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smashingboxes/subscriptions","organizations_url":"https://api.github.com/users/smashingboxes/orgs","repos_url":"https://api.github.com/users/smashingboxes/repos","events_url":"https://api.github.com/users/smashingboxes/events{/privacy}","received_events_url":"https://api.github.com/users/smashingboxes/received_events","type":"Organization","site_admin":false},"repo":{"id":50459758,"name":"ruti-bookstore","full_name":"smashingboxes/ruti-bookstore","owner":{"login":"smashingboxes","id":784473,"avatar_url":"https://avatars.githubusercontent.com/u/784473?v=3","gravatar_id":"","url":"https://api.github.com/users/smashingboxes","html_url":"https://github.com/smashingboxes","followers_url":"https://api.github.com/users/smashingboxes/followers","following_url":"https://api.github.com/users/smashingboxes/following{/other_user}","gists_url":"https://api.github.com/users/smashingboxes/gists{/gist_id}","starred_url":"https://api.github.com/users/smashingboxes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smashingboxes/subscriptions","organizations_url":"https://api.github.com/users/smashingboxes/orgs","repos_url":"https://api.github.com/users/smashingboxes/repos","events_url":"https://api.github.com/users/smashingboxes/events{/privacy}","received_events_url":"https://api.github.com/users/smashingboxes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/smashingboxes/ruti-bookstore","description":"","fork":false,"url":"https://api.github.com/repos/smashingboxes/ruti-bookstore","forks_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/forks","keys_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/teams","hooks_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/hooks","issue_events_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/issues/events{/number}","events_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/events","assignees_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/assignees{/user}","branches_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/branches{/branch}","tags_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/tags","blobs_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/git/refs{/sha}","trees_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/statuses/{sha}","languages_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/languages","stargazers_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/stargazers","contributors_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/contributors","subscribers_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/subscribers","subscription_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/subscription","commits_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/commits{/sha}","git_commits_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/git/commits{/sha}","comments_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/comments{/number}","issue_comment_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/issues/comments{/number}","contents_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/contents/{+path}","compare_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/merges","archive_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/downloads","issues_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/issues{/number}","pulls_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/pulls{/number}","milestones_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/milestones{/number}","notifications_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/labels{/name}","releases_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/releases{/id}","deployments_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/deployments","created_at":"2016-01-26T21:15:18Z","updated_at":"2016-01-26T21:16:20Z","pushed_at":"2016-01-29T19:02:42Z","git_url":"git://github.com/smashingboxes/ruti-bookstore.git","ssh_url":"git@github.com:smashingboxes/ruti-bookstore.git","clone_url":"https://github.com/smashingboxes/ruti-bookstore.git","svn_url":"https://github.com/smashingboxes/ruti-bookstore","homepage":null,"size":174,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"smashingboxes:master","ref":"master","sha":"500815ec15a2b2b84817bfd3c4e7554c0fac6f7a","user":{"login":"smashingboxes","id":784473,"avatar_url":"https://avatars.githubusercontent.com/u/784473?v=3","gravatar_id":"","url":"https://api.github.com/users/smashingboxes","html_url":"https://github.com/smashingboxes","followers_url":"https://api.github.com/users/smashingboxes/followers","following_url":"https://api.github.com/users/smashingboxes/following{/other_user}","gists_url":"https://api.github.com/users/smashingboxes/gists{/gist_id}","starred_url":"https://api.github.com/users/smashingboxes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smashingboxes/subscriptions","organizations_url":"https://api.github.com/users/smashingboxes/orgs","repos_url":"https://api.github.com/users/smashingboxes/repos","events_url":"https://api.github.com/users/smashingboxes/events{/privacy}","received_events_url":"https://api.github.com/users/smashingboxes/received_events","type":"Organization","site_admin":false},"repo":{"id":50459758,"name":"ruti-bookstore","full_name":"smashingboxes/ruti-bookstore","owner":{"login":"smashingboxes","id":784473,"avatar_url":"https://avatars.githubusercontent.com/u/784473?v=3","gravatar_id":"","url":"https://api.github.com/users/smashingboxes","html_url":"https://github.com/smashingboxes","followers_url":"https://api.github.com/users/smashingboxes/followers","following_url":"https://api.github.com/users/smashingboxes/following{/other_user}","gists_url":"https://api.github.com/users/smashingboxes/gists{/gist_id}","starred_url":"https://api.github.com/users/smashingboxes/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/smashingboxes/subscriptions","organizations_url":"https://api.github.com/users/smashingboxes/orgs","repos_url":"https://api.github.com/users/smashingboxes/repos","events_url":"https://api.github.com/users/smashingboxes/events{/privacy}","received_events_url":"https://api.github.com/users/smashingboxes/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/smashingboxes/ruti-bookstore","description":"","fork":false,"url":"https://api.github.com/repos/smashingboxes/ruti-bookstore","forks_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/forks","keys_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/keys{/key_id}","collaborators_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/teams","hooks_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/hooks","issue_events_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/issues/events{/number}","events_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/events","assignees_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/assignees{/user}","branches_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/branches{/branch}","tags_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/tags","blobs_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/git/refs{/sha}","trees_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/git/trees{/sha}","statuses_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/statuses/{sha}","languages_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/languages","stargazers_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/stargazers","contributors_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/contributors","subscribers_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/subscribers","subscription_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/subscription","commits_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/commits{/sha}","git_commits_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/git/commits{/sha}","comments_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/comments{/number}","issue_comment_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/issues/comments{/number}","contents_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/contents/{+path}","compare_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/compare/{base}...{head}","merges_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/merges","archive_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/downloads","issues_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/issues{/number}","pulls_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/pulls{/number}","milestones_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/milestones{/number}","notifications_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/labels{/name}","releases_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/releases{/id}","deployments_url":"https://api.github.com/repos/smashingboxes/ruti-bookstore/deployments","created_at":"2016-01-26T21:15:18Z","updated_at":"2016-01-26T21:16:20Z","pushed_at":"2016-01-29T19:02:42Z","git_url":"git://github.com/smashingboxes/ruti-bookstore.git","ssh_url":"git@github.com:smashingboxes/ruti-bookstore.git","clone_url":"https://github.com/smashingboxes/ruti-bookstore.git","svn_url":"https://github.com/smashingboxes/ruti-bookstore","homepage":null,"size":174,"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":1,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/smashingboxes/ruti-bookstore/pulls/6"},"html":{"href":"https://github.com/smashingboxes/ruti-bookstore/pull/6"},"issue":{"href":"https://api.github.com/repos/smashingboxes/ruti-bookstore/issues/6"},"comments":{"href":"https://api.github.com/repos/smashingboxes/ruti-bookstore/issues/6/comments"},"review_comments":{"href":"https://api.github.com/repos/smashingboxes/ruti-bookstore/pulls/6/comments"},"review_comment":{"href":"https://api.github.com/repos/smashingboxes/ruti-bookstore/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/smashingboxes/ruti-bookstore/pulls/6/commits"},"statuses":{"href":"https://api.github.com/repos/smashingboxes/ruti-bookstore/statuses/0b927cdc110462f9b0289a4151ad350d6773dcac"}}}}