{"action":"created","comment":{"url":"https://api.github.com/repos/Bradniedt/black_thursday/pulls/comments/228608097","pull_request_review_id":168926692,"id":228608097,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyODYwODA5Nw==","diff_hunk":"@@ -61,28 +61,43 @@ def create(attributes)\n     highest = @collection.max_by do |item|\n       item.id.to_i\n     end\n-    number = (highest.id.to_i + 1).to_s\n+    number = highest.id.to_i + 1\n     new_item = Item.new({ id: number,\n                   name: attributes[:name],\n-                  description: attributes[:description],\n-                  unit_price: BigDecimal.new(attributes[:unit_price]),\n-                  created_at: attributes[:created_at],\n-                  updated_at: attributes[:updated_at],\n-                  merchant_id: attributes[:merchant_id]})\n+                  description: attributes[:description].to_s,\n+                  unit_price: big_decimal_converter(attributes[:unit_price]),\n+                  merchant_id: attributes[:merchant_id].to_i,\n+                  created_at: Time.now.to_s,\n+                  updated_at: Time.now.to_s\n+                  })\n     @collection << new_item\n     new_item\n   end\n \n   def update(id, attributes)\n-    find_by_id(id).name = attributes[:name]\n-    find_by_id(id).description = attributes[:description]\n-    find_by_id(id).unit_price = attributes[:unit_price]\n+    if find_by_id(id)\n+    if attributes.has_key?(:name)\n+      find_by_id(id).name = attributes[:name]\n+    end\n+    if attributes.has_key?(:description)\n+      find_by_id(id).description = attributes[:description]\n+    end\n+    if attributes.has_key?(:unit_price)\n+      find_by_id(id).unit_price = attributes[:unit_price]\n+    end\n     find_by_id(id).updated_at = Time.now\n+    end ","path":"lib/item_repository.rb","position":47,"original_position":47,"commit_id":"22322a5fff2bef2dabff7231a3d8f58174be453e","original_commit_id":"22322a5fff2bef2dabff7231a3d8f58174be453e","user":{"login":"houndci-bot","id":6697940,"node_id":"MDQ6VXNlcjY2OTc5NDA=","avatar_url":"https://avatars0.githubusercontent.com/u/6697940?v=4","gravatar_id":"","url":"https://api.github.com/users/houndci-bot","html_url":"https://github.com/houndci-bot","followers_url":"https://api.github.com/users/houndci-bot/followers","following_url":"https://api.github.com/users/houndci-bot/following{/other_user}","gists_url":"https://api.github.com/users/houndci-bot/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci-bot/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci-bot/subscriptions","organizations_url":"https://api.github.com/users/houndci-bot/orgs","repos_url":"https://api.github.com/users/houndci-bot/repos","events_url":"https://api.github.com/users/houndci-bot/events{/privacy}","received_events_url":"https://api.github.com/users/houndci-bot/received_events","type":"User","site_admin":false},"body":"Layout/TrailingWhitespace: Trailing whitespace detected.","created_at":"2018-10-26T17:33:59Z","updated_at":"2018-10-26T17:34:01Z","html_url":"https://github.com/Bradniedt/black_thursday/pull/20#discussion_r228608097","pull_request_url":"https://api.github.com/repos/Bradniedt/black_thursday/pulls/20","author_association":"NONE","_links":{"self":{"href":"https://api.github.com/repos/Bradniedt/black_thursday/pulls/comments/228608097"},"html":{"href":"https://github.com/Bradniedt/black_thursday/pull/20#discussion_r228608097"},"pull_request":{"href":"https://api.github.com/repos/Bradniedt/black_thursday/pulls/20"}}},"pull_request":{"url":"https://api.github.com/repos/Bradniedt/black_thursday/pulls/20","id":226172883,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI2MTcyODgz","html_url":"https://github.com/Bradniedt/black_thursday/pull/20","diff_url":"https://github.com/Bradniedt/black_thursday/pull/20.diff","patch_url":"https://github.com/Bradniedt/black_thursday/pull/20.patch","issue_url":"https://api.github.com/repos/Bradniedt/black_thursday/issues/20","number":20,"state":"open","locked":false,"title":"Add passing tests for spec harness iteration 0","user":{"login":"le3ah","id":42391567,"node_id":"MDQ6VXNlcjQyMzkxNTY3","avatar_url":"https://avatars2.githubusercontent.com/u/42391567?v=4","gravatar_id":"","url":"https://api.github.com/users/le3ah","html_url":"https://github.com/le3ah","followers_url":"https://api.github.com/users/le3ah/followers","following_url":"https://api.github.com/users/le3ah/following{/other_user}","gists_url":"https://api.github.com/users/le3ah/gists{/gist_id}","starred_url":"https://api.github.com/users/le3ah/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/le3ah/subscriptions","organizations_url":"https://api.github.com/users/le3ah/orgs","repos_url":"https://api.github.com/users/le3ah/repos","events_url":"https://api.github.com/users/le3ah/events{/privacy}","received_events_url":"https://api.github.com/users/le3ah/received_events","type":"User","site_admin":false},"body":"Add additional changes based on Hound CI and passing Spec Harness tests","created_at":"2018-10-26T17:33:48Z","updated_at":"2018-10-26T17:34:01Z","closed_at":null,"merged_at":null,"merge_commit_sha":"edf67b083ec40f59ec397f800ba6a75d82a2bd2c","assignee":null,"assignees":[],"requested_reviewers":[],"requested_teams":[],"labels":[{"id":1102036211,"node_id":"MDU6TGFiZWwxMTAyMDM2MjEx","url":"https://api.github.com/repos/Bradniedt/black_thursday/labels/review","name":"review","color":"ededed","default":false}],"milestone":null,"commits_url":"https://api.github.com/repos/Bradniedt/black_thursday/pulls/20/commits","review_comments_url":"https://api.github.com/repos/Bradniedt/black_thursday/pulls/20/comments","review_comment_url":"https://api.github.com/repos/Bradniedt/black_thursday/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Bradniedt/black_thursday/issues/20/comments","statuses_url":"https://api.github.com/repos/Bradniedt/black_thursday/statuses/22322a5fff2bef2dabff7231a3d8f58174be453e","head":{"label":"Bradniedt:iteration_0_spec_harness_#17","ref":"iteration_0_spec_harness_#17","sha":"22322a5fff2bef2dabff7231a3d8f58174be453e","user":{"login":"Bradniedt","id":22285337,"node_id":"MDQ6VXNlcjIyMjg1MzM3","avatar_url":"https://avatars0.githubusercontent.com/u/22285337?v=4","gravatar_id":"","url":"https://api.github.com/users/Bradniedt","html_url":"https://github.com/Bradniedt","followers_url":"https://api.github.com/users/Bradniedt/followers","following_url":"https://api.github.com/users/Bradniedt/following{/other_user}","gists_url":"https://api.github.com/users/Bradniedt/gists{/gist_id}","starred_url":"https://api.github.com/users/Bradniedt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bradniedt/subscriptions","organizations_url":"https://api.github.com/users/Bradniedt/orgs","repos_url":"https://api.github.com/users/Bradniedt/repos","events_url":"https://api.github.com/users/Bradniedt/events{/privacy}","received_events_url":"https://api.github.com/users/Bradniedt/received_events","type":"User","site_admin":false},"repo":{"id":154165761,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQxNjU3NjE=","name":"black_thursday","full_name":"Bradniedt/black_thursday","private":false,"owner":{"login":"Bradniedt","id":22285337,"node_id":"MDQ6VXNlcjIyMjg1MzM3","avatar_url":"https://avatars0.githubusercontent.com/u/22285337?v=4","gravatar_id":"","url":"https://api.github.com/users/Bradniedt","html_url":"https://github.com/Bradniedt","followers_url":"https://api.github.com/users/Bradniedt/followers","following_url":"https://api.github.com/users/Bradniedt/following{/other_user}","gists_url":"https://api.github.com/users/Bradniedt/gists{/gist_id}","starred_url":"https://api.github.com/users/Bradniedt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bradniedt/subscriptions","organizations_url":"https://api.github.com/users/Bradniedt/orgs","repos_url":"https://api.github.com/users/Bradniedt/repos","events_url":"https://api.github.com/users/Bradniedt/events{/privacy}","received_events_url":"https://api.github.com/users/Bradniedt/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Bradniedt/black_thursday","description":null,"fork":true,"url":"https://api.github.com/repos/Bradniedt/black_thursday","forks_url":"https://api.github.com/repos/Bradniedt/black_thursday/forks","keys_url":"https://api.github.com/repos/Bradniedt/black_thursday/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bradniedt/black_thursday/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bradniedt/black_thursday/teams","hooks_url":"https://api.github.com/repos/Bradniedt/black_thursday/hooks","issue_events_url":"https://api.github.com/repos/Bradniedt/black_thursday/issues/events{/number}","events_url":"https://api.github.com/repos/Bradniedt/black_thursday/events","assignees_url":"https://api.github.com/repos/Bradniedt/black_thursday/assignees{/user}","branches_url":"https://api.github.com/repos/Bradniedt/black_thursday/branches{/branch}","tags_url":"https://api.github.com/repos/Bradniedt/black_thursday/tags","blobs_url":"https://api.github.com/repos/Bradniedt/black_thursday/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bradniedt/black_thursday/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bradniedt/black_thursday/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bradniedt/black_thursday/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bradniedt/black_thursday/statuses/{sha}","languages_url":"https://api.github.com/repos/Bradniedt/black_thursday/languages","stargazers_url":"https://api.github.com/repos/Bradniedt/black_thursday/stargazers","contributors_url":"https://api.github.com/repos/Bradniedt/black_thursday/contributors","subscribers_url":"https://api.github.com/repos/Bradniedt/black_thursday/subscribers","subscription_url":"https://api.github.com/repos/Bradniedt/black_thursday/subscription","commits_url":"https://api.github.com/repos/Bradniedt/black_thursday/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bradniedt/black_thursday/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bradniedt/black_thursday/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bradniedt/black_thursday/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bradniedt/black_thursday/contents/{+path}","compare_url":"https://api.github.com/repos/Bradniedt/black_thursday/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bradniedt/black_thursday/merges","archive_url":"https://api.github.com/repos/Bradniedt/black_thursday/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bradniedt/black_thursday/downloads","issues_url":"https://api.github.com/repos/Bradniedt/black_thursday/issues{/number}","pulls_url":"https://api.github.com/repos/Bradniedt/black_thursday/pulls{/number}","milestones_url":"https://api.github.com/repos/Bradniedt/black_thursday/milestones{/number}","notifications_url":"https://api.github.com/repos/Bradniedt/black_thursday/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bradniedt/black_thursday/labels{/name}","releases_url":"https://api.github.com/repos/Bradniedt/black_thursday/releases{/id}","deployments_url":"https://api.github.com/repos/Bradniedt/black_thursday/deployments","created_at":"2018-10-22T15:14:14Z","updated_at":"2018-10-25T23:44:51Z","pushed_at":"2018-10-26T17:33:49Z","git_url":"git://github.com/Bradniedt/black_thursday.git","ssh_url":"git@github.com:Bradniedt/black_thursday.git","clone_url":"https://github.com/Bradniedt/black_thursday.git","svn_url":"https://github.com/Bradniedt/black_thursday","homepage":null,"size":1726,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"base":{"label":"Bradniedt:master","ref":"master","sha":"1db3c53c9698cebad556093f6e4a2dcdfa7572f0","user":{"login":"Bradniedt","id":22285337,"node_id":"MDQ6VXNlcjIyMjg1MzM3","avatar_url":"https://avatars0.githubusercontent.com/u/22285337?v=4","gravatar_id":"","url":"https://api.github.com/users/Bradniedt","html_url":"https://github.com/Bradniedt","followers_url":"https://api.github.com/users/Bradniedt/followers","following_url":"https://api.github.com/users/Bradniedt/following{/other_user}","gists_url":"https://api.github.com/users/Bradniedt/gists{/gist_id}","starred_url":"https://api.github.com/users/Bradniedt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bradniedt/subscriptions","organizations_url":"https://api.github.com/users/Bradniedt/orgs","repos_url":"https://api.github.com/users/Bradniedt/repos","events_url":"https://api.github.com/users/Bradniedt/events{/privacy}","received_events_url":"https://api.github.com/users/Bradniedt/received_events","type":"User","site_admin":false},"repo":{"id":154165761,"node_id":"MDEwOlJlcG9zaXRvcnkxNTQxNjU3NjE=","name":"black_thursday","full_name":"Bradniedt/black_thursday","private":false,"owner":{"login":"Bradniedt","id":22285337,"node_id":"MDQ6VXNlcjIyMjg1MzM3","avatar_url":"https://avatars0.githubusercontent.com/u/22285337?v=4","gravatar_id":"","url":"https://api.github.com/users/Bradniedt","html_url":"https://github.com/Bradniedt","followers_url":"https://api.github.com/users/Bradniedt/followers","following_url":"https://api.github.com/users/Bradniedt/following{/other_user}","gists_url":"https://api.github.com/users/Bradniedt/gists{/gist_id}","starred_url":"https://api.github.com/users/Bradniedt/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Bradniedt/subscriptions","organizations_url":"https://api.github.com/users/Bradniedt/orgs","repos_url":"https://api.github.com/users/Bradniedt/repos","events_url":"https://api.github.com/users/Bradniedt/events{/privacy}","received_events_url":"https://api.github.com/users/Bradniedt/received_events","type":"User","site_admin":false},"html_url":"https://github.com/Bradniedt/black_thursday","description":null,"fork":true,"url":"https://api.github.com/repos/Bradniedt/black_thursday","forks_url":"https://api.github.com/repos/Bradniedt/black_thursday/forks","keys_url":"https://api.github.com/repos/Bradniedt/black_thursday/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Bradniedt/black_thursday/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Bradniedt/black_thursday/teams","hooks_url":"https://api.github.com/repos/Bradniedt/black_thursday/hooks","issue_events_url":"https://api.github.com/repos/Bradniedt/black_thursday/issues/events{/number}","events_url":"https://api.github.com/repos/Bradniedt/black_thursday/events","assignees_url":"https://api.github.com/repos/Bradniedt/black_thursday/assignees{/user}","branches_url":"https://api.github.com/repos/Bradniedt/black_thursday/branches{/branch}","tags_url":"https://api.github.com/repos/Bradniedt/black_thursday/tags","blobs_url":"https://api.github.com/repos/Bradniedt/black_thursday/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Bradniedt/black_thursday/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Bradniedt/black_thursday/git/refs{/sha}","trees_url":"https://api.github.com/repos/Bradniedt/black_thursday/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Bradniedt/black_thursday/statuses/{sha}","languages_url":"https://api.github.com/repos/Bradniedt/black_thursday/languages","stargazers_url":"https://api.github.com/repos/Bradniedt/black_thursday/stargazers","contributors_url":"https://api.github.com/repos/Bradniedt/black_thursday/contributors","subscribers_url":"https://api.github.com/repos/Bradniedt/black_thursday/subscribers","subscription_url":"https://api.github.com/repos/Bradniedt/black_thursday/subscription","commits_url":"https://api.github.com/repos/Bradniedt/black_thursday/commits{/sha}","git_commits_url":"https://api.github.com/repos/Bradniedt/black_thursday/git/commits{/sha}","comments_url":"https://api.github.com/repos/Bradniedt/black_thursday/comments{/number}","issue_comment_url":"https://api.github.com/repos/Bradniedt/black_thursday/issues/comments{/number}","contents_url":"https://api.github.com/repos/Bradniedt/black_thursday/contents/{+path}","compare_url":"https://api.github.com/repos/Bradniedt/black_thursday/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Bradniedt/black_thursday/merges","archive_url":"https://api.github.com/repos/Bradniedt/black_thursday/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Bradniedt/black_thursday/downloads","issues_url":"https://api.github.com/repos/Bradniedt/black_thursday/issues{/number}","pulls_url":"https://api.github.com/repos/Bradniedt/black_thursday/pulls{/number}","milestones_url":"https://api.github.com/repos/Bradniedt/black_thursday/milestones{/number}","notifications_url":"https://api.github.com/repos/Bradniedt/black_thursday/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Bradniedt/black_thursday/labels{/name}","releases_url":"https://api.github.com/repos/Bradniedt/black_thursday/releases{/id}","deployments_url":"https://api.github.com/repos/Bradniedt/black_thursday/deployments","created_at":"2018-10-22T15:14:14Z","updated_at":"2018-10-25T23:44:51Z","pushed_at":"2018-10-26T17:33:49Z","git_url":"git://github.com/Bradniedt/black_thursday.git","ssh_url":"git@github.com:Bradniedt/black_thursday.git","clone_url":"https://github.com/Bradniedt/black_thursday.git","svn_url":"https://github.com/Bradniedt/black_thursday","homepage":null,"size":1726,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":3,"license":null,"forks":0,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Bradniedt/black_thursday/pulls/20"},"html":{"href":"https://github.com/Bradniedt/black_thursday/pull/20"},"issue":{"href":"https://api.github.com/repos/Bradniedt/black_thursday/issues/20"},"comments":{"href":"https://api.github.com/repos/Bradniedt/black_thursday/issues/20/comments"},"review_comments":{"href":"https://api.github.com/repos/Bradniedt/black_thursday/pulls/20/comments"},"review_comment":{"href":"https://api.github.com/repos/Bradniedt/black_thursday/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Bradniedt/black_thursday/pulls/20/commits"},"statuses":{"href":"https://api.github.com/repos/Bradniedt/black_thursday/statuses/22322a5fff2bef2dabff7231a3d8f58174be453e"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"houndci-bot"}}