{"action":"created","comment":{"url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/pulls/comments/43931819","id":43931819,"diff_hunk":"@@ -0,0 +1,50 @@\n+require \"sinatra\"\n+require \"./lib/scrabble_master.rb\"\n+\n+class MySite < Sinatra::Base\n+\t# Creates the home page which links to a scoring page\n+\tget \"/\" do\n+\t\t@title = \"Scrabble\"\n+\t\terb :index\n+\tend\n+\n+\tget \"/index.html\" do \n+\t\t@title = \"Scrabble\"\n+\t\terb :index\n+\tend\n+\n+\t# Creates the score page from the home page\n+\tget \"/score.html\" do \n+\t\t@title = \"Scrabble Scorecard\"\n+\t\terb :score\n+\tend\n+\n+\t# Writing out the score using POST\n+\tpost \"/score.html\" do\n+\t\t@word_scored = true\n+\t\t@word = params[:word]\n+\t\t@score= Scrabble::Scrabble.score(@word)\n+\t\terb :score\n+\tend\n+\n+\t# Creates a score page for multiple words \n+\tget \"/score_multiple.html\" do \n+\t\t@title = \"Scrabble Scorecard: Multiple\"\n+\t\terb :score_multiple\n+\tend\n+\n+\t# Writing out the score using POST\n+\tpost \"/score_multiple.html\" do\n+\t\t@words_scored = true\n+\t\t@words = params[:words].split(', ')\n+\t\t@scores = []\n+\t\t@words.each do |word|\n+\t\t\t@scores.push(Scrabble::Scrabble.score(word))\n+\t\tend\n+\n+\t\t@list = @words.zip(@scores)\n+\t\t@total = @scores.inject(:+)","path":"my-site.rb","position":46,"original_position":46,"commit_id":"65cfd53c111a010cfe97eb68eb814d4dd16fc544","original_commit_id":"65cfd53c111a010cfe97eb68eb814d4dd16fc544","user":{"login":"Hamled","id":66355,"avatar_url":"https://avatars.githubusercontent.com/u/66355?v=3","gravatar_id":"","url":"https://api.github.com/users/Hamled","html_url":"https://github.com/Hamled","followers_url":"https://api.github.com/users/Hamled/followers","following_url":"https://api.github.com/users/Hamled/following{/other_user}","gists_url":"https://api.github.com/users/Hamled/gists{/gist_id}","starred_url":"https://api.github.com/users/Hamled/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Hamled/subscriptions","organizations_url":"https://api.github.com/users/Hamled/orgs","repos_url":"https://api.github.com/users/Hamled/repos","events_url":"https://api.github.com/users/Hamled/events{/privacy}","received_events_url":"https://api.github.com/users/Hamled/received_events","type":"User","site_admin":false},"body":"I like the use of inject here with the symbol for the `+` method!","created_at":"2015-11-04T20:05:12Z","updated_at":"2015-11-04T20:05:12Z","html_url":"https://github.com/Ada-C4/ScrabbleSinatra/pull/3#discussion_r43931819","pull_request_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/pulls/3","_links":{"self":{"href":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/pulls/comments/43931819"},"html":{"href":"https://github.com/Ada-C4/ScrabbleSinatra/pull/3#discussion_r43931819"},"pull_request":{"href":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/pulls/3"}}},"pull_request":{"url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/pulls/3","id":49635276,"html_url":"https://github.com/Ada-C4/ScrabbleSinatra/pull/3","diff_url":"https://github.com/Ada-C4/ScrabbleSinatra/pull/3.diff","patch_url":"https://github.com/Ada-C4/ScrabbleSinatra/pull/3.patch","issue_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/issues/3","number":3,"state":"open","locked":false,"title":"Lmm/master","user":{"login":"loganmeetsworld","id":10510566,"avatar_url":"https://avatars.githubusercontent.com/u/10510566?v=3","gravatar_id":"","url":"https://api.github.com/users/loganmeetsworld","html_url":"https://github.com/loganmeetsworld","followers_url":"https://api.github.com/users/loganmeetsworld/followers","following_url":"https://api.github.com/users/loganmeetsworld/following{/other_user}","gists_url":"https://api.github.com/users/loganmeetsworld/gists{/gist_id}","starred_url":"https://api.github.com/users/loganmeetsworld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loganmeetsworld/subscriptions","organizations_url":"https://api.github.com/users/loganmeetsworld/orgs","repos_url":"https://api.github.com/users/loganmeetsworld/repos","events_url":"https://api.github.com/users/loganmeetsworld/events{/privacy}","received_events_url":"https://api.github.com/users/loganmeetsworld/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-11-04T01:00:02Z","updated_at":"2015-11-04T20:05:12Z","closed_at":null,"merged_at":null,"merge_commit_sha":"91cf7b56b3d0333a58c7e760781acc4e2725024b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/pulls/3/commits","review_comments_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/pulls/3/comments","review_comment_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/pulls/comments{/number}","comments_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/issues/3/comments","statuses_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/statuses/65cfd53c111a010cfe97eb68eb814d4dd16fc544","head":{"label":"loganmeetsworld:lmm/master","ref":"lmm/master","sha":"65cfd53c111a010cfe97eb68eb814d4dd16fc544","user":{"login":"loganmeetsworld","id":10510566,"avatar_url":"https://avatars.githubusercontent.com/u/10510566?v=3","gravatar_id":"","url":"https://api.github.com/users/loganmeetsworld","html_url":"https://github.com/loganmeetsworld","followers_url":"https://api.github.com/users/loganmeetsworld/followers","following_url":"https://api.github.com/users/loganmeetsworld/following{/other_user}","gists_url":"https://api.github.com/users/loganmeetsworld/gists{/gist_id}","starred_url":"https://api.github.com/users/loganmeetsworld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loganmeetsworld/subscriptions","organizations_url":"https://api.github.com/users/loganmeetsworld/orgs","repos_url":"https://api.github.com/users/loganmeetsworld/repos","events_url":"https://api.github.com/users/loganmeetsworld/events{/privacy}","received_events_url":"https://api.github.com/users/loganmeetsworld/received_events","type":"User","site_admin":false},"repo":{"id":45430237,"name":"ScrabbleSinatra","full_name":"loganmeetsworld/ScrabbleSinatra","owner":{"login":"loganmeetsworld","id":10510566,"avatar_url":"https://avatars.githubusercontent.com/u/10510566?v=3","gravatar_id":"","url":"https://api.github.com/users/loganmeetsworld","html_url":"https://github.com/loganmeetsworld","followers_url":"https://api.github.com/users/loganmeetsworld/followers","following_url":"https://api.github.com/users/loganmeetsworld/following{/other_user}","gists_url":"https://api.github.com/users/loganmeetsworld/gists{/gist_id}","starred_url":"https://api.github.com/users/loganmeetsworld/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/loganmeetsworld/subscriptions","organizations_url":"https://api.github.com/users/loganmeetsworld/orgs","repos_url":"https://api.github.com/users/loganmeetsworld/repos","events_url":"https://api.github.com/users/loganmeetsworld/events{/privacy}","received_events_url":"https://api.github.com/users/loganmeetsworld/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/loganmeetsworld/ScrabbleSinatra","description":"","fork":true,"url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra","forks_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/forks","keys_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/teams","hooks_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/hooks","issue_events_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/issues/events{/number}","events_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/events","assignees_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/assignees{/user}","branches_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/branches{/branch}","tags_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/tags","blobs_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/git/refs{/sha}","trees_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/statuses/{sha}","languages_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/languages","stargazers_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/stargazers","contributors_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/contributors","subscribers_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/subscribers","subscription_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/subscription","commits_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/commits{/sha}","git_commits_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/git/commits{/sha}","comments_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/comments{/number}","issue_comment_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/issues/comments{/number}","contents_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/contents/{+path}","compare_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/merges","archive_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/downloads","issues_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/issues{/number}","pulls_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/pulls{/number}","milestones_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/milestones{/number}","notifications_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/labels{/name}","releases_url":"https://api.github.com/repos/loganmeetsworld/ScrabbleSinatra/releases{/id}","created_at":"2015-11-03T00:07:02Z","updated_at":"2015-10-29T16:28:05Z","pushed_at":"2015-11-03T22:37:29Z","git_url":"git://github.com/loganmeetsworld/ScrabbleSinatra.git","ssh_url":"git@github.com:loganmeetsworld/ScrabbleSinatra.git","clone_url":"https://github.com/loganmeetsworld/ScrabbleSinatra.git","svn_url":"https://github.com/loganmeetsworld/ScrabbleSinatra","homepage":null,"size":549,"stargazers_count":0,"watchers_count":0,"language":null,"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":"Ada-C4:lmm/master","ref":"lmm/master","sha":"bd9b316683f4eb9db5e7ee274c0001f088591164","user":{"login":"Ada-C4","id":14096372,"avatar_url":"https://avatars.githubusercontent.com/u/14096372?v=3","gravatar_id":"","url":"https://api.github.com/users/Ada-C4","html_url":"https://github.com/Ada-C4","followers_url":"https://api.github.com/users/Ada-C4/followers","following_url":"https://api.github.com/users/Ada-C4/following{/other_user}","gists_url":"https://api.github.com/users/Ada-C4/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-C4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-C4/subscriptions","organizations_url":"https://api.github.com/users/Ada-C4/orgs","repos_url":"https://api.github.com/users/Ada-C4/repos","events_url":"https://api.github.com/users/Ada-C4/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-C4/received_events","type":"Organization","site_admin":false},"repo":{"id":45415807,"name":"ScrabbleSinatra","full_name":"Ada-C4/ScrabbleSinatra","owner":{"login":"Ada-C4","id":14096372,"avatar_url":"https://avatars.githubusercontent.com/u/14096372?v=3","gravatar_id":"","url":"https://api.github.com/users/Ada-C4","html_url":"https://github.com/Ada-C4","followers_url":"https://api.github.com/users/Ada-C4/followers","following_url":"https://api.github.com/users/Ada-C4/following{/other_user}","gists_url":"https://api.github.com/users/Ada-C4/gists{/gist_id}","starred_url":"https://api.github.com/users/Ada-C4/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Ada-C4/subscriptions","organizations_url":"https://api.github.com/users/Ada-C4/orgs","repos_url":"https://api.github.com/users/Ada-C4/repos","events_url":"https://api.github.com/users/Ada-C4/events{/privacy}","received_events_url":"https://api.github.com/users/Ada-C4/received_events","type":"Organization","site_admin":false},"private":false,"html_url":"https://github.com/Ada-C4/ScrabbleSinatra","description":"","fork":true,"url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra","forks_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/forks","keys_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/teams","hooks_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/hooks","issue_events_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/issues/events{/number}","events_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/events","assignees_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/assignees{/user}","branches_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/branches{/branch}","tags_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/tags","blobs_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/git/refs{/sha}","trees_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/statuses/{sha}","languages_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/languages","stargazers_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/stargazers","contributors_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/contributors","subscribers_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/subscribers","subscription_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/subscription","commits_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/commits{/sha}","git_commits_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/git/commits{/sha}","comments_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/comments{/number}","issue_comment_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/issues/comments{/number}","contents_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/contents/{+path}","compare_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/merges","archive_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/downloads","issues_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/issues{/number}","pulls_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/pulls{/number}","milestones_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/milestones{/number}","notifications_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/labels{/name}","releases_url":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/releases{/id}","created_at":"2015-11-02T19:09:58Z","updated_at":"2015-10-29T16:28:05Z","pushed_at":"2015-11-04T17:32:36Z","git_url":"git://github.com/Ada-C4/ScrabbleSinatra.git","ssh_url":"git@github.com:Ada-C4/ScrabbleSinatra.git","clone_url":"https://github.com/Ada-C4/ScrabbleSinatra.git","svn_url":"https://github.com/Ada-C4/ScrabbleSinatra","homepage":null,"size":855,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":false,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":22,"mirror_url":null,"open_issues_count":22,"forks":22,"open_issues":22,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/pulls/3"},"html":{"href":"https://github.com/Ada-C4/ScrabbleSinatra/pull/3"},"issue":{"href":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/issues/3"},"comments":{"href":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/issues/3/comments"},"review_comments":{"href":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/pulls/3/comments"},"review_comment":{"href":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/pulls/3/commits"},"statuses":{"href":"https://api.github.com/repos/Ada-C4/ScrabbleSinatra/statuses/65cfd53c111a010cfe97eb68eb814d4dd16fc544"}}}}