From b995ce98c5d2a8ae2ef652d1ccb1649428ee99c3 Mon Sep 17 00:00:00 2001 From: Kohei Suzuki Date: Thu, 5 Oct 2023 15:58:51 +0900 Subject: [PATCH] Remove dotenv-rails gem How environment variables are set is up to users/deployments. --- docs/index.md | 3 +-- kuroko2.gemspec | 1 - lib/kuroko2/engine.rb | 1 - 3 files changed, 1 insertion(+), 4 deletions(-) diff --git a/docs/index.md b/docs/index.md index bfecc4aa..d63a9613 100644 --- a/docs/index.md +++ b/docs/index.md @@ -60,10 +60,9 @@ Kuroko2's authentication system supports only Google OAuth. ```bash $ cd my_kuroko2/ -$ vi .env ``` -And adding variables to the `.env` file. +And setup environment variables. ``` GOOGLE_CLIENT_ID=[client_id] diff --git a/kuroko2.gemspec b/kuroko2.gemspec index 0ad597f3..9384d130 100644 --- a/kuroko2.gemspec +++ b/kuroko2.gemspec @@ -35,7 +35,6 @@ Gem::Specification.new do |s| s.add_dependency 'rails_bootstrap_sortable' s.add_dependency "select2-rails" s.add_dependency 'rack-store', '~> 0.0.4' - s.add_dependency 'dotenv-rails', '~> 0.11.1' s.add_dependency 'serverengine', '~> 1.5.7' s.add_dependency 'omniauth', '>= 2.0.0' s.add_dependency 'omniauth-google-oauth2', '>= 1.0.0' diff --git a/lib/kuroko2/engine.rb b/lib/kuroko2/engine.rb index 86a6de4a..a76dbf81 100644 --- a/lib/kuroko2/engine.rb +++ b/lib/kuroko2/engine.rb @@ -13,7 +13,6 @@ class Engine < ::Rails::Engine require 'select2-rails' require 'font-awesome-rails' require 'visjs/rails' - require 'dotenv-rails' require 'weak_parameters' require 'diffy' end