Skip to content

Commit 7508089

Browse files
committed
Remove unused dependencies from erubi-rails
1 parent ffc1da0 commit 7508089

File tree

9 files changed

+15
-86
lines changed

9 files changed

+15
-86
lines changed

benchmarks/erubi-rails/Gemfile

Lines changed: 5 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,20 +7,18 @@ gem "cgi" # Workaround cgi extraction in Ruby 3.5.0-dev
77

88
# Bundle edge Rails instead: gem 'rails', github: 'rails/rails', branch: 'main'
99

10-
# Everything except Action Cable. It's unused and it installs native gems.
10+
# Skip ActionCable and ActiveRecord, which are unused and depend on native gems.
11+
# Other unused components that depend on ActiveRecord are also excluded.
1112
%w[
12-
actionmailbox actionmailer actionpack actionview
13-
actiontext activejob activemodel activerecord
14-
activestorage activesupport railties
13+
actionmailer actionpack actionview
14+
activejob activemodel
15+
activesupport railties
1516
].each do |rails_gem|
1617
gem rails_gem, '~> 8.0'
1718
end
1819

1920
gem 'sprockets-rails', '3.4.0'
2021

21-
# Use sqlite3 as the database for Active Record
22-
gem 'sqlite3', platform: :ruby
23-
gem 'activerecord-jdbcsqlite3-adapter', '~> 70', platform: :jruby
2422
# Use Puma as the app server
2523
# gem 'puma', '~> 5.6'
2624
# Transpile app-like JavaScript. Read more: https://github.com/rails/webpacker

benchmarks/erubi-rails/Gemfile.lock

Lines changed: 0 additions & 41 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,6 @@
11
GEM
22
remote: https://rubygems.org/
33
specs:
4-
actionmailbox (8.0.3)
5-
actionpack (= 8.0.3)
6-
activejob (= 8.0.3)
7-
activerecord (= 8.0.3)
8-
activestorage (= 8.0.3)
9-
activesupport (= 8.0.3)
10-
mail (>= 2.8.0)
114
actionmailer (8.0.3)
125
actionpack (= 8.0.3)
136
actionview (= 8.0.3)
@@ -25,13 +18,6 @@ GEM
2518
rails-dom-testing (~> 2.2)
2619
rails-html-sanitizer (~> 1.6)
2720
useragent (~> 0.16)
28-
actiontext (8.0.3)
29-
actionpack (= 8.0.3)
30-
activerecord (= 8.0.3)
31-
activestorage (= 8.0.3)
32-
activesupport (= 8.0.3)
33-
globalid (>= 0.6.0)
34-
nokogiri (>= 1.8.5)
3521
actionview (8.0.3)
3622
activesupport (= 8.0.3)
3723
builder (~> 3.1)
@@ -43,16 +29,6 @@ GEM
4329
globalid (>= 0.3.6)
4430
activemodel (8.0.3)
4531
activesupport (= 8.0.3)
46-
activerecord (8.0.3)
47-
activemodel (= 8.0.3)
48-
activesupport (= 8.0.3)
49-
timeout (>= 0.4.0)
50-
activestorage (8.0.3)
51-
actionpack (= 8.0.3)
52-
activejob (= 8.0.3)
53-
activerecord (= 8.0.3)
54-
activesupport (= 8.0.3)
55-
marcel (~> 1.0)
5632
activesupport (8.0.3)
5733
base64
5834
benchmark (>= 0.3)
@@ -113,7 +89,6 @@ GEM
11389
net-imap
11490
net-pop
11591
net-smtp
116-
marcel (1.0.4)
11792
matrix (0.4.3)
11893
mini_mime (1.1.5)
11994
mini_portile2 (2.8.9)
@@ -196,9 +171,6 @@ GEM
196171
actionpack (>= 5.2)
197172
activesupport (>= 5.2)
198173
sprockets (>= 3.0.0)
199-
sqlite3 (2.7.3)
200-
mini_portile2 (~> 2.8.0)
201-
sqlite3 (2.7.3-x86_64-linux-gnu)
202174
stringio (3.1.7)
203175
strscan (3.1.5)
204176
thor (1.4.0)
@@ -229,16 +201,11 @@ PLATFORMS
229201
x86_64-linux
230202

231203
DEPENDENCIES
232-
actionmailbox (~> 8.0)
233204
actionmailer (~> 8.0)
234205
actionpack (~> 8.0)
235-
actiontext (~> 8.0)
236206
actionview (~> 8.0)
237207
activejob (~> 8.0)
238208
activemodel (~> 8.0)
239-
activerecord (~> 8.0)
240-
activerecord-jdbcsqlite3-adapter (~> 70)
241-
activestorage (~> 8.0)
242209
activesupport (~> 8.0)
243210
base64
244211
bigdecimal
@@ -255,22 +222,17 @@ DEPENDENCIES
255222
selenium-webdriver
256223
spring
257224
sprockets-rails (= 3.4.0)
258-
sqlite3
259225
turbolinks (~> 5)
260226
tzinfo-data
261227
webdrivers
262228
webpacker (~> 5.0)
263229

264230
CHECKSUMS
265-
actionmailbox (8.0.3) sha256=2a0444f8937c641db100128a1826554c5298ade65c62b623a1fcb34a1dc6bd2f
266231
actionmailer (8.0.3) sha256=6dc0c3701065a96f845a05a28e9d7a60055222cfc324cc6c3a281cec148cc723
267232
actionpack (8.0.3) sha256=d63c21cb109e0529d785ffdb657a092928890327c5c8ea2e46f63b6751be5ad3
268-
actiontext (8.0.3) sha256=1c46fdfa60ffa282bf29cccc0714071128826bef5740c4f2a88d375d206a9df4
269233
actionview (8.0.3) sha256=5171946ff07d1e95bf3d805ad9425a89040a013dea11bb1f4cf604f108b1ce66
270234
activejob (8.0.3) sha256=469eddb3822aff1c6a0df0bd3398f28bff8fcd1bd0e9d309e6b7ccbd0bdba1b6
271235
activemodel (8.0.3) sha256=406907245a1c6c04cdf2187cc4590fdc081d7a07392123d322125677022ea67c
272-
activerecord (8.0.3) sha256=9b95c63b2ae9ccb57bb15db730300fdd02af387e12474eb9002a668acab3cea8
273-
activestorage (8.0.3) sha256=4f4eadeb5d128a35ed21d960eeece027225b36d54542512c8a36ad5316988c5e
274236
activesupport (8.0.3) sha256=a711ce5e30660b23232f26a38699469f8d859d47aa1f722e183fda6d7cc17823
275237
addressable (2.8.7) sha256=462986537cf3735ab5f3c0f557f14155d778f4b43ea4f485a9deb9c8f7c58232
276238
base64 (0.3.0) sha256=27337aeabad6ffae05c265c450490628ef3ebd4b67be58257393227588f5a97b
@@ -297,7 +259,6 @@ CHECKSUMS
297259
logger (1.7.0) sha256=196edec7cc44b66cfb40f9755ce11b392f21f7967696af15d274dde7edff0203
298260
loofah (2.24.1) sha256=655a30842b70ec476410b347ab1cd2a5b92da46a19044357bbd9f401b009a337
299261
mail (2.8.1) sha256=ec3b9fadcf2b3755c78785cb17bc9a0ca9ee9857108a64b6f5cfc9c0b5bfc9ad
300-
marcel (1.0.4) sha256=0d5649feb64b8f19f3d3468b96c680bae9746335d02194270287868a661516a4
301262
matrix (0.4.3) sha256=a0d5ab7ddcc1973ff690ab361b67f359acbb16958d1dc072b8b956a286564c5b
302263
mini_mime (1.1.5) sha256=8681b7e2e4215f2a159f9400b5816d85e9d8c6c6b491e96a12797e798f8bccef
303264
mini_portile2 (2.8.9) sha256=0cd7c7f824e010c072e33f68bc02d85a00aeb6fce05bb4819c03dfd3c140c289
@@ -335,8 +296,6 @@ CHECKSUMS
335296
spring (4.4.0) sha256=ec4e6cf5fb48d96b9ec9a80ebb40f962f2467b651c000693f33c14b6d6c340af
336297
sprockets (4.2.2) sha256=761e5a49f1c288704763f73139763564c845a8f856d52fba013458f8af1b59b1
337298
sprockets-rails (3.4.0) sha256=b6e13b773c652e79d8b703632375fb7e7c7db2a553814aadc6bf6cd3c744866c
338-
sqlite3 (2.7.3) sha256=d2b2fecd9341132f2cea3fde9061ee0fab9c9d532a8ecccfab4fe63d9621bf57
339-
sqlite3 (2.7.3-x86_64-linux-gnu) sha256=11b2612fddf56602d238be7a984fa0633e591edd034f7520747bc0927b7fa865
340299
stringio (3.1.7) sha256=5b78b7cb242a315fb4fca61a8255d62ec438f58da2b90be66048546ade4507fa
341300
strscan (3.1.5) sha256=f8413b90ea9395a69609a4414a8c88551bcda64337e234272c24fcd4c83e5947
342301
thor (1.4.0) sha256=8763e822ccb0f1d7bee88cde131b19a65606657b847cc7b7b4b82e772bcd8a3d

benchmarks/erubi-rails/app/models/application_record.rb

Lines changed: 0 additions & 3 deletions
This file was deleted.

benchmarks/erubi-rails/app/models/concerns/.keep

Whitespace-only changes.

benchmarks/erubi-rails/config/application.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,12 @@
44
# Pick the frameworks you want:
55
require "active_model/railtie"
66
require "active_job/railtie"
7-
require "active_record/railtie"
8-
require "active_storage/engine"
7+
# require "active_record/railtie"
8+
# require "active_storage/engine"
99
require "action_controller/railtie"
1010
require "action_mailer/railtie"
11-
require "action_mailbox/engine"
12-
require "action_text/engine"
11+
# require "action_mailbox/engine"
12+
# require "action_text/engine"
1313
require "action_view/railtie"
1414
# require "action_cable/engine"
1515
require "rails/test_unit/railtie"

benchmarks/erubi-rails/config/database.yml

Lines changed: 0 additions & 25 deletions
This file was deleted.

benchmarks/erubi-rails/config/environments/development.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@
3434
end
3535

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

3939
# Don't care if the mailer can't send.
4040
config.action_mailer.raise_delivery_errors = false
@@ -51,10 +51,10 @@
5151
config.active_support.disallowed_deprecation_warnings = []
5252

5353
# Raise an error on page load if there are pending migrations.
54-
config.active_record.migration_error = :page_load
54+
# config.active_record.migration_error = :page_load
5555

5656
# Highlight code that triggered database queries in logs.
57-
config.active_record.verbose_query_logs = true
57+
# config.active_record.verbose_query_logs = true
5858

5959
# Highlight code that enqueued background job in logs.
6060
config.active_job.verbose_enqueue_logs = true

benchmarks/erubi-rails/config/environments/production.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@
3737
# config.action_dispatch.x_sendfile_header = "X-Accel-Redirect" # for NGINX
3838

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

4242
# Assume all access to the app is happening through a SSL-terminating reverse proxy.
4343
# Can be used together with config.force_ssl for Strict-Transport-Security and secure cookies.
@@ -80,7 +80,7 @@
8080
config.active_support.report_deprecations = false
8181

8282
# Do not dump schema after migrations.
83-
config.active_record.dump_schema_after_migration = false
83+
# config.active_record.dump_schema_after_migration = false
8484

8585
# Enable DNS rebinding protection and other `Host` header attacks.
8686
# config.hosts = [

benchmarks/erubi-rails/config/environments/test.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@
3535
config.action_controller.allow_forgery_protection = false
3636

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

4040
config.action_mailer.perform_caching = false
4141

0 commit comments

Comments
 (0)