{"action":"created","comment":{"url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/pulls/comments/42949477","id":42949477,"diff_hunk":"@@ -13,36 +13,47 @@ def longest(enum)\n   # enumerable supplied (i.e. apply the `+` operator)\n   # Assume each entry implements a `+` method\n   def sum(enum)\n-    # Your code goes here\n+    enum.reduce(&:+)\n   end\n \n   # Question 3\n   # Write ruby code that returns true if some of the entries\n   # in the numbers enumerable are odd\n   def some_odd(numbers)\n-    # Your code goes here\n+    numbers.any? { |x| x.odd? }\n   end\n \n   # Question 4\n   # Write ruby code that returns true if every entry in the\n   # numbers enumerable are even\n   def every_even(numbers)\n-    # Your code goes here\n+    numbers.all? { |x| x.even? }\n   end\n \n   # Question 5\n   # Write ruby code that returns an array with all of the\n   # entries from the words enumerable capitalized.\n   def transform(words)\n-    # Your code goes here\n+    words.map(&:capitalize)\n   end\n \n+  # the reason why we can use the &:capitalize after words.map is\n+  # because it operates the same was as words.map { |w| w.capitalize }\n+\n   # Question 6\n   # Write ruby code to read each line from the file\n   # named filename. Concatenate the lines together after\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+    File.open(filename).reduce(' ') { |a, e| a << e.chomp + ' ' }.strip\n   end\n end\n+\n+# admittedly I needed some help with this one but here is my understanding:\n+# We use File.open and then pass it the filename from the perameters\n+# then use reduce to combine all the elements of the file and then use reduce\n+# and pass it an initial value of '' and pass the perameters a and e\n+# we then use the << to append the argument we get from e.chomp and adding\n+# an empty string to seperate the words\n+# we end by using strip to remove all trailing and leading whitespace","path":"lib/assessment.rb","position":61,"original_position":61,"commit_id":"fc9eadd6eaaa1c808bf9a3e0216fd29523df09d1","original_commit_id":"fc9eadd6eaaa1c808bf9a3e0216fd29523df09d1","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":"Yep! This is a great step-by-step explanation of what's going on. Nice job.","created_at":"2015-10-25T19:59:15Z","updated_at":"2015-10-25T19:59:15Z","html_url":"https://github.com/ga-wdi-boston/ruby-enumerable-assessment/pull/33#discussion_r42949477","pull_request_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/pulls/33","_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/pulls/comments/42949477"},"html":{"href":"https://github.com/ga-wdi-boston/ruby-enumerable-assessment/pull/33#discussion_r42949477"},"pull_request":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/pulls/33"}}},"pull_request":{"url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/pulls/33","id":48664881,"html_url":"https://github.com/ga-wdi-boston/ruby-enumerable-assessment/pull/33","diff_url":"https://github.com/ga-wdi-boston/ruby-enumerable-assessment/pull/33.diff","patch_url":"https://github.com/ga-wdi-boston/ruby-enumerable-assessment/pull/33.patch","issue_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/issues/33","number":33,"state":"open","locked":false,"title":"Assessment","user":{"login":"jcmeyer10","id":12531471,"avatar_url":"https://avatars.githubusercontent.com/u/12531471?v=3","gravatar_id":"","url":"https://api.github.com/users/jcmeyer10","html_url":"https://github.com/jcmeyer10","followers_url":"https://api.github.com/users/jcmeyer10/followers","following_url":"https://api.github.com/users/jcmeyer10/following{/other_user}","gists_url":"https://api.github.com/users/jcmeyer10/gists{/gist_id}","starred_url":"https://api.github.com/users/jcmeyer10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcmeyer10/subscriptions","organizations_url":"https://api.github.com/users/jcmeyer10/orgs","repos_url":"https://api.github.com/users/jcmeyer10/repos","events_url":"https://api.github.com/users/jcmeyer10/events{/privacy}","received_events_url":"https://api.github.com/users/jcmeyer10/received_events","type":"User","site_admin":false},"body":"\"amended second and third answers so they wouldn't always return true …\r\nand corrected answer 4 and annotated my thoughts on answer 5 to help\r\nclarify to instructors my understanding of material\"","created_at":"2015-10-24T20:48:51Z","updated_at":"2015-10-25T19:59:15Z","closed_at":null,"merged_at":null,"merge_commit_sha":"5e557eb9c80fbd7da56b09978f3617e50c5d7b25","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/pulls/33/commits","review_comments_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/pulls/33/comments","review_comment_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/pulls/comments{/number}","comments_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/issues/33/comments","statuses_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/statuses/fc9eadd6eaaa1c808bf9a3e0216fd29523df09d1","head":{"label":"jcmeyer10:assessment","ref":"assessment","sha":"fc9eadd6eaaa1c808bf9a3e0216fd29523df09d1","user":{"login":"jcmeyer10","id":12531471,"avatar_url":"https://avatars.githubusercontent.com/u/12531471?v=3","gravatar_id":"","url":"https://api.github.com/users/jcmeyer10","html_url":"https://github.com/jcmeyer10","followers_url":"https://api.github.com/users/jcmeyer10/followers","following_url":"https://api.github.com/users/jcmeyer10/following{/other_user}","gists_url":"https://api.github.com/users/jcmeyer10/gists{/gist_id}","starred_url":"https://api.github.com/users/jcmeyer10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcmeyer10/subscriptions","organizations_url":"https://api.github.com/users/jcmeyer10/orgs","repos_url":"https://api.github.com/users/jcmeyer10/repos","events_url":"https://api.github.com/users/jcmeyer10/events{/privacy}","received_events_url":"https://api.github.com/users/jcmeyer10/received_events","type":"User","site_admin":false},"repo":{"id":44748882,"name":"ruby-enumerable-assessment","full_name":"jcmeyer10/ruby-enumerable-assessment","owner":{"login":"jcmeyer10","id":12531471,"avatar_url":"https://avatars.githubusercontent.com/u/12531471?v=3","gravatar_id":"","url":"https://api.github.com/users/jcmeyer10","html_url":"https://github.com/jcmeyer10","followers_url":"https://api.github.com/users/jcmeyer10/followers","following_url":"https://api.github.com/users/jcmeyer10/following{/other_user}","gists_url":"https://api.github.com/users/jcmeyer10/gists{/gist_id}","starred_url":"https://api.github.com/users/jcmeyer10/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jcmeyer10/subscriptions","organizations_url":"https://api.github.com/users/jcmeyer10/orgs","repos_url":"https://api.github.com/users/jcmeyer10/repos","events_url":"https://api.github.com/users/jcmeyer10/events{/privacy}","received_events_url":"https://api.github.com/users/jcmeyer10/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/jcmeyer10/ruby-enumerable-assessment","description":"Assessment for \"Ruby Enumerable\" lesson","fork":true,"url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment","forks_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/forks","keys_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/teams","hooks_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/hooks","issue_events_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/issues/events{/number}","events_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/events","assignees_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/assignees{/user}","branches_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/branches{/branch}","tags_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/tags","blobs_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/git/refs{/sha}","trees_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/statuses/{sha}","languages_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/languages","stargazers_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/stargazers","contributors_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/contributors","subscribers_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/subscribers","subscription_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/subscription","commits_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/commits{/sha}","git_commits_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/git/commits{/sha}","comments_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/comments{/number}","issue_comment_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/issues/comments{/number}","contents_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/contents/{+path}","compare_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/merges","archive_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/downloads","issues_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/issues{/number}","pulls_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/pulls{/number}","milestones_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/milestones{/number}","notifications_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/labels{/name}","releases_url":"https://api.github.com/repos/jcmeyer10/ruby-enumerable-assessment/releases{/id}","created_at":"2015-10-22T13:59:36Z","updated_at":"2015-10-22T13:59:37Z","pushed_at":"2015-10-24T20:47:45Z","git_url":"git://github.com/jcmeyer10/ruby-enumerable-assessment.git","ssh_url":"git@github.com:jcmeyer10/ruby-enumerable-assessment.git","clone_url":"https://github.com/jcmeyer10/ruby-enumerable-assessment.git","svn_url":"https://github.com/jcmeyer10/ruby-enumerable-assessment","homepage":null,"size":0,"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":"52ad3bfac25337c975390209b61126093084247d","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-assessment","full_name":"ga-wdi-boston/ruby-enumerable-assessment","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-assessment","description":"Assessment for \"Ruby Enumerable\" lesson","fork":false,"url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment","forks_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/forks","keys_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/keys{/key_id}","collaborators_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/teams","hooks_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/hooks","issue_events_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/issues/events{/number}","events_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/events","assignees_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/assignees{/user}","branches_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/branches{/branch}","tags_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/tags","blobs_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/git/refs{/sha}","trees_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/git/trees{/sha}","statuses_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/statuses/{sha}","languages_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/languages","stargazers_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/stargazers","contributors_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/contributors","subscribers_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/subscribers","subscription_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/subscription","commits_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/commits{/sha}","git_commits_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/git/commits{/sha}","comments_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/comments{/number}","issue_comment_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/issues/comments{/number}","contents_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/contents/{+path}","compare_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/compare/{base}...{head}","merges_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/merges","archive_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/downloads","issues_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/issues{/number}","pulls_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/pulls{/number}","milestones_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/milestones{/number}","notifications_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/labels{/name}","releases_url":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/releases{/id}","created_at":"2015-10-19T19:22:51Z","updated_at":"2015-10-19T19:23:03Z","pushed_at":"2015-10-25T12:51:07Z","git_url":"git://github.com/ga-wdi-boston/ruby-enumerable-assessment.git","ssh_url":"git@github.com:ga-wdi-boston/ruby-enumerable-assessment.git","clone_url":"https://github.com/ga-wdi-boston/ruby-enumerable-assessment.git","svn_url":"https://github.com/ga-wdi-boston/ruby-enumerable-assessment","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":32,"mirror_url":null,"open_issues_count":3,"forks":32,"open_issues":3,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/pulls/33"},"html":{"href":"https://github.com/ga-wdi-boston/ruby-enumerable-assessment/pull/33"},"issue":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/issues/33"},"comments":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/issues/33/comments"},"review_comments":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/pulls/33/comments"},"review_comment":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/pulls/33/commits"},"statuses":{"href":"https://api.github.com/repos/ga-wdi-boston/ruby-enumerable-assessment/statuses/fc9eadd6eaaa1c808bf9a3e0216fd29523df09d1"}}}}