From eb41f85dd46b4d224aa3f3bc2c05d577ac50625f Mon Sep 17 00:00:00 2001 From: Star Rauchenberger Date: Sat, 7 Dec 2024 13:07:58 -0500 Subject: Unmount Pokeviewer engine --- Gemfile | 1 - Gemfile.lock | 22 ---------------------- app/controllers/application_controller.rb | 10 ---------- config/routes.rb | 2 -- 4 files changed, 35 deletions(-) diff --git a/Gemfile b/Gemfile index d74e090..d0f9528 100644 --- a/Gemfile +++ b/Gemfile @@ -70,7 +70,6 @@ gem 'normalize-rails' gem 'devise' gem 'paperclip' gem 'jquery-rails' -gem 'pokeviewer', git: "https://git.fourisland.com/pokeviewer" gem 'acts-as-taggable-on' gem 'jquery-ui-rails' gem 'js-routes' diff --git a/Gemfile.lock b/Gemfile.lock index 2980acc..a3408d7 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -1,19 +1,3 @@ -GIT - remote: https://git.fourisland.com/pokeviewer - revision: c1b0443ba2aebdbd39291ddab0c189f3f4831320 - specs: - pokeviewer (0.1.0) - activerecord-diff - coffee-rails (~> 4.2) - enumerize - haml - jquery-rails - normalize-rails - rails (~> 7.1.0) - sassc-rails - sequenced - victor - GEM remote: https://rubygems.org/ specs: @@ -79,7 +63,6 @@ GEM activemodel (= 7.1.1) activesupport (= 7.1.1) timeout (>= 0.4.0) - activerecord-diff (2.0.0) activestorage (7.1.1) actionpack (= 7.1.1) activejob (= 7.1.1) @@ -319,9 +302,6 @@ GEM rexml (~> 3.2, >= 3.2.5) rubyzip (>= 1.2.2, < 3.0) websocket (~> 1.0) - sequenced (4.0.0) - activerecord (>= 3.0) - activesupport (>= 3.0) spring (2.1.1) spring-watcher-listen (2.0.1) listen (>= 2.7, < 4.0) @@ -352,7 +332,6 @@ GEM turbolinks-source (5.2.0) tzinfo (2.0.6) concurrent-ruby (~> 1.0) - victor (0.3.4) warden (1.2.9) rack (>= 2.0.9) web-console (4.2.1) @@ -405,7 +384,6 @@ DEPENDENCIES mysql2 normalize-rails paperclip - pokeviewer! rails (~> 7.1.0) rails_autolink redcarpet diff --git a/app/controllers/application_controller.rb b/app/controllers/application_controller.rb index c9d4e15..0174cae 100644 --- a/app/controllers/application_controller.rb +++ b/app/controllers/application_controller.rb @@ -1,16 +1,6 @@ class ApplicationController < ActionController::Base protect_from_forgery with: :exception - protected - - def authenticate_pokeviewer(login, token) - user = login && User.find_by_login(login) - - ActiveSupport::SecurityUtils.secure_compare( - ::Digest::SHA256.hexdigest(user.pokeviewer_token), - ::Digest::SHA256.hexdigest(token)) - end - private def after_sign_out_path_for(resource) diff --git a/config/routes.rb b/config/routes.rb index 3fffa35..6f7b7de 100644 --- a/config/routes.rb +++ b/config/routes.rb @@ -81,6 +81,4 @@ Rails.application.routes.draw do post 'downvote' end end - - mount Pokeviewer::Engine => '/poke3' end -- cgit 1.4.1