From 62e52094da66c8db8ad44cf3869c5c90795f346e Mon Sep 17 00:00:00 2001 From: Santiago Rodriguez Date: Fri, 22 Mar 2024 13:07:15 -0300 Subject: [PATCH] build: use Rails credentials for storing secrets --- .env.example | 2 -- .gitattributes | 1 + Gemfile | 1 - Gemfile.lock | 5 ----- app/views/application/_rollbar_js.html.erb | 2 +- config/credentials.yml.enc | 2 +- config/initializers/rollbar.rb | 4 ++-- 7 files changed, 5 insertions(+), 12 deletions(-) delete mode 100644 .env.example create mode 100644 .gitattributes diff --git a/.env.example b/.env.example deleted file mode 100644 index 45209d9..0000000 --- a/.env.example +++ /dev/null @@ -1,2 +0,0 @@ -ROLLBAR_POST_SERVER_ITEM_ACCESS_TOKEN= -ROLLBAR_POST_CLIENT_ITEM_ACCESS_TOKEN= diff --git a/.gitattributes b/.gitattributes new file mode 100644 index 0000000..8798420 --- /dev/null +++ b/.gitattributes @@ -0,0 +1 @@ +config/credentials.yml.enc diff=rails_credentials diff --git a/Gemfile b/Gemfile index d0677a1..3f9bddc 100644 --- a/Gemfile +++ b/Gemfile @@ -22,7 +22,6 @@ end group :development, :test do gem 'byebug', '~> 11.0', platforms: [:mri, :mingw, :x64_mingw] - gem "dotenv-rails", '~> 2.7' gem 'rubocop', '~> 0.80.1', require: false gem 'rubocop-rails', '~> 2.5.0', require: false end diff --git a/Gemfile.lock b/Gemfile.lock index 687a1a5..b2289ac 100644 --- a/Gemfile.lock +++ b/Gemfile.lock @@ -97,10 +97,6 @@ GEM openssl-signature_algorithm (~> 1.0) crass (1.0.6) date (3.3.4) - dotenv (2.7.6) - dotenv-rails (2.7.6) - dotenv (= 2.7.6) - railties (>= 3.2) erubi (1.12.0) ffi (1.16.3) globalid (1.2.1) @@ -277,7 +273,6 @@ DEPENDENCIES bundler-audit (~> 0.9.1) byebug (~> 11.0) capybara (~> 3.26) - dotenv-rails (~> 2.7) importmap-rails (~> 1.2) listen (~> 3.8) minitest-stub_any_instance (~> 1.0) diff --git a/app/views/application/_rollbar_js.html.erb b/app/views/application/_rollbar_js.html.erb index fef7776..a5c8207 100644 --- a/app/views/application/_rollbar_js.html.erb +++ b/app/views/application/_rollbar_js.html.erb @@ -1,6 +1,6 @@