Skip to content

Commit

Permalink
build: remove some unused rails boilerplate/imports (#528)
Browse files Browse the repository at this point in the history
  • Loading branch information
jsstevenson authored Oct 15, 2024
1 parent e151d09 commit 1eb98a0
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 33 deletions.
23 changes: 3 additions & 20 deletions server/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -4,23 +4,11 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }
ruby "~>3.1.0"
gem "rack-cors"

# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
gem "rails", "~> 6.1.3", ">= 6.1.3.1"
gem "pg", "~>1.2.3"
# Use Puma as the app server
gem "puma" #, '~> 5.0', '>= 5.6.4'
gem "puma"
gem "rufo"

# Build JSON APIs with ease. Read more: https://github.com/rails/jbuilder
# gem 'jbuilder', '~> 2.7'
# Use Redis adapter to run Action Cable in production
# gem 'redis', '~> 4.0'
# Use Active Model has_secure_password
# gem 'bcrypt', '~> 3.1.7'

# Use Active Storage variant
# gem 'image_processing', '~> 1.2'

gem "graphql", "~> 1.12.15"
gem "graphql-batch", "~> 0.4.3"
gem "graphiql-rails", "~> 1.7.0"
Expand All @@ -32,10 +20,7 @@ gem "bootsnap", ">= 1.4.4", require: false
# Background job processing
gem 'sidekiq', '~> 7.1.2'

# Use Rack CORS for handling Cross-Origin Resource Sharing (CORS), making cross-origin AJAX possible
# gem 'rack-cors'

# Security vulnerability stuff
# versions pinned for security vulnerability reasons
gem "actionpack", ">= 6.1.4.6"
gem "activestorage", ">= 6.1.4.7"
gem "nokogiri", ">= 1.13.2"
Expand All @@ -53,20 +38,18 @@ gem "net-smtp", require: false
gem "net-imap", require: false
gem "net-pop", require: false

#required for ssh tasks
# required for ssh tasks
gem 'ed25519'
gem 'bcrypt_pbkdf'

group :development, :test do
# Call 'byebug' anywhere in the code to stop execution and get a debugger console
gem "byebug", platforms: [:mri, :mingw, :x64_mingw]
gem "rspec-rails", "~> 5.1"
gem "factory_bot", "~> 6.2"
end

group :development do
gem "listen", "~> 3.3"
# Spring speeds up development by keeping your application running in the background. Read more: https://github.com/rails/spring
gem "spring"
gem "rack-mini-profiler"

Expand Down
4 changes: 4 additions & 0 deletions server/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -136,6 +136,8 @@ GEM
net-protocol
net-ssh (7.1.0)
nio4r (2.5.9)
nokogiri (1.15.2-arm64-darwin)
racc (~> 1.4)
nokogiri (1.15.2-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.15.2-x86_64-linux)
Expand Down Expand Up @@ -222,6 +224,7 @@ GEM
actionpack (>= 5.2)
activesupport (>= 5.2)
sprockets (>= 3.0.0)
sqlite3 (1.6.3-arm64-darwin)
sqlite3 (1.6.3-x86_64-darwin)
sqlite3 (1.6.3-x86_64-linux)
sshkit (1.21.4)
Expand All @@ -240,6 +243,7 @@ GEM
zlib (3.0.0)

PLATFORMS
arm64-darwin-23
x86_64-darwin-19
x86_64-darwin-20
x86_64-darwin-21
Expand Down
4 changes: 0 additions & 4 deletions server/app/mailers/application_mailer.rb

This file was deleted.

4 changes: 0 additions & 4 deletions server/config/application.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,9 @@
require "active_record/railtie"
require "active_storage/engine"
require "action_controller/railtie"
require "action_mailer/railtie"
require "action_mailbox/engine"
require "action_text/engine"
require "action_view/railtie"
require "action_cable/engine"
require "sprockets/railtie"
require "rails/test_unit/railtie"

# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Expand Down
4 changes: 2 additions & 2 deletions server/config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -31,9 +31,9 @@
config.active_storage.service = :local

# Don't care if the mailer can't send.
config.action_mailer.raise_delivery_errors = false
# config.action_mailer.raise_delivery_errors = false

config.action_mailer.perform_caching = false
# config.action_mailer.perform_caching = false

# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log
Expand Down
2 changes: 1 addition & 1 deletion server/config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@
# config.active_job.queue_adapter = :resque
# config.active_job.queue_name_prefix = "dgidb_production"

config.action_mailer.perform_caching = false
# config.action_mailer.perform_caching = false

# Ignore bad email addresses and do not raise email delivery errors.
# Set this to true and configure the email server for immediate delivery to raise delivery errors.
Expand Down
4 changes: 2 additions & 2 deletions server/config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,12 +36,12 @@
# Store uploaded files on the local file system in a temporary directory.
config.active_storage.service = :test

config.action_mailer.perform_caching = false
# config.action_mailer.perform_caching = false

# Tell Action Mailer not to deliver emails to the real world.
# The :test delivery method accumulates sent emails in the
# ActionMailer::Base.deliveries array.
config.action_mailer.delivery_method = :test
# config.action_mailer.delivery_method = :test

# Print deprecation notices to the stderr.
config.active_support.deprecation = :stderr
Expand Down

0 comments on commit 1eb98a0

Please sign in to comment.