Skip to content

Remove dead coffee-rails gem#82

Merged
JuanVqz merged 1 commit into
mainfrom
chore/remove-coffee-rails
Jul 9, 2026
Merged

Remove dead coffee-rails gem#82
JuanVqz merged 1 commit into
mainfrom
chore/remove-coffee-rails

Conversation

@JuanVqz

@JuanVqz JuanVqz commented Jul 9, 2026

Copy link
Copy Markdown
Member

What

Removes the dead coffee-rails gem.

Why

coffee-rails was unused: its only CoffeeScript file, app/assets/javascripts/home.coffee, was the default Rails scaffold comment block — three comment lines, zero code. Nothing else in the app is CoffeeScript.

It couldn't be removed earlier: under Sprockets 3.x the CoffeeScript engine was registered unconditionally and assets:precompile required the coffee_script lib (which coffee-rails provided), so dropping the gem broke asset compilation even with no real .coffee files. The Sprockets 4 upgrade (#81) removed that coupling, so the gem is now cleanly removable.

Changes

  • Converted the no-op stub home.coffeehome.js (identical comment-only content)
  • Removed gem "coffee-rails" from the Gemfile
  • Updated Gemfile.lock and the dual-boot Gemfile.next.lock (also drops coffee-script / coffee-script-source)

Verification (local)

  • Boots
  • assets:precompile succeeds — application.js (incl. home.js), application.css, pdf.css
  • Test suite: 16 runs, 52 assertions, 0 failures, 0 errors, 0 skips
  • rubocop clean (exact CI config .rubocop_with_todo.yml)
  • reek clean (0 warnings)
  • System tests not run locally (no chromedriver in the dev env) — covered by CI; the change is a no-op asset conversion, so risk is minimal

coffee-rails was dead: its only file, app/assets/javascripts/home.coffee,
was the default Rails scaffold comment block (three comment lines, zero
code). Converted that stub to an equivalent no-op home.js and dropped the
gem; both Gemfile.lock and the dual-boot Gemfile.next.lock updated (also
drops coffee-script / coffee-script-source).

This was blocked under Sprockets 3.x (which registered a CoffeeScript engine
unconditionally and required the coffee_script lib at precompile); the
Sprockets 4 upgrade (#81) removed that coupling, so the gem is now cleanly
removable.

Verified locally: boots, assets:precompile succeeds (application.js incl.
home.js, application.css, pdf.css), test suite green (16 runs, 52 assertions,
0 failures), rubocop clean (exact CI config), reek clean. System tests not
run locally (no chromedriver in this env) — covered by CI; change is a no-op
asset conversion so risk is minimal.
@JuanVqz JuanVqz self-assigned this Jul 9, 2026
@JuanVqz JuanVqz marked this pull request as ready for review July 9, 2026 04:45
@JuanVqz JuanVqz merged commit 82c7205 into main Jul 9, 2026
2 checks passed
@JuanVqz JuanVqz deleted the chore/remove-coffee-rails branch July 9, 2026 04:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant