{"action":"created","comment":{"url":"https://api.github.com/repos/applegrain/dinners_ready/pulls/comments/36638753","id":36638753,"diff_hunk":"@@ -18,4 +20,24 @@ def destroy\n     session[:user_id] = nil\n     redirect_to root_path\n   end\n+\n+  private\n+\n+  def send_text_message\n+    # number_to_send_to = params[:number_to_send_to]\n+    send_to = \"+17203817045\"\n+    # twilio_phone_number = ENV['TWILIO_NUMBER']\n+\n+    # twilio_sid = ENV[\"ACb2541d8ffb09ffa80ce1d20942c2f7e5\"]\n+    # twilio_token = \"a28b9f64e660c48aeca21792cccb2ace\"\n+    twilio_phone_number = \"7205063562\"\n+\n+    @twilio_client = Twilio::REST::Client.new Rails.application.secrets.twilio_account_sid, Rails.application.secrets.twilio_auth_token\n+\n+    @twilio_client.account.sms.messages.create(\n+      :from => \"+1#{twilio_phone_number}\",\n+      :to => send_to,","path":"app/controllers/sessions_controller.rb","position":33,"original_position":33,"commit_id":"31d1ce69bc88da77fd52a726643f13316fc0fbe8","original_commit_id":"31d1ce69bc88da77fd52a726643f13316fc0fbe8","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":"Use the new Ruby 1.9 hash syntax.","created_at":"2015-08-10T14:45:27Z","updated_at":"2015-08-10T14:45:27Z","html_url":"https://github.com/applegrain/dinners_ready/pull/57#discussion_r36638753","pull_request_url":"https://api.github.com/repos/applegrain/dinners_ready/pulls/57","_links":{"self":{"href":"https://api.github.com/repos/applegrain/dinners_ready/pulls/comments/36638753"},"html":{"href":"https://github.com/applegrain/dinners_ready/pull/57#discussion_r36638753"},"pull_request":{"href":"https://api.github.com/repos/applegrain/dinners_ready/pulls/57"}}},"pull_request":{"url":"https://api.github.com/repos/applegrain/dinners_ready/pulls/57","id":42027640,"html_url":"https://github.com/applegrain/dinners_ready/pull/57","diff_url":"https://github.com/applegrain/dinners_ready/pull/57.diff","patch_url":"https://github.com/applegrain/dinners_ready/pull/57.patch","issue_url":"https://api.github.com/repos/applegrain/dinners_ready/issues/57","number":57,"state":"open","locked":false,"title":"Twilio text","user":{"login":"applegrain","id":10555255,"avatar_url":"https://avatars.githubusercontent.com/u/10555255?v=3","gravatar_id":"","url":"https://api.github.com/users/applegrain","html_url":"https://github.com/applegrain","followers_url":"https://api.github.com/users/applegrain/followers","following_url":"https://api.github.com/users/applegrain/following{/other_user}","gists_url":"https://api.github.com/users/applegrain/gists{/gist_id}","starred_url":"https://api.github.com/users/applegrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/applegrain/subscriptions","organizations_url":"https://api.github.com/users/applegrain/orgs","repos_url":"https://api.github.com/users/applegrain/repos","events_url":"https://api.github.com/users/applegrain/events{/privacy}","received_events_url":"https://api.github.com/users/applegrain/received_events","type":"User","site_admin":false},"body":"[WIP] \r\nright now it's sending a text when the user logs in, it should be when the user places an order. ","created_at":"2015-08-10T14:45:21Z","updated_at":"2015-08-10T14:45:27Z","closed_at":null,"merged_at":null,"merge_commit_sha":"6e6d04b66ebe623bd9e5c422d2046c35c84dba6b","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/applegrain/dinners_ready/pulls/57/commits","review_comments_url":"https://api.github.com/repos/applegrain/dinners_ready/pulls/57/comments","review_comment_url":"https://api.github.com/repos/applegrain/dinners_ready/pulls/comments{/number}","comments_url":"https://api.github.com/repos/applegrain/dinners_ready/issues/57/comments","statuses_url":"https://api.github.com/repos/applegrain/dinners_ready/statuses/31d1ce69bc88da77fd52a726643f13316fc0fbe8","head":{"label":"applegrain:twilio-text","ref":"twilio-text","sha":"31d1ce69bc88da77fd52a726643f13316fc0fbe8","user":{"login":"applegrain","id":10555255,"avatar_url":"https://avatars.githubusercontent.com/u/10555255?v=3","gravatar_id":"","url":"https://api.github.com/users/applegrain","html_url":"https://github.com/applegrain","followers_url":"https://api.github.com/users/applegrain/followers","following_url":"https://api.github.com/users/applegrain/following{/other_user}","gists_url":"https://api.github.com/users/applegrain/gists{/gist_id}","starred_url":"https://api.github.com/users/applegrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/applegrain/subscriptions","organizations_url":"https://api.github.com/users/applegrain/orgs","repos_url":"https://api.github.com/users/applegrain/repos","events_url":"https://api.github.com/users/applegrain/events{/privacy}","received_events_url":"https://api.github.com/users/applegrain/received_events","type":"User","site_admin":false},"repo":{"id":40135042,"name":"dinners_ready","full_name":"applegrain/dinners_ready","owner":{"login":"applegrain","id":10555255,"avatar_url":"https://avatars.githubusercontent.com/u/10555255?v=3","gravatar_id":"","url":"https://api.github.com/users/applegrain","html_url":"https://github.com/applegrain","followers_url":"https://api.github.com/users/applegrain/followers","following_url":"https://api.github.com/users/applegrain/following{/other_user}","gists_url":"https://api.github.com/users/applegrain/gists{/gist_id}","starred_url":"https://api.github.com/users/applegrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/applegrain/subscriptions","organizations_url":"https://api.github.com/users/applegrain/orgs","repos_url":"https://api.github.com/users/applegrain/repos","events_url":"https://api.github.com/users/applegrain/events{/privacy}","received_events_url":"https://api.github.com/users/applegrain/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/applegrain/dinners_ready","description":"","fork":false,"url":"https://api.github.com/repos/applegrain/dinners_ready","forks_url":"https://api.github.com/repos/applegrain/dinners_ready/forks","keys_url":"https://api.github.com/repos/applegrain/dinners_ready/keys{/key_id}","collaborators_url":"https://api.github.com/repos/applegrain/dinners_ready/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/applegrain/dinners_ready/teams","hooks_url":"https://api.github.com/repos/applegrain/dinners_ready/hooks","issue_events_url":"https://api.github.com/repos/applegrain/dinners_ready/issues/events{/number}","events_url":"https://api.github.com/repos/applegrain/dinners_ready/events","assignees_url":"https://api.github.com/repos/applegrain/dinners_ready/assignees{/user}","branches_url":"https://api.github.com/repos/applegrain/dinners_ready/branches{/branch}","tags_url":"https://api.github.com/repos/applegrain/dinners_ready/tags","blobs_url":"https://api.github.com/repos/applegrain/dinners_ready/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/applegrain/dinners_ready/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/applegrain/dinners_ready/git/refs{/sha}","trees_url":"https://api.github.com/repos/applegrain/dinners_ready/git/trees{/sha}","statuses_url":"https://api.github.com/repos/applegrain/dinners_ready/statuses/{sha}","languages_url":"https://api.github.com/repos/applegrain/dinners_ready/languages","stargazers_url":"https://api.github.com/repos/applegrain/dinners_ready/stargazers","contributors_url":"https://api.github.com/repos/applegrain/dinners_ready/contributors","subscribers_url":"https://api.github.com/repos/applegrain/dinners_ready/subscribers","subscription_url":"https://api.github.com/repos/applegrain/dinners_ready/subscription","commits_url":"https://api.github.com/repos/applegrain/dinners_ready/commits{/sha}","git_commits_url":"https://api.github.com/repos/applegrain/dinners_ready/git/commits{/sha}","comments_url":"https://api.github.com/repos/applegrain/dinners_ready/comments{/number}","issue_comment_url":"https://api.github.com/repos/applegrain/dinners_ready/issues/comments{/number}","contents_url":"https://api.github.com/repos/applegrain/dinners_ready/contents/{+path}","compare_url":"https://api.github.com/repos/applegrain/dinners_ready/compare/{base}...{head}","merges_url":"https://api.github.com/repos/applegrain/dinners_ready/merges","archive_url":"https://api.github.com/repos/applegrain/dinners_ready/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/applegrain/dinners_ready/downloads","issues_url":"https://api.github.com/repos/applegrain/dinners_ready/issues{/number}","pulls_url":"https://api.github.com/repos/applegrain/dinners_ready/pulls{/number}","milestones_url":"https://api.github.com/repos/applegrain/dinners_ready/milestones{/number}","notifications_url":"https://api.github.com/repos/applegrain/dinners_ready/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/applegrain/dinners_ready/labels{/name}","releases_url":"https://api.github.com/repos/applegrain/dinners_ready/releases{/id}","created_at":"2015-08-03T16:18:55Z","updated_at":"2015-08-05T00:40:59Z","pushed_at":"2015-08-10T14:45:21Z","git_url":"git://github.com/applegrain/dinners_ready.git","ssh_url":"git@github.com:applegrain/dinners_ready.git","clone_url":"https://github.com/applegrain/dinners_ready.git","svn_url":"https://github.com/applegrain/dinners_ready","homepage":"https://dinners-ready.herokuapp.com/","size":1092,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":9,"forks":1,"open_issues":9,"watchers":0,"default_branch":"master"}},"base":{"label":"applegrain:master","ref":"master","sha":"840ca22e8ce71d20e051d8c8e3dbf031d1cbff87","user":{"login":"applegrain","id":10555255,"avatar_url":"https://avatars.githubusercontent.com/u/10555255?v=3","gravatar_id":"","url":"https://api.github.com/users/applegrain","html_url":"https://github.com/applegrain","followers_url":"https://api.github.com/users/applegrain/followers","following_url":"https://api.github.com/users/applegrain/following{/other_user}","gists_url":"https://api.github.com/users/applegrain/gists{/gist_id}","starred_url":"https://api.github.com/users/applegrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/applegrain/subscriptions","organizations_url":"https://api.github.com/users/applegrain/orgs","repos_url":"https://api.github.com/users/applegrain/repos","events_url":"https://api.github.com/users/applegrain/events{/privacy}","received_events_url":"https://api.github.com/users/applegrain/received_events","type":"User","site_admin":false},"repo":{"id":40135042,"name":"dinners_ready","full_name":"applegrain/dinners_ready","owner":{"login":"applegrain","id":10555255,"avatar_url":"https://avatars.githubusercontent.com/u/10555255?v=3","gravatar_id":"","url":"https://api.github.com/users/applegrain","html_url":"https://github.com/applegrain","followers_url":"https://api.github.com/users/applegrain/followers","following_url":"https://api.github.com/users/applegrain/following{/other_user}","gists_url":"https://api.github.com/users/applegrain/gists{/gist_id}","starred_url":"https://api.github.com/users/applegrain/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/applegrain/subscriptions","organizations_url":"https://api.github.com/users/applegrain/orgs","repos_url":"https://api.github.com/users/applegrain/repos","events_url":"https://api.github.com/users/applegrain/events{/privacy}","received_events_url":"https://api.github.com/users/applegrain/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/applegrain/dinners_ready","description":"","fork":false,"url":"https://api.github.com/repos/applegrain/dinners_ready","forks_url":"https://api.github.com/repos/applegrain/dinners_ready/forks","keys_url":"https://api.github.com/repos/applegrain/dinners_ready/keys{/key_id}","collaborators_url":"https://api.github.com/repos/applegrain/dinners_ready/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/applegrain/dinners_ready/teams","hooks_url":"https://api.github.com/repos/applegrain/dinners_ready/hooks","issue_events_url":"https://api.github.com/repos/applegrain/dinners_ready/issues/events{/number}","events_url":"https://api.github.com/repos/applegrain/dinners_ready/events","assignees_url":"https://api.github.com/repos/applegrain/dinners_ready/assignees{/user}","branches_url":"https://api.github.com/repos/applegrain/dinners_ready/branches{/branch}","tags_url":"https://api.github.com/repos/applegrain/dinners_ready/tags","blobs_url":"https://api.github.com/repos/applegrain/dinners_ready/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/applegrain/dinners_ready/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/applegrain/dinners_ready/git/refs{/sha}","trees_url":"https://api.github.com/repos/applegrain/dinners_ready/git/trees{/sha}","statuses_url":"https://api.github.com/repos/applegrain/dinners_ready/statuses/{sha}","languages_url":"https://api.github.com/repos/applegrain/dinners_ready/languages","stargazers_url":"https://api.github.com/repos/applegrain/dinners_ready/stargazers","contributors_url":"https://api.github.com/repos/applegrain/dinners_ready/contributors","subscribers_url":"https://api.github.com/repos/applegrain/dinners_ready/subscribers","subscription_url":"https://api.github.com/repos/applegrain/dinners_ready/subscription","commits_url":"https://api.github.com/repos/applegrain/dinners_ready/commits{/sha}","git_commits_url":"https://api.github.com/repos/applegrain/dinners_ready/git/commits{/sha}","comments_url":"https://api.github.com/repos/applegrain/dinners_ready/comments{/number}","issue_comment_url":"https://api.github.com/repos/applegrain/dinners_ready/issues/comments{/number}","contents_url":"https://api.github.com/repos/applegrain/dinners_ready/contents/{+path}","compare_url":"https://api.github.com/repos/applegrain/dinners_ready/compare/{base}...{head}","merges_url":"https://api.github.com/repos/applegrain/dinners_ready/merges","archive_url":"https://api.github.com/repos/applegrain/dinners_ready/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/applegrain/dinners_ready/downloads","issues_url":"https://api.github.com/repos/applegrain/dinners_ready/issues{/number}","pulls_url":"https://api.github.com/repos/applegrain/dinners_ready/pulls{/number}","milestones_url":"https://api.github.com/repos/applegrain/dinners_ready/milestones{/number}","notifications_url":"https://api.github.com/repos/applegrain/dinners_ready/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/applegrain/dinners_ready/labels{/name}","releases_url":"https://api.github.com/repos/applegrain/dinners_ready/releases{/id}","created_at":"2015-08-03T16:18:55Z","updated_at":"2015-08-05T00:40:59Z","pushed_at":"2015-08-10T14:45:21Z","git_url":"git://github.com/applegrain/dinners_ready.git","ssh_url":"git@github.com:applegrain/dinners_ready.git","clone_url":"https://github.com/applegrain/dinners_ready.git","svn_url":"https://github.com/applegrain/dinners_ready","homepage":"https://dinners-ready.herokuapp.com/","size":1092,"stargazers_count":0,"watchers_count":0,"language":"Ruby","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":1,"mirror_url":null,"open_issues_count":9,"forks":1,"open_issues":9,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/applegrain/dinners_ready/pulls/57"},"html":{"href":"https://github.com/applegrain/dinners_ready/pull/57"},"issue":{"href":"https://api.github.com/repos/applegrain/dinners_ready/issues/57"},"comments":{"href":"https://api.github.com/repos/applegrain/dinners_ready/issues/57/comments"},"review_comments":{"href":"https://api.github.com/repos/applegrain/dinners_ready/pulls/57/comments"},"review_comment":{"href":"https://api.github.com/repos/applegrain/dinners_ready/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/applegrain/dinners_ready/pulls/57/commits"},"statuses":{"href":"https://api.github.com/repos/applegrain/dinners_ready/statuses/31d1ce69bc88da77fd52a726643f13316fc0fbe8"}}}}