{"action":"created","comment":{"url":"https://api.github.com/repos/pospieszynski/shop_sinatra/pulls/comments/71002007","id":71002007,"diff_hunk":"@@ -5,7 +5,8 @@ module Shop\n   class RemoveProductFromBasket\n     def call(id, quantity = 1)\n       commodity = FindProductInBasket.new().call(id)\n-      return unless commodity || commodity.quantity < quantity\n+      return unless commodity\n+      return unless commodity.quantity >= quantity","path":"lib/services/remove_product_from_basket.rb","position":6,"original_position":6,"commit_id":"abcbd0e47196d326e8140073f6713fa38d788eb7","original_commit_id":"abcbd0e47196d326e8140073f6713fa38d788eb7","user":{"login":"gotar","id":135318,"avatar_url":"https://avatars.githubusercontent.com/u/135318?v=3","gravatar_id":"","url":"https://api.github.com/users/gotar","html_url":"https://github.com/gotar","followers_url":"https://api.github.com/users/gotar/followers","following_url":"https://api.github.com/users/gotar/following{/other_user}","gists_url":"https://api.github.com/users/gotar/gists{/gist_id}","starred_url":"https://api.github.com/users/gotar/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/gotar/subscriptions","organizations_url":"https://api.github.com/users/gotar/orgs","repos_url":"https://api.github.com/users/gotar/repos","events_url":"https://api.github.com/users/gotar/events{/privacy}","received_events_url":"https://api.github.com/users/gotar/received_events","type":"User","site_admin":false},"body":"Putting it on one line was ok. ","created_at":"2016-07-15T16:33:46Z","updated_at":"2016-07-15T16:33:46Z","html_url":"https://github.com/pospieszynski/shop_sinatra/pull/2#discussion_r71002007","pull_request_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/pulls/2","_links":{"self":{"href":"https://api.github.com/repos/pospieszynski/shop_sinatra/pulls/comments/71002007"},"html":{"href":"https://github.com/pospieszynski/shop_sinatra/pull/2#discussion_r71002007"},"pull_request":{"href":"https://api.github.com/repos/pospieszynski/shop_sinatra/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/pospieszynski/shop_sinatra/pulls/2","id":77634920,"html_url":"https://github.com/pospieszynski/shop_sinatra/pull/2","diff_url":"https://github.com/pospieszynski/shop_sinatra/pull/2.diff","patch_url":"https://github.com/pospieszynski/shop_sinatra/pull/2.patch","issue_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/issues/2","number":2,"state":"open","locked":false,"title":"Req specs","user":{"login":"pospieszynski","id":15077823,"avatar_url":"https://avatars.githubusercontent.com/u/15077823?v=3","gravatar_id":"","url":"https://api.github.com/users/pospieszynski","html_url":"https://github.com/pospieszynski","followers_url":"https://api.github.com/users/pospieszynski/followers","following_url":"https://api.github.com/users/pospieszynski/following{/other_user}","gists_url":"https://api.github.com/users/pospieszynski/gists{/gist_id}","starred_url":"https://api.github.com/users/pospieszynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pospieszynski/subscriptions","organizations_url":"https://api.github.com/users/pospieszynski/orgs","repos_url":"https://api.github.com/users/pospieszynski/repos","events_url":"https://api.github.com/users/pospieszynski/events{/privacy}","received_events_url":"https://api.github.com/users/pospieszynski/received_events","type":"User","site_admin":false},"body":"My progress since yesterday:\r\nRequest and unit tests added + some very basic styling.\r\nPossible improvements, details or some missing tests are about to be added tommorow fi needed.\r\nI would appreciate some look through my code. ;]\r\n@gotar","created_at":"2016-07-15T15:35:59Z","updated_at":"2016-07-15T16:33:46Z","closed_at":null,"merged_at":null,"merge_commit_sha":"c4f9d18dd5e39ae3c58eff96c919d45d75e277d0","assignee":null,"assignees":[],"milestone":null,"commits_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/pulls/2/commits","review_comments_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/pulls/2/comments","review_comment_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/issues/2/comments","statuses_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/statuses/abcbd0e47196d326e8140073f6713fa38d788eb7","head":{"label":"pospieszynski:req_specs","ref":"req_specs","sha":"abcbd0e47196d326e8140073f6713fa38d788eb7","user":{"login":"pospieszynski","id":15077823,"avatar_url":"https://avatars.githubusercontent.com/u/15077823?v=3","gravatar_id":"","url":"https://api.github.com/users/pospieszynski","html_url":"https://github.com/pospieszynski","followers_url":"https://api.github.com/users/pospieszynski/followers","following_url":"https://api.github.com/users/pospieszynski/following{/other_user}","gists_url":"https://api.github.com/users/pospieszynski/gists{/gist_id}","starred_url":"https://api.github.com/users/pospieszynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pospieszynski/subscriptions","organizations_url":"https://api.github.com/users/pospieszynski/orgs","repos_url":"https://api.github.com/users/pospieszynski/repos","events_url":"https://api.github.com/users/pospieszynski/events{/privacy}","received_events_url":"https://api.github.com/users/pospieszynski/received_events","type":"User","site_admin":false},"repo":{"id":63146814,"name":"shop_sinatra","full_name":"pospieszynski/shop_sinatra","owner":{"login":"pospieszynski","id":15077823,"avatar_url":"https://avatars.githubusercontent.com/u/15077823?v=3","gravatar_id":"","url":"https://api.github.com/users/pospieszynski","html_url":"https://github.com/pospieszynski","followers_url":"https://api.github.com/users/pospieszynski/followers","following_url":"https://api.github.com/users/pospieszynski/following{/other_user}","gists_url":"https://api.github.com/users/pospieszynski/gists{/gist_id}","starred_url":"https://api.github.com/users/pospieszynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pospieszynski/subscriptions","organizations_url":"https://api.github.com/users/pospieszynski/orgs","repos_url":"https://api.github.com/users/pospieszynski/repos","events_url":"https://api.github.com/users/pospieszynski/events{/privacy}","received_events_url":"https://api.github.com/users/pospieszynski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pospieszynski/shop_sinatra","description":"Simple implementation of shop with Sinatra framework","fork":false,"url":"https://api.github.com/repos/pospieszynski/shop_sinatra","forks_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/forks","keys_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/teams","hooks_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/hooks","issue_events_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/issues/events{/number}","events_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/events","assignees_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/assignees{/user}","branches_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/branches{/branch}","tags_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/tags","blobs_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/git/refs{/sha}","trees_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/statuses/{sha}","languages_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/languages","stargazers_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/stargazers","contributors_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/contributors","subscribers_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/subscribers","subscription_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/subscription","commits_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/commits{/sha}","git_commits_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/git/commits{/sha}","comments_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/comments{/number}","issue_comment_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/issues/comments{/number}","contents_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/contents/{+path}","compare_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/merges","archive_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/downloads","issues_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/issues{/number}","pulls_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/pulls{/number}","milestones_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/milestones{/number}","notifications_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/labels{/name}","releases_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/releases{/id}","deployments_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/deployments","created_at":"2016-07-12T09:52:45Z","updated_at":"2016-07-12T09:53:23Z","pushed_at":"2016-07-15T15:47:59Z","git_url":"git://github.com/pospieszynski/shop_sinatra.git","ssh_url":"git@github.com:pospieszynski/shop_sinatra.git","clone_url":"https://github.com/pospieszynski/shop_sinatra.git","svn_url":"https://github.com/pospieszynski/shop_sinatra","homepage":null,"size":154,"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":"pospieszynski:master","ref":"master","sha":"c8f0f41ed1ffabb048608c627b20142db40ff0af","user":{"login":"pospieszynski","id":15077823,"avatar_url":"https://avatars.githubusercontent.com/u/15077823?v=3","gravatar_id":"","url":"https://api.github.com/users/pospieszynski","html_url":"https://github.com/pospieszynski","followers_url":"https://api.github.com/users/pospieszynski/followers","following_url":"https://api.github.com/users/pospieszynski/following{/other_user}","gists_url":"https://api.github.com/users/pospieszynski/gists{/gist_id}","starred_url":"https://api.github.com/users/pospieszynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pospieszynski/subscriptions","organizations_url":"https://api.github.com/users/pospieszynski/orgs","repos_url":"https://api.github.com/users/pospieszynski/repos","events_url":"https://api.github.com/users/pospieszynski/events{/privacy}","received_events_url":"https://api.github.com/users/pospieszynski/received_events","type":"User","site_admin":false},"repo":{"id":63146814,"name":"shop_sinatra","full_name":"pospieszynski/shop_sinatra","owner":{"login":"pospieszynski","id":15077823,"avatar_url":"https://avatars.githubusercontent.com/u/15077823?v=3","gravatar_id":"","url":"https://api.github.com/users/pospieszynski","html_url":"https://github.com/pospieszynski","followers_url":"https://api.github.com/users/pospieszynski/followers","following_url":"https://api.github.com/users/pospieszynski/following{/other_user}","gists_url":"https://api.github.com/users/pospieszynski/gists{/gist_id}","starred_url":"https://api.github.com/users/pospieszynski/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pospieszynski/subscriptions","organizations_url":"https://api.github.com/users/pospieszynski/orgs","repos_url":"https://api.github.com/users/pospieszynski/repos","events_url":"https://api.github.com/users/pospieszynski/events{/privacy}","received_events_url":"https://api.github.com/users/pospieszynski/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/pospieszynski/shop_sinatra","description":"Simple implementation of shop with Sinatra framework","fork":false,"url":"https://api.github.com/repos/pospieszynski/shop_sinatra","forks_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/forks","keys_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/teams","hooks_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/hooks","issue_events_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/issues/events{/number}","events_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/events","assignees_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/assignees{/user}","branches_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/branches{/branch}","tags_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/tags","blobs_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/git/refs{/sha}","trees_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/statuses/{sha}","languages_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/languages","stargazers_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/stargazers","contributors_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/contributors","subscribers_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/subscribers","subscription_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/subscription","commits_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/commits{/sha}","git_commits_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/git/commits{/sha}","comments_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/comments{/number}","issue_comment_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/issues/comments{/number}","contents_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/contents/{+path}","compare_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/merges","archive_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/downloads","issues_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/issues{/number}","pulls_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/pulls{/number}","milestones_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/milestones{/number}","notifications_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/labels{/name}","releases_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/releases{/id}","deployments_url":"https://api.github.com/repos/pospieszynski/shop_sinatra/deployments","created_at":"2016-07-12T09:52:45Z","updated_at":"2016-07-12T09:53:23Z","pushed_at":"2016-07-15T15:47:59Z","git_url":"git://github.com/pospieszynski/shop_sinatra.git","ssh_url":"git@github.com:pospieszynski/shop_sinatra.git","clone_url":"https://github.com/pospieszynski/shop_sinatra.git","svn_url":"https://github.com/pospieszynski/shop_sinatra","homepage":null,"size":154,"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/pospieszynski/shop_sinatra/pulls/2"},"html":{"href":"https://github.com/pospieszynski/shop_sinatra/pull/2"},"issue":{"href":"https://api.github.com/repos/pospieszynski/shop_sinatra/issues/2"},"comments":{"href":"https://api.github.com/repos/pospieszynski/shop_sinatra/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/pospieszynski/shop_sinatra/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/pospieszynski/shop_sinatra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/pospieszynski/shop_sinatra/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/pospieszynski/shop_sinatra/statuses/abcbd0e47196d326e8140073f6713fa38d788eb7"}}}}
{"actor":{"display_login":"gotar"}}