{"action":"created","comment":{"url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/comments/53196801","id":53196801,"diff_hunk":"@@ -43,6 +55,9 @@ def transform(words)\n   # replacing the trailing newline character with a\n   # space and return the result.\n   def read_file(filename)\n-    # Your code goes here\n-  end\n+    lines = filename.open(ARGV[0]) do |file|\n+      file.map(&:itself)\n+    end\n+\n+  print lines","path":"lib/diagnostic.rb","position":59,"original_position":59,"commit_id":"061c25f939f61a1f44457fbad575ba38d9466c4a","original_commit_id":"061c25f939f61a1f44457fbad575ba38d9466c4a","user":{"login":"MattB-GA-Boston","id":3653013,"avatar_url":"https://avatars.githubusercontent.com/u/3653013?v=3","gravatar_id":"","url":"https://api.github.com/users/MattB-GA-Boston","html_url":"https://github.com/MattB-GA-Boston","followers_url":"https://api.github.com/users/MattB-GA-Boston/followers","following_url":"https://api.github.com/users/MattB-GA-Boston/following{/other_user}","gists_url":"https://api.github.com/users/MattB-GA-Boston/gists{/gist_id}","starred_url":"https://api.github.com/users/MattB-GA-Boston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/MattB-GA-Boston/subscriptions","organizations_url":"https://api.github.com/users/MattB-GA-Boston/orgs","repos_url":"https://api.github.com/users/MattB-GA-Boston/repos","events_url":"https://api.github.com/users/MattB-GA-Boston/events{/privacy}","received_events_url":"https://api.github.com/users/MattB-GA-Boston/received_events","type":"User","site_admin":false},"body":"`map(&:itself)` just creates a duplicate array, with the same content as the original.\r\nInstead of doing this, we want to get rid of the `\\n` at the end of each line and (except for the final one).","created_at":"2016-02-17T17:09:51Z","updated_at":"2016-02-17T17:09:51Z","html_url":"https://github.com/ga-wdi-boston/ruby-enumerable-diagnostic/pull/47#discussion_r53196801","pull_request_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/47","_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/comments/53196801"},"html":{"href":"https://github.com/ga-wdi-boston/ruby-enumerable-diagnostic/pull/47#discussion_r53196801"},"pull_request":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/47"}}},"pull_request":{"url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/47","id":59179584,"html_url":"https://github.com/ga-wdi-boston/ruby-enumerable-diagnostic/pull/47","diff_url":"https://github.com/ga-wdi-boston/ruby-enumerable-diagnostic/pull/47.diff","patch_url":"https://github.com/ga-wdi-boston/ruby-enumerable-diagnostic/pull/47.patch","issue_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/issues/47","number":47,"state":"open","locked":false,"title":"Ajordon diag response","user":{"login":"ajordon","id":6088950,"avatar_url":"https://avatars.githubusercontent.com/u/6088950?v=3","gravatar_id":"","url":"https://api.github.com/users/ajordon","html_url":"https://github.com/ajordon","followers_url":"https://api.github.com/users/ajordon/followers","following_url":"https://api.github.com/users/ajordon/following{/other_user}","gists_url":"https://api.github.com/users/ajordon/gists{/gist_id}","starred_url":"https://api.github.com/users/ajordon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajordon/subscriptions","organizations_url":"https://api.github.com/users/ajordon/orgs","repos_url":"https://api.github.com/users/ajordon/repos","events_url":"https://api.github.com/users/ajordon/events{/privacy}","received_events_url":"https://api.github.com/users/ajordon/received_events","type":"User","site_admin":false},"body":"","created_at":"2016-02-12T14:28:05Z","updated_at":"2016-02-17T17:09:51Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4c568ddab872a807218deea7564a92488f3726e2","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/47/commits","review_comments_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/47/comments","review_comment_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/issues/47/comments","statuses_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/statuses/061c25f939f61a1f44457fbad575ba38d9466c4a","head":{"label":"ajordon:response","ref":"response","sha":"061c25f939f61a1f44457fbad575ba38d9466c4a","user":{"login":"ajordon","id":6088950,"avatar_url":"https://avatars.githubusercontent.com/u/6088950?v=3","gravatar_id":"","url":"https://api.github.com/users/ajordon","html_url":"https://github.com/ajordon","followers_url":"https://api.github.com/users/ajordon/followers","following_url":"https://api.github.com/users/ajordon/following{/other_user}","gists_url":"https://api.github.com/users/ajordon/gists{/gist_id}","starred_url":"https://api.github.com/users/ajordon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajordon/subscriptions","organizations_url":"https://api.github.com/users/ajordon/orgs","repos_url":"https://api.github.com/users/ajordon/repos","events_url":"https://api.github.com/users/ajordon/events{/privacy}","received_events_url":"https://api.github.com/users/ajordon/received_events","type":"User","site_admin":false},"repo":{"id":51590784,"name":"ruby-enumerable-diagnostic","full_name":"ajordon/ruby-enumerable-diagnostic","owner":{"login":"ajordon","id":6088950,"avatar_url":"https://avatars.githubusercontent.com/u/6088950?v=3","gravatar_id":"","url":"https://api.github.com/users/ajordon","html_url":"https://github.com/ajordon","followers_url":"https://api.github.com/users/ajordon/followers","following_url":"https://api.github.com/users/ajordon/following{/other_user}","gists_url":"https://api.github.com/users/ajordon/gists{/gist_id}","starred_url":"https://api.github.com/users/ajordon/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ajordon/subscriptions","organizations_url":"https://api.github.com/users/ajordon/orgs","repos_url":"https://api.github.com/users/ajordon/repos","events_url":"https://api.github.com/users/ajordon/events{/privacy}","received_events_url":"https://api.github.com/users/ajordon/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/ajordon/ruby-enumerable-diagnostic","description":"Assessment for \"Ruby Enumerable\" lesson","fork":true,"url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic","forks_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/forks","keys_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/teams","hooks_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/hooks","issue_events_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/issues/events{/number}","events_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/events","assignees_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/assignees{/user}","branches_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/branches{/branch}","tags_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/tags","blobs_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/git/refs{/sha}","trees_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/statuses/{sha}","languages_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/languages","stargazers_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/stargazers","contributors_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/contributors","subscribers_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/subscribers","subscription_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/subscription","commits_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/commits{/sha}","git_commits_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/git/commits{/sha}","comments_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/comments{/number}","issue_comment_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/issues/comments{/number}","contents_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/contents/{+path}","compare_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/merges","archive_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/downloads","issues_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/issues{/number}","pulls_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/pulls{/number}","milestones_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/milestones{/number}","notifications_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/labels{/name}","releases_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/releases{/id}","deployments_url":"https://api.github.com/repos/ajordon/ruby-enumerable-diagnostic/deployments","created_at":"2016-02-12T14:00:25Z","updated_at":"2016-02-12T14:00:25Z","pushed_at":"2016-02-12T14:27:45Z","git_url":"git://github.com/ajordon/ruby-enumerable-diagnostic.git","ssh_url":"git@github.com:ajordon/ruby-enumerable-diagnostic.git","clone_url":"https://github.com/ajordon/ruby-enumerable-diagnostic.git","svn_url":"https://github.com/ajordon/ruby-enumerable-diagnostic","homepage":null,"size":111,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":0,"forks":0,"open_issues":0,"watchers":0,"default_branch":"master"}},"base":{"label":"ga-wdi-boston:master","ref":"master","sha":"cf112852b7935596b7bcfdcccffee0274ee654af","user":{"login":"ga-wdi-boston","id":6361298,"avatar_url":"https://avatars.githubusercontent.com/u/6361298?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-boston","html_url":"https://github.com/ga-wdi-boston","followers_url":"https://api.github.com/users/ga-wdi-boston/followers","following_url":"https://api.github.com/users/ga-wdi-boston/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-boston/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-boston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-boston/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-boston/orgs","repos_url":"https://api.github.com/users/ga-wdi-boston/repos","events_url":"https://api.github.com/users/ga-wdi-boston/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-boston/received_events","type":"Organization","site_admin":false},"repo":{"id":44558147,"name":"ruby-enumerable-diagnostic","full_name":"ga-wdi-boston/ruby-enumerable-diagnostic","owner":{"login":"ga-wdi-boston","id":6361298,"avatar_url":"https://avatars.githubusercontent.com/u/6361298?v=3","gravatar_id":"","url":"https://api.github.com/users/ga-wdi-boston","html_url":"https://github.com/ga-wdi-boston","followers_url":"https://api.github.com/users/ga-wdi-boston/followers","following_url":"https://api.github.com/users/ga-wdi-boston/following{/other_user}","gists_url":"https://api.github.com/users/ga-wdi-boston/gists{/gist_id}","starred_url":"https://api.github.com/users/ga-wdi-boston/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ga-wdi-boston/subscriptions","organizations_url":"https://api.github.com/users/ga-wdi-boston/orgs","repos_url":"https://api.github.com/users/ga-wdi-boston/repos","events_url":"https://api.github.com/users/ga-wdi-boston/events{/privacy}","received_events_url":"https://api.github.com/users/ga-wdi-boston/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/ga-wdi-boston/ruby-enumerable-diagnostic","description":"Assessment for \"Ruby Enumerable\" lesson","fork":false,"url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic","forks_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/forks","keys_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/teams","hooks_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/hooks","issue_events_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/issues/events{/number}","events_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/events","assignees_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/assignees{/user}","branches_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/branches{/branch}","tags_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/tags","blobs_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/languages","stargazers_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/stargazers","contributors_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/contributors","subscribers_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/subscribers","subscription_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/subscription","commits_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/contents/{+path}","compare_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/merges","archive_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/downloads","issues_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/issues{/number}","pulls_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/labels{/name}","releases_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/releases{/id}","deployments_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/deployments","created_at":"2015-10-19T19:22:51Z","updated_at":"2016-02-04T18:20:44Z","pushed_at":"2016-02-12T16:08:01Z","git_url":"git://github.com/ga-wdi-boston/ruby-enumerable-diagnostic.git","ssh_url":"git@github.com:ga-wdi-boston/ruby-enumerable-diagnostic.git","clone_url":"https://github.com/ga-wdi-boston/ruby-enumerable-diagnostic.git","svn_url":"https://github.com/ga-wdi-boston/ruby-enumerable-diagnostic","homepage":null,"size":143,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":44,"mirror_url":null,"open_issues_count":12,"forks":44,"open_issues":12,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/47"},"html":{"href":"https://github.com/ga-wdi-boston/ruby-enumerable-diagnostic/pull/47"},"issue":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/issues/47"},"comments":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/issues/47/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/47/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/pulls/47/commits"},"statuses":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-diagnostic/statuses/061c25f939f61a1f44457fbad575ba38d9466c4a"}}}}