{"action":"created","comment":{"url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/comments/41256502","id":41256502,"diff_hunk":"@@ -0,0 +1,96 @@\n+require 'sinatra/base'\n+require_relative './data_mapper_setup'\n+require 'sinatra/flash'\n+require 'mailgun'\n+\n+class Chitter < Sinatra::Base\n+  set :views, proc {File.join(root,'..','/app/views')}\n+  enable :sessions\n+  register Sinatra::Flash\n+  use Rack::MethodOverride\n+  set :session_secret, 'super secret'\n+\n+  helpers do\n+    def current_user\n+      User.get(session[:user_id])\n+    end\n+    def send_email\n+      RestClient::Request.execute(\n+      url: \"https://api:key-7af11fe0adc2a642e55d33744117e7d2\"\\\n+      \"@api.mailgun.net/v3/sandbox1aad2b9369f348018e3b435a1026927c.mailgun.org/messages\",\n+      :method => :post,\n+      :payload => {\n+      :from => 'Mailgun Sandbox <postmaster@sandbox1aad2b9369f348018e3b435a1026927c.mailgun.org>',\n+      :sender => 'Mailgun Sandbox <postmaster@sandbox1aad2b9369f348018e3b435a1026927c.mailgun.org>',\n+      :to => params[:email],\n+      :subject => \"Welcome to Chitter\",\n+      :text => \"Welcome to Chitter \" + params[:username] + \".Get Chittering!\",","path":"app/app.rb","position":27,"original_position":27,"commit_id":"af7090d669e93055aa5de7ff40a7df5545ad61f2","original_commit_id":"af7090d669e93055aa5de7ff40a7df5545ad61f2","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":"Style/HashSyntax: Use the new Ruby 1.9 hash syntax.","created_at":"2015-10-06T12:24:02Z","updated_at":"2015-10-06T12:24:02Z","html_url":"https://github.com/makersacademy/chitter-challenge/pull/140#discussion_r41256502","pull_request_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/140","_links":{"self":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/comments/41256502"},"html":{"href":"https://github.com/makersacademy/chitter-challenge/pull/140#discussion_r41256502"},"pull_request":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/140"}}},"pull_request":{"url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/140","id":46082515,"html_url":"https://github.com/makersacademy/chitter-challenge/pull/140","diff_url":"https://github.com/makersacademy/chitter-challenge/pull/140.diff","patch_url":"https://github.com/makersacademy/chitter-challenge/pull/140.patch","issue_url":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/140","number":140,"state":"open","locked":false,"title":"Adrian's Chitter Challenge. ","user":{"login":"Adrian1707","id":10603440,"avatar_url":"https://avatars.githubusercontent.com/u/10603440?v=3","gravatar_id":"","url":"https://api.github.com/users/Adrian1707","html_url":"https://github.com/Adrian1707","followers_url":"https://api.github.com/users/Adrian1707/followers","following_url":"https://api.github.com/users/Adrian1707/following{/other_user}","gists_url":"https://api.github.com/users/Adrian1707/gists{/gist_id}","starred_url":"https://api.github.com/users/Adrian1707/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adrian1707/subscriptions","organizations_url":"https://api.github.com/users/Adrian1707/orgs","repos_url":"https://api.github.com/users/Adrian1707/repos","events_url":"https://api.github.com/users/Adrian1707/events{/privacy}","received_events_url":"https://api.github.com/users/Adrian1707/received_events","type":"User","site_admin":false},"body":"","created_at":"2015-09-26T14:17:21Z","updated_at":"2015-10-06T12:24:02Z","closed_at":null,"merged_at":null,"merge_commit_sha":"3b4254421d3bdb0650a6e9ac31c4f85d6f60a985","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/140/commits","review_comments_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/140/comments","review_comment_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/comments{/number}","comments_url":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/140/comments","statuses_url":"https://api.github.com/repos/makersacademy/chitter-challenge/statuses/af7090d669e93055aa5de7ff40a7df5545ad61f2","head":{"label":"Adrian1707:master","ref":"master","sha":"af7090d669e93055aa5de7ff40a7df5545ad61f2","user":{"login":"Adrian1707","id":10603440,"avatar_url":"https://avatars.githubusercontent.com/u/10603440?v=3","gravatar_id":"","url":"https://api.github.com/users/Adrian1707","html_url":"https://github.com/Adrian1707","followers_url":"https://api.github.com/users/Adrian1707/followers","following_url":"https://api.github.com/users/Adrian1707/following{/other_user}","gists_url":"https://api.github.com/users/Adrian1707/gists{/gist_id}","starred_url":"https://api.github.com/users/Adrian1707/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adrian1707/subscriptions","organizations_url":"https://api.github.com/users/Adrian1707/orgs","repos_url":"https://api.github.com/users/Adrian1707/repos","events_url":"https://api.github.com/users/Adrian1707/events{/privacy}","received_events_url":"https://api.github.com/users/Adrian1707/received_events","type":"User","site_admin":false},"repo":{"id":43150037,"name":"chitter-challenge","full_name":"Adrian1707/chitter-challenge","owner":{"login":"Adrian1707","id":10603440,"avatar_url":"https://avatars.githubusercontent.com/u/10603440?v=3","gravatar_id":"","url":"https://api.github.com/users/Adrian1707","html_url":"https://github.com/Adrian1707","followers_url":"https://api.github.com/users/Adrian1707/followers","following_url":"https://api.github.com/users/Adrian1707/following{/other_user}","gists_url":"https://api.github.com/users/Adrian1707/gists{/gist_id}","starred_url":"https://api.github.com/users/Adrian1707/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Adrian1707/subscriptions","organizations_url":"https://api.github.com/users/Adrian1707/orgs","repos_url":"https://api.github.com/users/Adrian1707/repos","events_url":"https://api.github.com/users/Adrian1707/events{/privacy}","received_events_url":"https://api.github.com/users/Adrian1707/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/Adrian1707/chitter-challenge","description":"Build a Twitter Clone!","fork":true,"url":"https://api.github.com/repos/Adrian1707/chitter-challenge","forks_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/forks","keys_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/teams","hooks_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/hooks","issue_events_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/events","assignees_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/tags","blobs_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/languages","stargazers_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/stargazers","contributors_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/contributors","subscribers_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/subscribers","subscription_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/subscription","commits_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/merges","archive_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/downloads","issues_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/labels{/name}","releases_url":"https://api.github.com/repos/Adrian1707/chitter-challenge/releases{/id}","created_at":"2015-09-25T14:36:26Z","updated_at":"2015-09-25T14:36:27Z","pushed_at":"2015-10-06T12:23:58Z","git_url":"git://github.com/Adrian1707/chitter-challenge.git","ssh_url":"git@github.com:Adrian1707/chitter-challenge.git","clone_url":"https://github.com/Adrian1707/chitter-challenge.git","svn_url":"https://github.com/Adrian1707/chitter-challenge","homepage":null,"size":497,"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":"537cd3bd8b691e0432d43960c6bdbfea11ce601c","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":26954706,"name":"chitter-challenge","full_name":"makersacademy/chitter-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/chitter-challenge","description":"Build a Twitter Clone!","fork":false,"url":"https://api.github.com/repos/makersacademy/chitter-challenge","forks_url":"https://api.github.com/repos/makersacademy/chitter-challenge/forks","keys_url":"https://api.github.com/repos/makersacademy/chitter-challenge/keys{/key_id}","collaborators_url":"https://api.github.com/repos/makersacademy/chitter-challenge/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/makersacademy/chitter-challenge/teams","hooks_url":"https://api.github.com/repos/makersacademy/chitter-challenge/hooks","issue_events_url":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/events{/number}","events_url":"https://api.github.com/repos/makersacademy/chitter-challenge/events","assignees_url":"https://api.github.com/repos/makersacademy/chitter-challenge/assignees{/user}","branches_url":"https://api.github.com/repos/makersacademy/chitter-challenge/branches{/branch}","tags_url":"https://api.github.com/repos/makersacademy/chitter-challenge/tags","blobs_url":"https://api.github.com/repos/makersacademy/chitter-challenge/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/makersacademy/chitter-challenge/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/makersacademy/chitter-challenge/git/refs{/sha}","trees_url":"https://api.github.com/repos/makersacademy/chitter-challenge/git/trees{/sha}","statuses_url":"https://api.github.com/repos/makersacademy/chitter-challenge/statuses/{sha}","languages_url":"https://api.github.com/repos/makersacademy/chitter-challenge/languages","stargazers_url":"https://api.github.com/repos/makersacademy/chitter-challenge/stargazers","contributors_url":"https://api.github.com/repos/makersacademy/chitter-challenge/contributors","subscribers_url":"https://api.github.com/repos/makersacademy/chitter-challenge/subscribers","subscription_url":"https://api.github.com/repos/makersacademy/chitter-challenge/subscription","commits_url":"https://api.github.com/repos/makersacademy/chitter-challenge/commits{/sha}","git_commits_url":"https://api.github.com/repos/makersacademy/chitter-challenge/git/commits{/sha}","comments_url":"https://api.github.com/repos/makersacademy/chitter-challenge/comments{/number}","issue_comment_url":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/comments{/number}","contents_url":"https://api.github.com/repos/makersacademy/chitter-challenge/contents/{+path}","compare_url":"https://api.github.com/repos/makersacademy/chitter-challenge/compare/{base}...{head}","merges_url":"https://api.github.com/repos/makersacademy/chitter-challenge/merges","archive_url":"https://api.github.com/repos/makersacademy/chitter-challenge/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/makersacademy/chitter-challenge/downloads","issues_url":"https://api.github.com/repos/makersacademy/chitter-challenge/issues{/number}","pulls_url":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls{/number}","milestones_url":"https://api.github.com/repos/makersacademy/chitter-challenge/milestones{/number}","notifications_url":"https://api.github.com/repos/makersacademy/chitter-challenge/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/makersacademy/chitter-challenge/labels{/name}","releases_url":"https://api.github.com/repos/makersacademy/chitter-challenge/releases{/id}","created_at":"2014-11-21T09:53:31Z","updated_at":"2015-04-10T05:48:20Z","pushed_at":"2015-10-06T12:23:59Z","git_url":"git://github.com/makersacademy/chitter-challenge.git","ssh_url":"git@github.com:makersacademy/chitter-challenge.git","clone_url":"https://github.com/makersacademy/chitter-challenge.git","svn_url":"https://github.com/makersacademy/chitter-challenge","homepage":null,"size":33257,"stargazers_count":2,"watchers_count":2,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":168,"mirror_url":null,"open_issues_count":32,"forks":168,"open_issues":32,"watchers":2,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/140"},"html":{"href":"https://github.com/makersacademy/chitter-challenge/pull/140"},"issue":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/140"},"comments":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/issues/140/comments"},"review_comments":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/140/comments"},"review_comment":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/pulls/140/commits"},"statuses":{"href":"https://api.github.com/repos/makersacademy/chitter-challenge/statuses/af7090d669e93055aa5de7ff40a7df5545ad61f2"}}}}