From 4b945cc8801549990fde0b4dfc1c39e20d9b23c3 Mon Sep 17 00:00:00 2001 From: Teddy Wing Date: Thu, 31 Dec 2015 01:18:58 -0800 Subject: Remove Auth::EvernoteController No longer used now that we're authenticating with OmniAuth. --- app/assets/javascripts/auth/evernote.coffee | 3 --- app/assets/stylesheets/auth/evernote.scss | 3 --- app/controllers/auth/evernote_controller.rb | 12 ------------ app/helpers/auth/evernote_helper.rb | 2 -- app/views/auth/evernote/index.html | 1 - test/controllers/auth/evernote_controller_test.rb | 7 ------- 6 files changed, 28 deletions(-) delete mode 100644 app/assets/javascripts/auth/evernote.coffee delete mode 100644 app/assets/stylesheets/auth/evernote.scss delete mode 100644 app/controllers/auth/evernote_controller.rb delete mode 100644 app/helpers/auth/evernote_helper.rb delete mode 100644 app/views/auth/evernote/index.html delete mode 100644 test/controllers/auth/evernote_controller_test.rb diff --git a/app/assets/javascripts/auth/evernote.coffee b/app/assets/javascripts/auth/evernote.coffee deleted file mode 100644 index 24f83d1..0000000 --- a/app/assets/javascripts/auth/evernote.coffee +++ /dev/null @@ -1,3 +0,0 @@ -# Place all the behaviors and hooks related to the matching controller here. -# All this logic will automatically be available in application.js. -# You can use CoffeeScript in this file: http://coffeescript.org/ diff --git a/app/assets/stylesheets/auth/evernote.scss b/app/assets/stylesheets/auth/evernote.scss deleted file mode 100644 index 30f4c8c..0000000 --- a/app/assets/stylesheets/auth/evernote.scss +++ /dev/null @@ -1,3 +0,0 @@ -// Place all the styles related to the auth/evernote controller here. -// They will automatically be included in application.css. -// You can use Sass (SCSS) here: http://sass-lang.com/ diff --git a/app/controllers/auth/evernote_controller.rb b/app/controllers/auth/evernote_controller.rb deleted file mode 100644 index c581e31..0000000 --- a/app/controllers/auth/evernote_controller.rb +++ /dev/null @@ -1,12 +0,0 @@ -class Auth::EvernoteController < ApplicationController - def index - client = EvernoteOAuth::Client.new - request_token = client.request_token(:oauth_callback => '/auth/evernote/callback') - request_token.authorize_url - @access_token = request_token.get_access_token(oauth_verifier: params[:oauth_verifier]) - end - - def callback - render 'le callback' - end -end diff --git a/app/helpers/auth/evernote_helper.rb b/app/helpers/auth/evernote_helper.rb deleted file mode 100644 index 0147d5c..0000000 --- a/app/helpers/auth/evernote_helper.rb +++ /dev/null @@ -1,2 +0,0 @@ -module Auth::EvernoteHelper -end diff --git a/app/views/auth/evernote/index.html b/app/views/auth/evernote/index.html deleted file mode 100644 index 5db3554..0000000 --- a/app/views/auth/evernote/index.html +++ /dev/null @@ -1 +0,0 @@ -<%= @access_token %> diff --git a/test/controllers/auth/evernote_controller_test.rb b/test/controllers/auth/evernote_controller_test.rb deleted file mode 100644 index 5505b58..0000000 --- a/test/controllers/auth/evernote_controller_test.rb +++ /dev/null @@ -1,7 +0,0 @@ -require 'test_helper' - -class Auth::EvernoteControllerTest < ActionController::TestCase - # test "the truth" do - # assert true - # end -end -- cgit v1.2.3