Skip to content

Commit a6d5372

Browse files
committed
refactor: Remove unused files and dependencies to streamline the application
- Deleted the Dockerfile and several helper files (ApplicationHelper, LearningsHelper, StaticPagesHelper) as they are no longer needed. - Removed application job and mailer files to simplify the codebase. - Eliminated PWA-related files including the manifest and service worker to reduce complexity. - Updated Gemfile to comment out unused gems (jbuilder, kamal, solid_queue, solid_cable, rubocop-rails-omakase) and reflected these changes in Gemfile.lock. - Adjusted application layout to use the correct stylesheet link for improved consistency.
1 parent 2472ba0 commit a6d5372

21 files changed

+6
-314
lines changed

Dockerfile

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

Gemfile

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,8 @@ gem "importmap-rails"
1414
gem "turbo-rails"
1515
# Hotwire's modest JavaScript framework [https://stimulus.hotwired.dev]
1616
gem "stimulus-rails"
17-
# Use Tailwind CSS [https://github.com/rails/tailwindcss-rails]
1817
# Build JSON APIs with ease [https://github.com/rails/jbuilder]
19-
gem "jbuilder"
18+
# gem "jbuilder"
2019

2120
# Use Active Model has_secure_password [https://guides.rubyonrails.org/active_model_basics.html#securepassword]
2221
# gem "bcrypt", "~> 3.1.7"
@@ -26,14 +25,14 @@ gem "tzinfo-data", platforms: %i[ windows jruby ]
2625

2726
# Use the database-backed adapters for Rails.cache, Active Job, and Action Cable
2827
gem "solid_cache"
29-
gem "solid_queue"
30-
gem "solid_cable"
28+
# gem "solid_queue"
29+
# gem "solid_cable"
3130

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

3534
# Deploy this application anywhere as a Docker container [https://kamal-deploy.org]
36-
gem "kamal", require: false
35+
# gem "kamal", require: false
3736

3837
# Add HTTP asset caching/compression and X-Sendfile acceleration to Puma [https://github.com/basecamp/thruster/]
3938
gem "thruster", require: false
@@ -50,7 +49,7 @@ group :development, :test do
5049
gem "brakeman", require: false
5150

5251
# Omakase Ruby styling [https://github.com/rails/rubocop-rails-omakase/]
53-
gem "rubocop-rails-omakase", require: false
52+
# gem "rubocop-rails-omakase", require: false
5453
end
5554

5655
group :development do

Gemfile.lock

Lines changed: 0 additions & 98 deletions
Original file line numberDiff line numberDiff line change
@@ -72,11 +72,7 @@ GEM
7272
securerandom (>= 0.3)
7373
tzinfo (~> 2.0, >= 2.0.5)
7474
uri (>= 0.13.1)
75-
ast (2.4.3)
7675
base64 (0.2.0)
77-
bcrypt_pbkdf (1.1.1)
78-
bcrypt_pbkdf (1.1.1-arm64-darwin)
79-
bcrypt_pbkdf (1.1.1-x86_64-darwin)
8076
benchmark (0.4.0)
8177
bigdecimal (3.1.9)
8278
bindex (0.8.1)
@@ -93,15 +89,8 @@ GEM
9389
irb (~> 1.10)
9490
reline (>= 0.3.8)
9591
diff-lcs (1.6.1)
96-
dotenv (3.1.7)
9792
drb (2.2.1)
98-
ed25519 (1.3.0)
9993
erubi (1.13.1)
100-
et-orbi (1.2.11)
101-
tzinfo
102-
fugit (1.11.1)
103-
et-orbi (~> 1, >= 1.2.11)
104-
raabro (~> 1.4)
10594
globalid (1.2.1)
10695
activesupport (>= 6.1)
10796
i18n (1.14.7)
@@ -115,23 +104,6 @@ GEM
115104
pp (>= 0.6.0)
116105
rdoc (>= 4.0.0)
117106
reline (>= 0.4.2)
118-
jbuilder (2.13.0)
119-
actionview (>= 5.0.0)
120-
activesupport (>= 5.0.0)
121-
json (2.10.2)
122-
kamal (2.5.3)
123-
activesupport (>= 7.0)
124-
base64 (~> 0.2)
125-
bcrypt_pbkdf (~> 1.0)
126-
concurrent-ruby (~> 1.2)
127-
dotenv (~> 3.1)
128-
ed25519 (~> 1.2)
129-
net-ssh (~> 7.3)
130-
sshkit (>= 1.23.0, < 2.0)
131-
thor (~> 1.3)
132-
zeitwerk (>= 2.6.18, < 3.0)
133-
language_server-protocol (3.17.0.4)
134-
lint_roller (1.1.0)
135107
logger (1.7.0)
136108
loofah (2.24.0)
137109
crass (~> 1.0.2)
@@ -152,13 +124,8 @@ GEM
152124
net-protocol
153125
net-protocol (0.2.2)
154126
timeout
155-
net-scp (4.1.0)
156-
net-ssh (>= 2.6.5, < 8.0.0)
157-
net-sftp (4.0.0)
158-
net-ssh (>= 5.0.0, < 8.0.0)
159127
net-smtp (0.5.1)
160128
net-protocol
161-
net-ssh (7.3.0)
162129
nio4r (2.7.4)
163130
nokogiri (1.18.7-aarch64-linux-gnu)
164131
racc (~> 1.4)
@@ -176,16 +143,10 @@ GEM
176143
racc (~> 1.4)
177144
nokogiri (1.18.7-x86_64-linux-musl)
178145
racc (~> 1.4)
179-
ostruct (0.6.1)
180-
parallel (1.26.3)
181-
parser (3.3.7.4)
182-
ast (~> 2.4.1)
183-
racc
184146
pg (1.5.9)
185147
pp (0.6.2)
186148
prettyprint
187149
prettyprint (0.2.0)
188-
prism (1.4.0)
189150
propshaft (1.1.0)
190151
actionpack (>= 7.0.0)
191152
activesupport (>= 7.0.0)
@@ -196,7 +157,6 @@ GEM
196157
stringio
197158
puma (6.6.0)
198159
nio4r (~> 2.0)
199-
raabro (1.4.0)
200160
racc (1.8.1)
201161
rack (3.1.12)
202162
rack-session (2.1.0)
@@ -235,11 +195,9 @@ GEM
235195
rake (>= 12.2)
236196
thor (~> 1.0, >= 1.2.2)
237197
zeitwerk (~> 2.6)
238-
rainbow (3.1.1)
239198
rake (13.2.1)
240199
rdoc (6.13.1)
241200
psych (>= 4.0.0)
242-
regexp_parser (2.10.0)
243201
reline (0.6.1)
244202
io-console (~> 0.5)
245203
rspec-core (3.13.3)
@@ -259,59 +217,11 @@ GEM
259217
rspec-mocks (~> 3.13)
260218
rspec-support (~> 3.13)
261219
rspec-support (3.13.2)
262-
rubocop (1.75.2)
263-
json (~> 2.3)
264-
language_server-protocol (~> 3.17.0.2)
265-
lint_roller (~> 1.1.0)
266-
parallel (~> 1.10)
267-
parser (>= 3.3.0.2)
268-
rainbow (>= 2.2.2, < 4.0)
269-
regexp_parser (>= 2.9.3, < 3.0)
270-
rubocop-ast (>= 1.44.0, < 2.0)
271-
ruby-progressbar (~> 1.7)
272-
unicode-display_width (>= 2.4.0, < 4.0)
273-
rubocop-ast (1.44.0)
274-
parser (>= 3.3.7.2)
275-
prism (~> 1.4)
276-
rubocop-performance (1.25.0)
277-
lint_roller (~> 1.1)
278-
rubocop (>= 1.75.0, < 2.0)
279-
rubocop-ast (>= 1.38.0, < 2.0)
280-
rubocop-rails (2.31.0)
281-
activesupport (>= 4.2.0)
282-
lint_roller (~> 1.1)
283-
rack (>= 1.1)
284-
rubocop (>= 1.75.0, < 2.0)
285-
rubocop-ast (>= 1.38.0, < 2.0)
286-
rubocop-rails-omakase (1.1.0)
287-
rubocop (>= 1.72)
288-
rubocop-performance (>= 1.24)
289-
rubocop-rails (>= 2.30)
290-
ruby-progressbar (1.13.0)
291220
securerandom (0.4.1)
292-
solid_cable (3.0.7)
293-
actioncable (>= 7.2)
294-
activejob (>= 7.2)
295-
activerecord (>= 7.2)
296-
railties (>= 7.2)
297221
solid_cache (1.0.7)
298222
activejob (>= 7.2)
299223
activerecord (>= 7.2)
300224
railties (>= 7.2)
301-
solid_queue (1.1.4)
302-
activejob (>= 7.1)
303-
activerecord (>= 7.1)
304-
concurrent-ruby (>= 1.3.1)
305-
fugit (~> 1.11.0)
306-
railties (>= 7.1)
307-
thor (~> 1.3.1)
308-
sshkit (1.24.0)
309-
base64
310-
logger
311-
net-scp (>= 1.1.2)
312-
net-sftp (>= 2.1.2)
313-
net-ssh (>= 2.8.0)
314-
ostruct
315225
stimulus-rails (1.3.4)
316226
railties (>= 6.0.0)
317227
stringio (3.1.6)
@@ -327,9 +237,6 @@ GEM
327237
railties (>= 7.1.0)
328238
tzinfo (2.0.6)
329239
concurrent-ruby (~> 1.0)
330-
unicode-display_width (3.1.4)
331-
unicode-emoji (~> 4.0, >= 4.0.4)
332-
unicode-emoji (4.0.4)
333240
uri (1.0.3)
334241
useragent (0.16.11)
335242
web-console (4.2.1)
@@ -360,17 +267,12 @@ DEPENDENCIES
360267
brakeman
361268
debug
362269
importmap-rails
363-
jbuilder
364-
kamal
365270
pg (~> 1.1)
366271
propshaft
367272
puma (>= 5.0)
368273
rails (~> 8.0.2)
369274
rspec-rails (>= 6.0)
370-
rubocop-rails-omakase
371-
solid_cable
372275
solid_cache
373-
solid_queue
374276
stimulus-rails
375277
thruster
376278
turbo-rails

app/helpers/application_helper.rb

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

app/helpers/learnings_helper.rb

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

app/helpers/static_pages_helper.rb

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

app/jobs/application_job.rb

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

app/mailers/application_mailer.rb

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

app/views/layouts/application.html.erb

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,17 @@
33
<head>
44
<title><%= content_for(:title) || "Til Tracker" %></title>
55
<meta name="viewport" content="width=device-width,initial-scale=1">
6-
<meta name="apple-mobile-web-app-capable" content="yes">
7-
<meta name="mobile-web-app-capable" content="yes">
86
<%= csrf_meta_tags %>
97
<%= csp_meta_tag %>
108

119
<%= yield :head %>
1210

13-
<%# Enable PWA manifest for installable apps (make sure to enable in config/routes.rb too!) %>
14-
<%#= tag.link rel: "manifest", href: pwa_manifest_path(format: :json) %>
15-
1611
<link rel="icon" href="/icon.png" type="image/png">
1712
<link rel="icon" href="/icon.svg" type="image/svg+xml">
1813
<link rel="apple-touch-icon" href="/icon.png">
1914

2015
<%# Includes all stylesheet files in app/assets/stylesheets %>
21-
<%= stylesheet_link_tag :app, "data-turbo-track": "reload" %>
16+
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
2217
</head>
2318

2419
<body>

app/views/pwa/manifest.json.erb

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

0 commit comments

Comments
 (0)