{"action":"created","comment":{"url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/pulls/comments/31193062","id":31193062,"diff_hunk":"@@ -19,9 +20,16 @@ def run!\n \n \n   def speak(input)\n-\n-    #Implement your code here <<<<<<<<<\n-\n+    if input != input.upcase\n+      \"SPEAK UP SONNY!\"\n+    elsif input == \"BYE\"\n+      @bye_counter += 1 \n+      if @bye_counter == 3\n+        abort(\"SEE YOU LATER SONNY!\")\n+      end \n+    elsif input == input.upcase\n+      \"NOT SINCE 1964!\"\n+    end ","path":"lib/deaf_grandma.rb","position":24,"original_position":24,"commit_id":"167103649fbe55ccab7471131ce95f60d31f274e","original_commit_id":"167103649fbe55ccab7471131ce95f60d31f274e","user":{"login":"nicolasmccurdy","id":927220,"avatar_url":"https://avatars.githubusercontent.com/u/927220?v=3","gravatar_id":"","url":"https://api.github.com/users/nicolasmccurdy","html_url":"https://github.com/nicolasmccurdy","followers_url":"https://api.github.com/users/nicolasmccurdy/followers","following_url":"https://api.github.com/users/nicolasmccurdy/following{/other_user}","gists_url":"https://api.github.com/users/nicolasmccurdy/gists{/gist_id}","starred_url":"https://api.github.com/users/nicolasmccurdy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nicolasmccurdy/subscriptions","organizations_url":"https://api.github.com/users/nicolasmccurdy/orgs","repos_url":"https://api.github.com/users/nicolasmccurdy/repos","events_url":"https://api.github.com/users/nicolasmccurdy/events{/privacy}","received_events_url":"https://api.github.com/users/nicolasmccurdy/received_events","type":"User","site_admin":false},"body":"You might be able to use a `case` statement instead of the `if/elsif` statement.","created_at":"2015-05-28T00:03:35Z","updated_at":"2015-05-28T00:03:35Z","html_url":"https://github.com/paircolumbus/MoreDrillsWithRSpec/pull/23#discussion_r31193062","pull_request_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/pulls/23","_links":{"self":{"href":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/pulls/comments/31193062"},"html":{"href":"https://github.com/paircolumbus/MoreDrillsWithRSpec/pull/23#discussion_r31193062"},"pull_request":{"href":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/pulls/23"}}},"pull_request":{"url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/pulls/23","id":36326520,"html_url":"https://github.com/paircolumbus/MoreDrillsWithRSpec/pull/23","diff_url":"https://github.com/paircolumbus/MoreDrillsWithRSpec/pull/23.diff","patch_url":"https://github.com/paircolumbus/MoreDrillsWithRSpec/pull/23.patch","issue_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/issues/23","number":23,"state":"open","locked":false,"title":"Esmith soltutions ","user":{"login":"eksmith","id":10107111,"avatar_url":"https://avatars.githubusercontent.com/u/10107111?v=3","gravatar_id":"","url":"https://api.github.com/users/eksmith","html_url":"https://github.com/eksmith","followers_url":"https://api.github.com/users/eksmith/followers","following_url":"https://api.github.com/users/eksmith/following{/other_user}","gists_url":"https://api.github.com/users/eksmith/gists{/gist_id}","starred_url":"https://api.github.com/users/eksmith/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/eksmith/subscriptions","organizations_url":"https://api.github.com/users/eksmith/orgs","repos_url":"https://api.github.com/users/eksmith/repos","events_url":"https://api.github.com/users/eksmith/events{/privacy}","received_events_url":"https://api.github.com/users/eksmith/received_events","type":"User","site_admin":false},"body":"Here are my solutions for \"deaf grandma\" and \"fizz buzz\". \r\n\r\nThe if/else trees in both solutions sort of bother me in that I think there are probably more elegant solves, but I spent a fair amount of time considering whether I really needed to use them. I struggle with knowing when elegance matters and when the solution that works is good enough. \r\n\r\nI would appreciate any quick thoughts or insights. Thanks! ","created_at":"2015-05-27T17:11:07Z","updated_at":"2015-05-28T00:03:35Z","closed_at":null,"merged_at":null,"merge_commit_sha":"f1ff9ee77367e1b6a5ccc6d663266d0a7bb28001","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/pulls/23/commits","review_comments_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/pulls/23/comments","review_comment_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/pulls/comments{/number}","comments_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/issues/23/comments","statuses_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/statuses/167103649fbe55ccab7471131ce95f60d31f274e","head":{"label":"paircolumbus:esmith_solution","ref":"esmith_solution","sha":"167103649fbe55ccab7471131ce95f60d31f274e","user":{"login":"paircolumbus","id":8568348,"avatar_url":"https://avatars.githubusercontent.com/u/8568348?v=3","gravatar_id":"","url":"https://api.github.com/users/paircolumbus","html_url":"https://github.com/paircolumbus","followers_url":"https://api.github.com/users/paircolumbus/followers","following_url":"https://api.github.com/users/paircolumbus/following{/other_user}","gists_url":"https://api.github.com/users/paircolumbus/gists{/gist_id}","starred_url":"https://api.github.com/users/paircolumbus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paircolumbus/subscriptions","organizations_url":"https://api.github.com/users/paircolumbus/orgs","repos_url":"https://api.github.com/users/paircolumbus/repos","events_url":"https://api.github.com/users/paircolumbus/events{/privacy}","received_events_url":"https://api.github.com/users/paircolumbus/received_events","type":"Organization","site_admin":false},"repo":{"id":24014195,"name":"MoreDrillsWithRSpec","full_name":"paircolumbus/MoreDrillsWithRSpec","owner":{"login":"paircolumbus","id":8568348,"avatar_url":"https://avatars.githubusercontent.com/u/8568348?v=3","gravatar_id":"","url":"https://api.github.com/users/paircolumbus","html_url":"https://github.com/paircolumbus","followers_url":"https://api.github.com/users/paircolumbus/followers","following_url":"https://api.github.com/users/paircolumbus/following{/other_user}","gists_url":"https://api.github.com/users/paircolumbus/gists{/gist_id}","starred_url":"https://api.github.com/users/paircolumbus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paircolumbus/subscriptions","organizations_url":"https://api.github.com/users/paircolumbus/orgs","repos_url":"https://api.github.com/users/paircolumbus/repos","events_url":"https://api.github.com/users/paircolumbus/events{/privacy}","received_events_url":"https://api.github.com/users/paircolumbus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/paircolumbus/MoreDrillsWithRSpec","description":"A beginner introduction to RSpec","fork":false,"url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec","forks_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/forks","keys_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/teams","hooks_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/hooks","issue_events_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/issues/events{/number}","events_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/events","assignees_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/assignees{/user}","branches_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/branches{/branch}","tags_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/tags","blobs_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/git/refs{/sha}","trees_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/statuses/{sha}","languages_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/languages","stargazers_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/stargazers","contributors_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/contributors","subscribers_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/subscribers","subscription_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/subscription","commits_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/commits{/sha}","git_commits_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/git/commits{/sha}","comments_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/comments{/number}","issue_comment_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/issues/comments{/number}","contents_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/contents/{+path}","compare_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/merges","archive_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/downloads","issues_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/issues{/number}","pulls_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/pulls{/number}","milestones_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/milestones{/number}","notifications_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/labels{/name}","releases_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/releases{/id}","created_at":"2014-09-14T05:14:31Z","updated_at":"2015-01-02T17:45:00Z","pushed_at":"2015-05-27T17:11:08Z","git_url":"git://github.com/paircolumbus/MoreDrillsWithRSpec.git","ssh_url":"git@github.com:paircolumbus/MoreDrillsWithRSpec.git","clone_url":"https://github.com/paircolumbus/MoreDrillsWithRSpec.git","svn_url":"https://github.com/paircolumbus/MoreDrillsWithRSpec","homepage":"","size":461,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":20,"forks":14,"open_issues":20,"watchers":0,"default_branch":"master"}},"base":{"label":"paircolumbus:master","ref":"master","sha":"c9cb8a9a6999458fc58f1aaea6ea5ba09e7cbe78","user":{"login":"paircolumbus","id":8568348,"avatar_url":"https://avatars.githubusercontent.com/u/8568348?v=3","gravatar_id":"","url":"https://api.github.com/users/paircolumbus","html_url":"https://github.com/paircolumbus","followers_url":"https://api.github.com/users/paircolumbus/followers","following_url":"https://api.github.com/users/paircolumbus/following{/other_user}","gists_url":"https://api.github.com/users/paircolumbus/gists{/gist_id}","starred_url":"https://api.github.com/users/paircolumbus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paircolumbus/subscriptions","organizations_url":"https://api.github.com/users/paircolumbus/orgs","repos_url":"https://api.github.com/users/paircolumbus/repos","events_url":"https://api.github.com/users/paircolumbus/events{/privacy}","received_events_url":"https://api.github.com/users/paircolumbus/received_events","type":"Organization","site_admin":false},"repo":{"id":24014195,"name":"MoreDrillsWithRSpec","full_name":"paircolumbus/MoreDrillsWithRSpec","owner":{"login":"paircolumbus","id":8568348,"avatar_url":"https://avatars.githubusercontent.com/u/8568348?v=3","gravatar_id":"","url":"https://api.github.com/users/paircolumbus","html_url":"https://github.com/paircolumbus","followers_url":"https://api.github.com/users/paircolumbus/followers","following_url":"https://api.github.com/users/paircolumbus/following{/other_user}","gists_url":"https://api.github.com/users/paircolumbus/gists{/gist_id}","starred_url":"https://api.github.com/users/paircolumbus/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/paircolumbus/subscriptions","organizations_url":"https://api.github.com/users/paircolumbus/orgs","repos_url":"https://api.github.com/users/paircolumbus/repos","events_url":"https://api.github.com/users/paircolumbus/events{/privacy}","received_events_url":"https://api.github.com/users/paircolumbus/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/paircolumbus/MoreDrillsWithRSpec","description":"A beginner introduction to RSpec","fork":false,"url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec","forks_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/forks","keys_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/keys{/key_id}","collaborators_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/teams","hooks_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/hooks","issue_events_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/issues/events{/number}","events_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/events","assignees_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/assignees{/user}","branches_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/branches{/branch}","tags_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/tags","blobs_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/git/refs{/sha}","trees_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/git/trees{/sha}","statuses_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/statuses/{sha}","languages_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/languages","stargazers_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/stargazers","contributors_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/contributors","subscribers_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/subscribers","subscription_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/subscription","commits_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/commits{/sha}","git_commits_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/git/commits{/sha}","comments_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/comments{/number}","issue_comment_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/issues/comments{/number}","contents_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/contents/{+path}","compare_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/compare/{base}...{head}","merges_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/merges","archive_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/downloads","issues_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/issues{/number}","pulls_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/pulls{/number}","milestones_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/milestones{/number}","notifications_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/labels{/name}","releases_url":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/releases{/id}","created_at":"2014-09-14T05:14:31Z","updated_at":"2015-01-02T17:45:00Z","pushed_at":"2015-05-27T17:11:08Z","git_url":"git://github.com/paircolumbus/MoreDrillsWithRSpec.git","ssh_url":"git@github.com:paircolumbus/MoreDrillsWithRSpec.git","clone_url":"https://github.com/paircolumbus/MoreDrillsWithRSpec.git","svn_url":"https://github.com/paircolumbus/MoreDrillsWithRSpec","homepage":"","size":461,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":14,"mirror_url":null,"open_issues_count":20,"forks":14,"open_issues":20,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/pulls/23"},"html":{"href":"https://github.com/paircolumbus/MoreDrillsWithRSpec/pull/23"},"issue":{"href":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/issues/23"},"comments":{"href":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/issues/23/comments"},"review_comments":{"href":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/pulls/23/comments"},"review_comment":{"href":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/pulls/23/commits"},"statuses":{"href":"https://api.github.com/repos/paircolumbus/MoreDrillsWithRSpec/statuses/167103649fbe55ccab7471131ce95f60d31f274e"}}}}