{"action":"closed","number":92,"pull_request":{"url":"https://api.github.com/repos/martensonbj/little_shop/pulls/92","id":56257673,"html_url":"https://github.com/martensonbj/little_shop/pull/92","diff_url":"https://github.com/martensonbj/little_shop/pull/92.diff","patch_url":"https://github.com/martensonbj/little_shop/pull/92.patch","issue_url":"https://api.github.com/repos/martensonbj/little_shop/issues/92","number":92,"state":"closed","locked":false,"title":"closes #68 cannot checkout item with negative quantity","user":{"login":"ToniRib","id":10429574,"avatar_url":"https://avatars.githubusercontent.com/u/10429574?v=3","gravatar_id":"","url":"https://api.github.com/users/ToniRib","html_url":"https://github.com/ToniRib","followers_url":"https://api.github.com/users/ToniRib/followers","following_url":"https://api.github.com/users/ToniRib/following{/other_user}","gists_url":"https://api.github.com/users/ToniRib/gists{/gist_id}","starred_url":"https://api.github.com/users/ToniRib/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ToniRib/subscriptions","organizations_url":"https://api.github.com/users/ToniRib/orgs","repos_url":"https://api.github.com/users/ToniRib/repos","events_url":"https://api.github.com/users/ToniRib/events{/privacy}","received_events_url":"https://api.github.com/users/ToniRib/received_events","type":"User","site_admin":false},"body":"When in the cart, if a user updates the item quantity to a negative number or a letter, they see a message  telling them the item quantity is invalid and the quantity defaults back to whatever it was before they changed it. If they set the item quantity to zero and click update, the item is removed. Adds tests and controller private methods for these changes.","created_at":"2016-01-16T16:57:09Z","updated_at":"2016-01-16T20:02:59Z","closed_at":"2016-01-16T20:02:58Z","merged_at":"2016-01-16T20:02:58Z","merge_commit_sha":"07b3a851715cfdad29f570d4fe8d38cb3332492a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/martensonbj/little_shop/pulls/92/commits","review_comments_url":"https://api.github.com/repos/martensonbj/little_shop/pulls/92/comments","review_comment_url":"https://api.github.com/repos/martensonbj/little_shop/pulls/comments{/number}","comments_url":"https://api.github.com/repos/martensonbj/little_shop/issues/92/comments","statuses_url":"https://api.github.com/repos/martensonbj/little_shop/statuses/9003ddd6ba60844cd949b3163c965d43b72e45cc","head":{"label":"martensonbj:68_cannot-checkout-item-with-negative-quantity","ref":"68_cannot-checkout-item-with-negative-quantity","sha":"9003ddd6ba60844cd949b3163c965d43b72e45cc","user":{"login":"martensonbj","id":13123158,"avatar_url":"https://avatars.githubusercontent.com/u/13123158?v=3","gravatar_id":"","url":"https://api.github.com/users/martensonbj","html_url":"https://github.com/martensonbj","followers_url":"https://api.github.com/users/martensonbj/followers","following_url":"https://api.github.com/users/martensonbj/following{/other_user}","gists_url":"https://api.github.com/users/martensonbj/gists{/gist_id}","starred_url":"https://api.github.com/users/martensonbj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martensonbj/subscriptions","organizations_url":"https://api.github.com/users/martensonbj/orgs","repos_url":"https://api.github.com/users/martensonbj/repos","events_url":"https://api.github.com/users/martensonbj/events{/privacy}","received_events_url":"https://api.github.com/users/martensonbj/received_events","type":"User","site_admin":false},"repo":{"id":49446077,"name":"little_shop","full_name":"martensonbj/little_shop","owner":{"login":"martensonbj","id":13123158,"avatar_url":"https://avatars.githubusercontent.com/u/13123158?v=3","gravatar_id":"","url":"https://api.github.com/users/martensonbj","html_url":"https://github.com/martensonbj","followers_url":"https://api.github.com/users/martensonbj/followers","following_url":"https://api.github.com/users/martensonbj/following{/other_user}","gists_url":"https://api.github.com/users/martensonbj/gists{/gist_id}","starred_url":"https://api.github.com/users/martensonbj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martensonbj/subscriptions","organizations_url":"https://api.github.com/users/martensonbj/orgs","repos_url":"https://api.github.com/users/martensonbj/repos","events_url":"https://api.github.com/users/martensonbj/events{/privacy}","received_events_url":"https://api.github.com/users/martensonbj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/martensonbj/little_shop","description":null,"fork":false,"url":"https://api.github.com/repos/martensonbj/little_shop","forks_url":"https://api.github.com/repos/martensonbj/little_shop/forks","keys_url":"https://api.github.com/repos/martensonbj/little_shop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/martensonbj/little_shop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/martensonbj/little_shop/teams","hooks_url":"https://api.github.com/repos/martensonbj/little_shop/hooks","issue_events_url":"https://api.github.com/repos/martensonbj/little_shop/issues/events{/number}","events_url":"https://api.github.com/repos/martensonbj/little_shop/events","assignees_url":"https://api.github.com/repos/martensonbj/little_shop/assignees{/user}","branches_url":"https://api.github.com/repos/martensonbj/little_shop/branches{/branch}","tags_url":"https://api.github.com/repos/martensonbj/little_shop/tags","blobs_url":"https://api.github.com/repos/martensonbj/little_shop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/martensonbj/little_shop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/martensonbj/little_shop/git/refs{/sha}","trees_url":"https://api.github.com/repos/martensonbj/little_shop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/martensonbj/little_shop/statuses/{sha}","languages_url":"https://api.github.com/repos/martensonbj/little_shop/languages","stargazers_url":"https://api.github.com/repos/martensonbj/little_shop/stargazers","contributors_url":"https://api.github.com/repos/martensonbj/little_shop/contributors","subscribers_url":"https://api.github.com/repos/martensonbj/little_shop/subscribers","subscription_url":"https://api.github.com/repos/martensonbj/little_shop/subscription","commits_url":"https://api.github.com/repos/martensonbj/little_shop/commits{/sha}","git_commits_url":"https://api.github.com/repos/martensonbj/little_shop/git/commits{/sha}","comments_url":"https://api.github.com/repos/martensonbj/little_shop/comments{/number}","issue_comment_url":"https://api.github.com/repos/martensonbj/little_shop/issues/comments{/number}","contents_url":"https://api.github.com/repos/martensonbj/little_shop/contents/{+path}","compare_url":"https://api.github.com/repos/martensonbj/little_shop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/martensonbj/little_shop/merges","archive_url":"https://api.github.com/repos/martensonbj/little_shop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/martensonbj/little_shop/downloads","issues_url":"https://api.github.com/repos/martensonbj/little_shop/issues{/number}","pulls_url":"https://api.github.com/repos/martensonbj/little_shop/pulls{/number}","milestones_url":"https://api.github.com/repos/martensonbj/little_shop/milestones{/number}","notifications_url":"https://api.github.com/repos/martensonbj/little_shop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/martensonbj/little_shop/labels{/name}","releases_url":"https://api.github.com/repos/martensonbj/little_shop/releases{/id}","created_at":"2016-01-11T18:37:54Z","updated_at":"2016-01-11T18:40:37Z","pushed_at":"2016-01-16T20:02:59Z","git_url":"git://github.com/martensonbj/little_shop.git","ssh_url":"git@github.com:martensonbj/little_shop.git","clone_url":"https://github.com/martensonbj/little_shop.git","svn_url":"https://github.com/martensonbj/little_shop","homepage":null,"size":2788,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":14,"forks":0,"open_issues":14,"watchers":2,"default_branch":"master"}},"base":{"label":"martensonbj:master","ref":"master","sha":"5c4eacbe995c1e5d91ea9ffd0a3af907aea64e5a","user":{"login":"martensonbj","id":13123158,"avatar_url":"https://avatars.githubusercontent.com/u/13123158?v=3","gravatar_id":"","url":"https://api.github.com/users/martensonbj","html_url":"https://github.com/martensonbj","followers_url":"https://api.github.com/users/martensonbj/followers","following_url":"https://api.github.com/users/martensonbj/following{/other_user}","gists_url":"https://api.github.com/users/martensonbj/gists{/gist_id}","starred_url":"https://api.github.com/users/martensonbj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martensonbj/subscriptions","organizations_url":"https://api.github.com/users/martensonbj/orgs","repos_url":"https://api.github.com/users/martensonbj/repos","events_url":"https://api.github.com/users/martensonbj/events{/privacy}","received_events_url":"https://api.github.com/users/martensonbj/received_events","type":"User","site_admin":false},"repo":{"id":49446077,"name":"little_shop","full_name":"martensonbj/little_shop","owner":{"login":"martensonbj","id":13123158,"avatar_url":"https://avatars.githubusercontent.com/u/13123158?v=3","gravatar_id":"","url":"https://api.github.com/users/martensonbj","html_url":"https://github.com/martensonbj","followers_url":"https://api.github.com/users/martensonbj/followers","following_url":"https://api.github.com/users/martensonbj/following{/other_user}","gists_url":"https://api.github.com/users/martensonbj/gists{/gist_id}","starred_url":"https://api.github.com/users/martensonbj/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/martensonbj/subscriptions","organizations_url":"https://api.github.com/users/martensonbj/orgs","repos_url":"https://api.github.com/users/martensonbj/repos","events_url":"https://api.github.com/users/martensonbj/events{/privacy}","received_events_url":"https://api.github.com/users/martensonbj/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/martensonbj/little_shop","description":null,"fork":false,"url":"https://api.github.com/repos/martensonbj/little_shop","forks_url":"https://api.github.com/repos/martensonbj/little_shop/forks","keys_url":"https://api.github.com/repos/martensonbj/little_shop/keys{/key_id}","collaborators_url":"https://api.github.com/repos/martensonbj/little_shop/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/martensonbj/little_shop/teams","hooks_url":"https://api.github.com/repos/martensonbj/little_shop/hooks","issue_events_url":"https://api.github.com/repos/martensonbj/little_shop/issues/events{/number}","events_url":"https://api.github.com/repos/martensonbj/little_shop/events","assignees_url":"https://api.github.com/repos/martensonbj/little_shop/assignees{/user}","branches_url":"https://api.github.com/repos/martensonbj/little_shop/branches{/branch}","tags_url":"https://api.github.com/repos/martensonbj/little_shop/tags","blobs_url":"https://api.github.com/repos/martensonbj/little_shop/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/martensonbj/little_shop/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/martensonbj/little_shop/git/refs{/sha}","trees_url":"https://api.github.com/repos/martensonbj/little_shop/git/trees{/sha}","statuses_url":"https://api.github.com/repos/martensonbj/little_shop/statuses/{sha}","languages_url":"https://api.github.com/repos/martensonbj/little_shop/languages","stargazers_url":"https://api.github.com/repos/martensonbj/little_shop/stargazers","contributors_url":"https://api.github.com/repos/martensonbj/little_shop/contributors","subscribers_url":"https://api.github.com/repos/martensonbj/little_shop/subscribers","subscription_url":"https://api.github.com/repos/martensonbj/little_shop/subscription","commits_url":"https://api.github.com/repos/martensonbj/little_shop/commits{/sha}","git_commits_url":"https://api.github.com/repos/martensonbj/little_shop/git/commits{/sha}","comments_url":"https://api.github.com/repos/martensonbj/little_shop/comments{/number}","issue_comment_url":"https://api.github.com/repos/martensonbj/little_shop/issues/comments{/number}","contents_url":"https://api.github.com/repos/martensonbj/little_shop/contents/{+path}","compare_url":"https://api.github.com/repos/martensonbj/little_shop/compare/{base}...{head}","merges_url":"https://api.github.com/repos/martensonbj/little_shop/merges","archive_url":"https://api.github.com/repos/martensonbj/little_shop/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/martensonbj/little_shop/downloads","issues_url":"https://api.github.com/repos/martensonbj/little_shop/issues{/number}","pulls_url":"https://api.github.com/repos/martensonbj/little_shop/pulls{/number}","milestones_url":"https://api.github.com/repos/martensonbj/little_shop/milestones{/number}","notifications_url":"https://api.github.com/repos/martensonbj/little_shop/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/martensonbj/little_shop/labels{/name}","releases_url":"https://api.github.com/repos/martensonbj/little_shop/releases{/id}","created_at":"2016-01-11T18:37:54Z","updated_at":"2016-01-11T18:40:37Z","pushed_at":"2016-01-16T20:02:59Z","git_url":"git://github.com/martensonbj/little_shop.git","ssh_url":"git@github.com:martensonbj/little_shop.git","clone_url":"https://github.com/martensonbj/little_shop.git","svn_url":"https://github.com/martensonbj/little_shop","homepage":null,"size":2788,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":14,"forks":0,"open_issues":14,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/martensonbj/little_shop/pulls/92"},"html":{"href":"https://github.com/martensonbj/little_shop/pull/92"},"issue":{"href":"https://api.github.com/repos/martensonbj/little_shop/issues/92"},"comments":{"href":"https://api.github.com/repos/martensonbj/little_shop/issues/92/comments"},"review_comments":{"href":"https://api.github.com/repos/martensonbj/little_shop/pulls/92/comments"},"review_comment":{"href":"https://api.github.com/repos/martensonbj/little_shop/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/martensonbj/little_shop/pulls/92/commits"},"statuses":{"href":"https://api.github.com/repos/martensonbj/little_shop/statuses/9003ddd6ba60844cd949b3163c965d43b72e45cc"}},"merged":true,"mergeable":null,"mergeable_state":"unknown","merged_by":{"login":"Tman22","id":10391202,"avatar_url":"https://avatars.githubusercontent.com/u/10391202?v=3","gravatar_id":"","url":"https://api.github.com/users/Tman22","html_url":"https://github.com/Tman22","followers_url":"https://api.github.com/users/Tman22/followers","following_url":"https://api.github.com/users/Tman22/following{/other_user}","gists_url":"https://api.github.com/users/Tman22/gists{/gist_id}","starred_url":"https://api.github.com/users/Tman22/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Tman22/subscriptions","organizations_url":"https://api.github.com/users/Tman22/orgs","repos_url":"https://api.github.com/users/Tman22/repos","events_url":"https://api.github.com/users/Tman22/events{/privacy}","received_events_url":"https://api.github.com/users/Tman22/received_events","type":"User","site_admin":false},"comments":2,"review_comments":0,"commits":3,"additions":69,"deletions":7,"changed_files":2}}