{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/comments/29953345","id":29953345,"diff_hunk":"@@ -0,0 +1,50 @@\n+require 'daryl_inject'\n+\n+describe Array do\n+\n+  it 'adds up an array of numbers' do\n+    output = (1..10).to_a.daryl_inject(0) { |sum, number| sum + number }\n+    expect(output).to eq ((1..10)).inject(0) { |sum, number| sum + number }\n+  end\n+\n+  it 'adds up an array of numbers without default value' do\n+    output = (1..10).to_a.daryl_inject { |sum, number| sum + number }\n+    expect(output).to eq ((1..10)).inject { |sum, number| sum + number }\n+  end\n+\n+  it 'adds up an array of numbers without default value' do\n+    output = (1..4).to_a.daryl_inject { |sum, number| sum + number }\n+    expect(output).to eq ((1..4)).inject { |sum, number| sum + number }\n+  end\n+\n+  it 'subtracts up an array of numbers' do\n+    output = (1..10).to_a.daryl_inject(0) { |sum, number| sum - number }\n+    expect(output).to eq ((1..10)).inject(0) { |sum, number| sum - number }\n+  end\n+\n+  it 'multiplies up an array of numbers' do\n+    output = (1..50).to_a.daryl_inject(1) { |sum, number| sum * number }\n+    expect(output).to eq ((1..50)).inject(1) { |sum, number| sum * number }\n+  end\n+\n+  it 'multiplies up an array of numbers without a default' do\n+    output = (1..50).to_a.daryl_inject { |sum, number| sum * number }\n+    expect(output).to eq ((1..50)).inject { |sum, number| sum * number }\n+  end\n+\n+  it 'can handle strings' do\n+    output = ['Daryl, Tim, Ptolemy, Ben, Sam'].daryl_inject { |sum, firstword| sum + firstword }\n+    expect(output).to eq ['Daryl, Tim, Ptolemy, Ben, Sam'].inject { |sum, firstword| sum + firstword }","path":"spec/daryl_inject_spec.rb","position":37,"original_position":37,"commit_id":"3a799a6ed135bfc3c71803edfad63d8bb9f074a7","original_commit_id":"3a799a6ed135bfc3c71803edfad63d8bb9f074a7","user":{"login":"houndci","id":6697940,"avatar_url":"https://avatars.githubusercontent.com/u/6697940?v=3","gravatar_id":"","url":"https://api.github.com/users/houndci","html_url":"https://github.com/houndci","followers_url":"https://api.github.com/users/houndci/followers","following_url":"https://api.github.com/users/houndci/following{/other_user}","gists_url":"https://api.github.com/users/houndci/gists{/gist_id}","starred_url":"https://api.github.com/users/houndci/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/houndci/subscriptions","organizations_url":"https://api.github.com/users/houndci/orgs","repos_url":"https://api.github.com/users/houndci/repos","events_url":"https://api.github.com/users/houndci/events{/privacy}","received_events_url":"https://api.github.com/users/houndci/received_events","type":"User","site_admin":false},"body":"Line is too long. [102/80]","created_at":"2015-05-08T16:20:05Z","updated_at":"2015-05-08T16:20:05Z","html_url":"https://github.com/makersacademy/inject-challenge/pull/55#discussion_r29953345","pull_request_url":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/55","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/comments/29953345"},"html":{"href":"https://github.com/makersacademy/inject-challenge/pull/55#discussion_r29953345"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/55"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/55","id":35018980,"html_url":"https://github.com/makersacademy/inject-challenge/pull/55","diff_url":"https://github.com/makersacademy/inject-challenge/pull/55.diff","patch_url":"https://github.com/makersacademy/inject-challenge/pull/55.patch","issue_url":"https://api.github.com/repos/makersacademy/inject-challenge/issues/55","number":55,"state":"open","locked":false,"title":"Created daryl_inject method","user":{"login":"dwatson62","id":9296416,"avatar_url":"https://avatars.githubusercontent.com/u/9296416?v=3","gravatar_id":"","url":"https://api.github.com/users/dwatson62","html_url":"https://github.com/dwatson62","followers_url":"https://api.github.com/users/dwatson62/followers","following_url":"https://api.github.com/users/dwatson62/following{/other_user}","gists_url":"https://api.github.com/users/dwatson62/gists{/gist_id}","starred_url":"https://api.github.com/users/dwatson62/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwatson62/subscriptions","organizations_url":"https://api.github.com/users/dwatson62/orgs","repos_url":"https://api.github.com/users/dwatson62/repos","events_url":"https://api.github.com/users/dwatson62/events{/privacy}","received_events_url":"https://api.github.com/users/dwatson62/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-05-08T15:25:43Z","updated_at":"2015-05-08T16:20:05Z","closed_at":null,"merged_at":null,"merge_commit_sha":"38e02d7b05a0394a0c1ba474d1928b09738efde0","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/55/commits","review_comments_url":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/55/comments","review_comment_url":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/makersacademy/inject-challenge/issues/55/comments","statuses_url":"https://api.github.com/repos/makersacademy/inject-challenge/statuses/3a799a6ed135bfc3c71803edfad63d8bb9f074a7","head":{"label":"dwatson62:master","ref":"master","sha":"3a799a6ed135bfc3c71803edfad63d8bb9f074a7","user":{"login":"dwatson62","id":9296416,"avatar_url":"https://avatars.githubusercontent.com/u/9296416?v=3","gravatar_id":"","url":"https://api.github.com/users/dwatson62","html_url":"https://github.com/dwatson62","followers_url":"https://api.github.com/users/dwatson62/followers","following_url":"https://api.github.com/users/dwatson62/following{/other_user}","gists_url":"https://api.github.com/users/dwatson62/gists{/gist_id}","starred_url":"https://api.github.com/users/dwatson62/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwatson62/subscriptions","organizations_url":"https://api.github.com/users/dwatson62/orgs","repos_url":"https://api.github.com/users/dwatson62/repos","events_url":"https://api.github.com/users/dwatson62/events{/privacy}","received_events_url":"https://api.github.com/users/dwatson62/received_events","type":"User","site_admin":false},"repo":{"id":35272929,"name":"inject-challenge","full_name":"dwatson62/inject-challenge","owner":{"login":"dwatson62","id":9296416,"avatar_url":"https://avatars.githubusercontent.com/u/9296416?v=3","gravatar_id":"","url":"https://api.github.com/users/dwatson62","html_url":"https://github.com/dwatson62","followers_url":"https://api.github.com/users/dwatson62/followers","following_url":"https://api.github.com/users/dwatson62/following{/other_user}","gists_url":"https://api.github.com/users/dwatson62/gists{/gist_id}","starred_url":"https://api.github.com/users/dwatson62/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/dwatson62/subscriptions","organizations_url":"https://api.github.com/users/dwatson62/orgs","repos_url":"https://api.github.com/users/dwatson62/repos","events_url":"https://api.github.com/users/dwatson62/events{/privacy}","received_events_url":"https://api.github.com/users/dwatson62/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/dwatson62/inject-challenge","description":"Rewrite the Ruby Inject Method","fork":true,"url":"https://api.github.com/repos/dwatson62/inject-challenge","forks_url":"https://api.github.com/repos/dwatson62/inject-challenge/forks","keys_url":"https://api.github.com/repos/dwatson62/inject-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/dwatson62/inject-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/dwatson62/inject-challenge/teams","hooks_url":"https://api.github.com/repos/dwatson62/inject-challenge/hooks","issue_events_url":"https://api.github.com/repos/dwatson62/inject-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/dwatson62/inject-challenge/events","assignees_url":"https://api.github.com/repos/dwatson62/inject-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/dwatson62/inject-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/dwatson62/inject-challenge/tags","blobs_url":"https://api.github.com/repos/dwatson62/inject-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/dwatson62/inject-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/dwatson62/inject-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/dwatson62/inject-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/dwatson62/inject-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/dwatson62/inject-challenge/languages","stargazers_url":"https://api.github.com/repos/dwatson62/inject-challenge/stargazers","contributors_url":"https://api.github.com/repos/dwatson62/inject-challenge/contributors","subscribers_url":"https://api.github.com/repos/dwatson62/inject-challenge/subscribers","subscription_url":"https://api.github.com/repos/dwatson62/inject-challenge/subscription","commits_url":"https://api.github.com/repos/dwatson62/inject-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/dwatson62/inject-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/dwatson62/inject-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/dwatson62/inject-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/dwatson62/inject-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/dwatson62/inject-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/dwatson62/inject-challenge/merges","archive_url":"https://api.github.com/repos/dwatson62/inject-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/dwatson62/inject-challenge/downloads","issues_url":"https://api.github.com/repos/dwatson62/inject-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/dwatson62/inject-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/dwatson62/inject-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/dwatson62/inject-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/dwatson62/inject-challenge/labels{/name}","releases_url":"https://api.github.com/repos/dwatson62/inject-challenge/releases{/id}","created_at":"2015-05-08T10:17:38Z","updated_at":"2015-05-08T16:19:58Z","pushed_at":"2015-05-08T16:19:58Z","git_url":"git://github.com/dwatson62/inject-challenge.git","ssh_url":"git@github.com:dwatson62/inject-challenge.git","clone_url":"https://github.com/dwatson62/inject-challenge.git","svn_url":"https://github.com/dwatson62/inject-challenge","homepage":null,"size":794,"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":"makersacademy:master","ref":"master","sha":"4ef41dac2a551cd57d9820832c1f683e010c25f7","user":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"repo":{"id":27006120,"name":"inject-challenge","full_name":"makersacademy/inject-challenge","owner":{"login":"makersacademy","id":3636186,"avatar_url":"https://avatars.githubusercontent.com/u/3636186?v=3","gravatar_id":"","url":"https://api.github.com/users/makersacademy","html_url":"https://github.com/makersacademy","followers_url":"https://api.github.com/users/makersacademy/followers","following_url":"https://api.github.com/users/makersacademy/following{/other_user}","gists_url":"https://api.github.com/users/makersacademy/gists{/gist_id}","starred_url":"https://api.github.com/users/makersacademy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/makersacademy/subscriptions","organizations_url":"https://api.github.com/users/makersacademy/orgs","repos_url":"https://api.github.com/users/makersacademy/repos","events_url":"https://api.github.com/users/makersacademy/events{/privacy}","received_events_url":"https://api.github.com/users/makersacademy/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/makersacademy/inject-challenge","description":"Rewrite the Ruby Inject Method","fork":false,"url":"https://api.github.com/repos/makersacademy/inject-challenge","forks_url":"https://api.github.com/repos/makersacademy/inject-challenge/forks","keys_url":"https://api.github.com/repos/makersacademy/inject-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makersacademy/inject-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makersacademy/inject-challenge/teams","hooks_url":"https://api.github.com/repos/makersacademy/inject-challenge/hooks","issue_events_url":"https://api.github.com/repos/makersacademy/inject-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/makersacademy/inject-challenge/events","assignees_url":"https://api.github.com/repos/makersacademy/inject-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/makersacademy/inject-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/makersacademy/inject-challenge/tags","blobs_url":"https://api.github.com/repos/makersacademy/inject-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makersacademy/inject-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makersacademy/inject-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/makersacademy/inject-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makersacademy/inject-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/makersacademy/inject-challenge/languages","stargazers_url":"https://api.github.com/repos/makersacademy/inject-challenge/stargazers","contributors_url":"https://api.github.com/repos/makersacademy/inject-challenge/contributors","subscribers_url":"https://api.github.com/repos/makersacademy/inject-challenge/subscribers","subscription_url":"https://api.github.com/repos/makersacademy/inject-challenge/subscription","commits_url":"https://api.github.com/repos/makersacademy/inject-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/makersacademy/inject-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/makersacademy/inject-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/makersacademy/inject-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/makersacademy/inject-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/makersacademy/inject-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makersacademy/inject-challenge/merges","archive_url":"https://api.github.com/repos/makersacademy/inject-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makersacademy/inject-challenge/downloads","issues_url":"https://api.github.com/repos/makersacademy/inject-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/makersacademy/inject-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/makersacademy/inject-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/makersacademy/inject-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makersacademy/inject-challenge/labels{/name}","releases_url":"https://api.github.com/repos/makersacademy/inject-challenge/releases{/id}","created_at":"2014-11-22T17:17:20Z","updated_at":"2015-05-08T07:56:50Z","pushed_at":"2015-05-08T16:19:58Z","git_url":"git://github.com/makersacademy/inject-challenge.git","ssh_url":"git@github.com:makersacademy/inject-challenge.git","clone_url":"https://github.com/makersacademy/inject-challenge.git","svn_url":"https://github.com/makersacademy/inject-challenge","homepage":null,"size":794,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":45,"mirror_url":null,"open_issues_count":2,"forks":45,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/55"},"html":{"href":"https://github.com/makersacademy/inject-challenge/pull/55"},"issue":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/issues/55"},"comments":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/issues/55/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/55/comments"},"review_comment":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/pulls/55/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/inject-challenge/statuses/3a799a6ed135bfc3c71803edfad63d8bb9f074a7"}}}}