Skip to content

Commit

Permalink
chore: Remove sqlite3 and other unused dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
jmatsu committed Jan 19, 2024
1 parent a07427d commit 6b14d77
Show file tree
Hide file tree
Showing 15 changed files with 8 additions and 92 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build-and-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ jobs:
steps:
- uses: actions/checkout@v3
- uses: ./.github/actions/setup-java
- run: ./gradlew publishToMavenLocal test
- run: ./gradlew publishToMavenLocal test --no-configuration-cache
env:
TEST_SERVER_URL: http://localhost:${{ job.services.app.ports[3000] }}
- uses: actions/upload-artifact@v3
Expand Down
34 changes: 0 additions & 34 deletions docker/mock-server/Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,46 +3,12 @@ git_source(:github) { |repo| "https://github.com/#{repo}.git" }

ruby "3.2.0"

# Bundle edge Rails instead: gem "rails", github: "rails/rails", branch: "main"
gem "rails", "~> 7.0.4"

# Use sqlite3 as the database for Active Record
gem "sqlite3", "~> 1.4"

# Use the Puma web server [https://github.com/puma/puma]
gem "puma", "~> 5.6"

# Build JSON APIs with ease [https://github.com/rails/jbuilder]
# gem "jbuilder"

# Use Redis adapter to run Action Cable in production
# gem "redis", "~> 4.0"

# Use Kredis to get higher-level data types in Redis [https://github.com/rails/kredis]
# gem "kredis"

# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
# gem "bcrypt", "~> 3.1.7"

# Windows does not include zoneinfo files, so bundle the tzinfo-data gem
gem "tzinfo-data", platforms: %i[ mingw mswin x64_mingw jruby ]

# Reduces boot times through caching; required in config/boot.rb
gem "bootsnap", require: false

# Use Active Storage variants [https://guides.rubyonrails.org/active_storage_overview.html#transforming-images]
# gem "image_processing", "~> 1.2"

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

group :development, :test do
# See https://guides.rubyonrails.org/debugging_rails_applications.html#debugging-with-the-debug-gem
gem "debug", platforms: %i[ mri mingw x64_mingw ]
end

group :development do
# Speed up commands on slow machines / big apps [https://github.com/rails/spring]
# gem "spring"
end

10 changes: 3 additions & 7 deletions docker/mock-server/Gemfile.lock
Original file line number Diff line number Diff line change
Expand Up @@ -73,16 +73,11 @@ GEM
crass (1.0.6)
date (3.3.3)
debug (1.7.1)
irb (>= 1.5.0)
reline (>= 0.3.1)
erubi (1.12.0)
globalid (1.0.1)
activesupport (>= 5.0)
i18n (1.12.0)
concurrent-ruby (~> 1.0)
io-console (0.6.0)
irb (1.6.2)
reline (>= 0.3.0)
loofah (2.19.1)
crass (~> 1.0.2)
nokogiri (>= 1.5.9)
Expand All @@ -106,6 +101,8 @@ GEM
net-smtp (0.3.3)
net-protocol
nio4r (2.7.0)
nokogiri (1.15.4-aarch64-linux)
racc (~> 1.4)
nokogiri (1.15.4-x86_64-darwin)
racc (~> 1.4)
nokogiri (1.15.4-x86_64-linux)
Expand Down Expand Up @@ -143,8 +140,6 @@ GEM
thor (~> 1.0)
zeitwerk (~> 2.5)
rake (13.0.6)
reline (0.3.2)
io-console (~> 0.5)
sqlite3 (1.6.0-x86_64-darwin)
sqlite3 (1.6.0-x86_64-linux)
thor (1.2.1)
Expand All @@ -157,6 +152,7 @@ GEM
zeitwerk (2.6.6)

PLATFORMS
aarch64-linux
x86_64-darwin-19
x86_64-linux

Expand Down
Empty file.
Empty file.
Empty file.
Empty file.
3 changes: 0 additions & 3 deletions docker/mock-server/app/models/application_record.rb

This file was deleted.

Empty file.
13 changes: 0 additions & 13 deletions docker/mock-server/app/views/layouts/mailer.html.erb

This file was deleted.

1 change: 0 additions & 1 deletion docker/mock-server/app/views/layouts/mailer.text.erb

This file was deleted.

5 changes: 4 additions & 1 deletion docker/mock-server/config/application.rb
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
require_relative "boot"

require "rails/all"
require "active_model/railtie"
require "action_controller/railtie"
require "action_view/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
14 changes: 0 additions & 14 deletions docker/mock-server/config/environments/development.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,14 +30,6 @@
config.cache_store = :null_store
end

# Store uploaded files on the local file system (see config/storage.yml for options).
config.active_storage.service = :local

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

config.action_mailer.perform_caching = false

# Print deprecation notices to the Rails logger.
config.active_support.deprecation = :log

Expand All @@ -47,12 +39,6 @@
# Tell Active Support which deprecation messages to disallow.
config.active_support.disallowed_deprecation_warnings = []

# Raise an error on page load if there are pending migrations.
config.active_record.migration_error = :page_load

# Highlight code that triggered database queries in logs.
config.active_record.verbose_query_logs = true


# Raises error for missing translations.
# config.i18n.raise_on_missing_translations = true
Expand Down
8 changes: 0 additions & 8 deletions docker/mock-server/config/environments/production.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,6 @@
# config.action_dispatch.x_sendfile_header = "X-Sendfile" # for Apache
# config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX

# Store uploaded files on the local file system (see config/storage.yml for options).
config.active_storage.service = :local

# Mount Action Cable outside main process or domain.
# config.action_cable.mount_path = nil
# config.action_cable.url = "wss://example.com/cable"
Expand All @@ -55,8 +52,6 @@
# config.active_job.queue_adapter = :resque
# config.active_job.queue_name_prefix = "mock_server_production"

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.
# config.action_mailer.raise_delivery_errors = false
Expand All @@ -80,7 +75,4 @@
logger.formatter = config.log_formatter
config.logger = ActiveSupport::TaggedLogging.new(logger)
end

# Do not dump schema after migrations.
config.active_record.dump_schema_after_migration = false
end
10 changes: 0 additions & 10 deletions docker/mock-server/config/environments/test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -33,16 +33,6 @@
# Disable request forgery protection in test environment.
config.action_controller.allow_forgery_protection = false

# Store uploaded files on the local file system in a temporary directory.
config.active_storage.service = :test

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

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

Expand Down

0 comments on commit 6b14d77

Please sign in to comment.