{"action":"created","comment":{"url":"https://api.github.com/repos/ewashbourne/talkative_robot/pulls/comments/23008811","id":23008811,"diff_hunk":"@@ -87,3 +87,71 @@ def bears_or_giraffes(b_or_g)\n end\n \n bears_or_giraffes(animals)\n+\n+\n+# ---------- Below is the lab for arrays and hashes ---------- #\n+\n+# Create grocery_list array with 5+ items\n+# Turn your user questions into a hash\n+# Hint: Create user variable equal to a blank hash first, then put each key/value into that hash\n+# Pick out a random off list\n+# Print “Did you already grab the <random_item>?”\n+# Remove from list if yes\n+# Add new item to list “Oh yeah, don’t forget the bread!”\n+\n+grocery_list = [\"eggs\", \"bread\", \"orange juice\", \"potatoes\", \"peanut butter\"]\n+\n+user = { }\n+user[:Name] \t\t\t\t\t\t\t= name\n+user[:Age] \t\t\t\t\t\t\t\t= age\n+user[:Gender] \t\t\t\t\t\t= gender\n+user[:Hours_Slept] \t\t\t\t= hours_slept\n+user[:Favorite_Animal] \t\t= animals\n+\n+puts user\n+\n+# This is a loop that iterates over grocery_list, asking the user if he/she \n+# remembered the items in the list. If the user puts \"Y\", the item is removed\n+# from the array -- otherwise the it remains. In the end, the revised list is printed.\n+\n+\n+grocery_list = [\"eggs\", \"bread\", \"chicken\", \"potatoes\", \"milk\"]\n+\n+puts \"Your grocery list:\"\n+puts grocery_list\n+\n+index = 4\n+while index >= 0","path":"talkative_robot_2.rb","position":57,"original_position":57,"commit_id":"231b45cd590591e2f0ba0be9368c52bc3ea8892b","original_commit_id":"231b45cd590591e2f0ba0be9368c52bc3ea8892b","user":{"login":"rgpass","id":4154682,"avatar_url":"https://avatars.githubusercontent.com/u/4154682?v=3","gravatar_id":"","url":"https://api.github.com/users/rgpass","html_url":"https://github.com/rgpass","followers_url":"https://api.github.com/users/rgpass/followers","following_url":"https://api.github.com/users/rgpass/following{/other_user}","gists_url":"https://api.github.com/users/rgpass/gists{/gist_id}","starred_url":"https://api.github.com/users/rgpass/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/rgpass/subscriptions","organizations_url":"https://api.github.com/users/rgpass/orgs","repos_url":"https://api.github.com/users/rgpass/repos","events_url":"https://api.github.com/users/rgpass/events{/privacy}","received_events_url":"https://api.github.com/users/rgpass/received_events","type":"User","site_admin":false},"body":"Going ahead, nice! It's better to have it be `while something do` -- remember the `do`","created_at":"2015-01-15T13:29:12Z","updated_at":"2015-01-15T13:29:12Z","html_url":"https://github.com/ewashbourne/talkative_robot/pull/3#discussion_r23008811","pull_request_url":"https://api.github.com/repos/ewashbourne/talkative_robot/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/ewashbourne/talkative_robot/pulls/comments/23008811"},"html":{"href":"https://github.com/ewashbourne/talkative_robot/pull/3#discussion_r23008811"},"pull_request":{"href":"https://api.github.com/repos/ewashbourne/talkative_robot/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/ewashbourne/talkative_robot/pulls/3","id":27401272,"html_url":"https://github.com/ewashbourne/talkative_robot/pull/3","diff_url":"https://github.com/ewashbourne/talkative_robot/pull/3.diff","patch_url":"https://github.com/ewashbourne/talkative_robot/pull/3.patch","issue_url":"https://api.github.com/repos/ewashbourne/talkative_robot/issues/3","number":3,"state":"open","locked":false,"title":"Collections Lab","user":{"login":"ewashbourne","id":10439149,"avatar_url":"https://avatars.githubusercontent.com/u/10439149?v=3","gravatar_id":"","url":"https://api.github.com/users/ewashbourne","html_url":"https://github.com/ewashbourne","followers_url":"https://api.github.com/users/ewashbourne/followers","following_url":"https://api.github.com/users/ewashbourne/following{/other_user}","gists_url":"https://api.github.com/users/ewashbourne/gists{/gist_id}","starred_url":"https://api.github.com/users/ewashbourne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewashbourne/subscriptions","organizations_url":"https://api.github.com/users/ewashbourne/orgs","repos_url":"https://api.github.com/users/ewashbourne/repos","events_url":"https://api.github.com/users/ewashbourne/events{/privacy}","received_events_url":"https://api.github.com/users/ewashbourne/received_events","type":"User","site_admin":false},"body":"{\r\n  \"comfortability\": 3,\r\n  \"completeness\": 5 (I believe it's complete),\r\n  \"questions\": No questions at this time.\r\n}","created_at":"2015-01-15T02:12:03Z","updated_at":"2015-01-15T13:29:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f0fa625fcec3e5c450f4da372a4d7fd4d162ded9","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ewashbourne/talkative_robot/pulls/3/commits","review_comments_url":"https://api.github.com/repos/ewashbourne/talkative_robot/pulls/3/comments","review_comment_url":"https://api.github.com/repos/ewashbourne/talkative_robot/pulls/comments/{number}","comments_url":"https://api.github.com/repos/ewashbourne/talkative_robot/issues/3/comments","statuses_url":"https://api.github.com/repos/ewashbourne/talkative_robot/statuses/231b45cd590591e2f0ba0be9368c52bc3ea8892b","head":{"label":"ewashbourne:collections_lab","ref":"collections_lab","sha":"231b45cd590591e2f0ba0be9368c52bc3ea8892b","user":{"login":"ewashbourne","id":10439149,"avatar_url":"https://avatars.githubusercontent.com/u/10439149?v=3","gravatar_id":"","url":"https://api.github.com/users/ewashbourne","html_url":"https://github.com/ewashbourne","followers_url":"https://api.github.com/users/ewashbourne/followers","following_url":"https://api.github.com/users/ewashbourne/following{/other_user}","gists_url":"https://api.github.com/users/ewashbourne/gists{/gist_id}","starred_url":"https://api.github.com/users/ewashbourne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewashbourne/subscriptions","organizations_url":"https://api.github.com/users/ewashbourne/orgs","repos_url":"https://api.github.com/users/ewashbourne/repos","events_url":"https://api.github.com/users/ewashbourne/events{/privacy}","received_events_url":"https://api.github.com/users/ewashbourne/received_events","type":"User","site_admin":false},"repo":{"id":29248256,"name":"talkative_robot","full_name":"ewashbourne/talkative_robot","owner":{"login":"ewashbourne","id":10439149,"avatar_url":"https://avatars.githubusercontent.com/u/10439149?v=3","gravatar_id":"","url":"https://api.github.com/users/ewashbourne","html_url":"https://github.com/ewashbourne","followers_url":"https://api.github.com/users/ewashbourne/followers","following_url":"https://api.github.com/users/ewashbourne/following{/other_user}","gists_url":"https://api.github.com/users/ewashbourne/gists{/gist_id}","starred_url":"https://api.github.com/users/ewashbourne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewashbourne/subscriptions","organizations_url":"https://api.github.com/users/ewashbourne/orgs","repos_url":"https://api.github.com/users/ewashbourne/repos","events_url":"https://api.github.com/users/ewashbourne/events{/privacy}","received_events_url":"https://api.github.com/users/ewashbourne/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ewashbourne/talkative_robot","description":"","fork":false,"url":"https://api.github.com/repos/ewashbourne/talkative_robot","forks_url":"https://api.github.com/repos/ewashbourne/talkative_robot/forks","keys_url":"https://api.github.com/repos/ewashbourne/talkative_robot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ewashbourne/talkative_robot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ewashbourne/talkative_robot/teams","hooks_url":"https://api.github.com/repos/ewashbourne/talkative_robot/hooks","issue_events_url":"https://api.github.com/repos/ewashbourne/talkative_robot/issues/events{/number}","events_url":"https://api.github.com/repos/ewashbourne/talkative_robot/events","assignees_url":"https://api.github.com/repos/ewashbourne/talkative_robot/assignees{/user}","branches_url":"https://api.github.com/repos/ewashbourne/talkative_robot/branches{/branch}","tags_url":"https://api.github.com/repos/ewashbourne/talkative_robot/tags","blobs_url":"https://api.github.com/repos/ewashbourne/talkative_robot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ewashbourne/talkative_robot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ewashbourne/talkative_robot/git/refs{/sha}","trees_url":"https://api.github.com/repos/ewashbourne/talkative_robot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ewashbourne/talkative_robot/statuses/{sha}","languages_url":"https://api.github.com/repos/ewashbourne/talkative_robot/languages","stargazers_url":"https://api.github.com/repos/ewashbourne/talkative_robot/stargazers","contributors_url":"https://api.github.com/repos/ewashbourne/talkative_robot/contributors","subscribers_url":"https://api.github.com/repos/ewashbourne/talkative_robot/subscribers","subscription_url":"https://api.github.com/repos/ewashbourne/talkative_robot/subscription","commits_url":"https://api.github.com/repos/ewashbourne/talkative_robot/commits{/sha}","git_commits_url":"https://api.github.com/repos/ewashbourne/talkative_robot/git/commits{/sha}","comments_url":"https://api.github.com/repos/ewashbourne/talkative_robot/comments{/number}","issue_comment_url":"https://api.github.com/repos/ewashbourne/talkative_robot/issues/comments/{number}","contents_url":"https://api.github.com/repos/ewashbourne/talkative_robot/contents/{+path}","compare_url":"https://api.github.com/repos/ewashbourne/talkative_robot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ewashbourne/talkative_robot/merges","archive_url":"https://api.github.com/repos/ewashbourne/talkative_robot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ewashbourne/talkative_robot/downloads","issues_url":"https://api.github.com/repos/ewashbourne/talkative_robot/issues{/number}","pulls_url":"https://api.github.com/repos/ewashbourne/talkative_robot/pulls{/number}","milestones_url":"https://api.github.com/repos/ewashbourne/talkative_robot/milestones{/number}","notifications_url":"https://api.github.com/repos/ewashbourne/talkative_robot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ewashbourne/talkative_robot/labels{/name}","releases_url":"https://api.github.com/repos/ewashbourne/talkative_robot/releases{/id}","created_at":"2015-01-14T14:35:18Z","updated_at":"2015-01-14T22:40:30Z","pushed_at":"2015-01-15T02:04:58Z","git_url":"git://github.com/ewashbourne/talkative_robot.git","ssh_url":"git@github.com:ewashbourne/talkative_robot.git","clone_url":"https://github.com/ewashbourne/talkative_robot.git","svn_url":"https://github.com/ewashbourne/talkative_robot","homepage":null,"size":0,"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":"ewashbourne:master","ref":"master","sha":"0df2e690da9225b1b5b06f80f38d22cbd96903f7","user":{"login":"ewashbourne","id":10439149,"avatar_url":"https://avatars.githubusercontent.com/u/10439149?v=3","gravatar_id":"","url":"https://api.github.com/users/ewashbourne","html_url":"https://github.com/ewashbourne","followers_url":"https://api.github.com/users/ewashbourne/followers","following_url":"https://api.github.com/users/ewashbourne/following{/other_user}","gists_url":"https://api.github.com/users/ewashbourne/gists{/gist_id}","starred_url":"https://api.github.com/users/ewashbourne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewashbourne/subscriptions","organizations_url":"https://api.github.com/users/ewashbourne/orgs","repos_url":"https://api.github.com/users/ewashbourne/repos","events_url":"https://api.github.com/users/ewashbourne/events{/privacy}","received_events_url":"https://api.github.com/users/ewashbourne/received_events","type":"User","site_admin":false},"repo":{"id":29248256,"name":"talkative_robot","full_name":"ewashbourne/talkative_robot","owner":{"login":"ewashbourne","id":10439149,"avatar_url":"https://avatars.githubusercontent.com/u/10439149?v=3","gravatar_id":"","url":"https://api.github.com/users/ewashbourne","html_url":"https://github.com/ewashbourne","followers_url":"https://api.github.com/users/ewashbourne/followers","following_url":"https://api.github.com/users/ewashbourne/following{/other_user}","gists_url":"https://api.github.com/users/ewashbourne/gists{/gist_id}","starred_url":"https://api.github.com/users/ewashbourne/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ewashbourne/subscriptions","organizations_url":"https://api.github.com/users/ewashbourne/orgs","repos_url":"https://api.github.com/users/ewashbourne/repos","events_url":"https://api.github.com/users/ewashbourne/events{/privacy}","received_events_url":"https://api.github.com/users/ewashbourne/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ewashbourne/talkative_robot","description":"","fork":false,"url":"https://api.github.com/repos/ewashbourne/talkative_robot","forks_url":"https://api.github.com/repos/ewashbourne/talkative_robot/forks","keys_url":"https://api.github.com/repos/ewashbourne/talkative_robot/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ewashbourne/talkative_robot/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ewashbourne/talkative_robot/teams","hooks_url":"https://api.github.com/repos/ewashbourne/talkative_robot/hooks","issue_events_url":"https://api.github.com/repos/ewashbourne/talkative_robot/issues/events{/number}","events_url":"https://api.github.com/repos/ewashbourne/talkative_robot/events","assignees_url":"https://api.github.com/repos/ewashbourne/talkative_robot/assignees{/user}","branches_url":"https://api.github.com/repos/ewashbourne/talkative_robot/branches{/branch}","tags_url":"https://api.github.com/repos/ewashbourne/talkative_robot/tags","blobs_url":"https://api.github.com/repos/ewashbourne/talkative_robot/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ewashbourne/talkative_robot/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ewashbourne/talkative_robot/git/refs{/sha}","trees_url":"https://api.github.com/repos/ewashbourne/talkative_robot/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ewashbourne/talkative_robot/statuses/{sha}","languages_url":"https://api.github.com/repos/ewashbourne/talkative_robot/languages","stargazers_url":"https://api.github.com/repos/ewashbourne/talkative_robot/stargazers","contributors_url":"https://api.github.com/repos/ewashbourne/talkative_robot/contributors","subscribers_url":"https://api.github.com/repos/ewashbourne/talkative_robot/subscribers","subscription_url":"https://api.github.com/repos/ewashbourne/talkative_robot/subscription","commits_url":"https://api.github.com/repos/ewashbourne/talkative_robot/commits{/sha}","git_commits_url":"https://api.github.com/repos/ewashbourne/talkative_robot/git/commits{/sha}","comments_url":"https://api.github.com/repos/ewashbourne/talkative_robot/comments{/number}","issue_comment_url":"https://api.github.com/repos/ewashbourne/talkative_robot/issues/comments/{number}","contents_url":"https://api.github.com/repos/ewashbourne/talkative_robot/contents/{+path}","compare_url":"https://api.github.com/repos/ewashbourne/talkative_robot/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ewashbourne/talkative_robot/merges","archive_url":"https://api.github.com/repos/ewashbourne/talkative_robot/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ewashbourne/talkative_robot/downloads","issues_url":"https://api.github.com/repos/ewashbourne/talkative_robot/issues{/number}","pulls_url":"https://api.github.com/repos/ewashbourne/talkative_robot/pulls{/number}","milestones_url":"https://api.github.com/repos/ewashbourne/talkative_robot/milestones{/number}","notifications_url":"https://api.github.com/repos/ewashbourne/talkative_robot/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ewashbourne/talkative_robot/labels{/name}","releases_url":"https://api.github.com/repos/ewashbourne/talkative_robot/releases{/id}","created_at":"2015-01-14T14:35:18Z","updated_at":"2015-01-14T22:40:30Z","pushed_at":"2015-01-15T02:04:58Z","git_url":"git://github.com/ewashbourne/talkative_robot.git","ssh_url":"git@github.com:ewashbourne/talkative_robot.git","clone_url":"https://github.com/ewashbourne/talkative_robot.git","svn_url":"https://github.com/ewashbourne/talkative_robot","homepage":null,"size":0,"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/ewashbourne/talkative_robot/pulls/3"},"html":{"href":"https://github.com/ewashbourne/talkative_robot/pull/3"},"issue":{"href":"https://api.github.com/repos/ewashbourne/talkative_robot/issues/3"},"comments":{"href":"https://api.github.com/repos/ewashbourne/talkative_robot/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/ewashbourne/talkative_robot/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/ewashbourne/talkative_robot/pulls/comments/{number}"},"commits":{"href":"https://api.github.com/repos/ewashbourne/talkative_robot/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/ewashbourne/talkative_robot/statuses/231b45cd590591e2f0ba0be9368c52bc3ea8892b"}}}}