Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add zeitwerk inflector for cli->CLI #27635

Conversation

mjankowski
Copy link
Contributor

Extracted from #27556

Pre-requisite for getting the autoload_lib feature enabled. This one tells zeitwerk to expect CLI instead of Cli in our lib/mastodon/cli/* classes. We could alternately move the files to a c_l_i dir, or rename the module to Cli, but those feel worse than this mapping update.

@mjankowski
Copy link
Contributor Author

Another alternate approach on this one specifically is to add it to the existing acronyms in the inflections file, in which case it would be use by rails more generally and not just the zeitwerk loader.

@mjankowski mjankowski added the refactoring Improving code quality label Nov 7, 2023
@ClearlyClaire
Copy link
Contributor

Another alternate approach on this one specifically is to add it to the existing acronyms in the inflections file, in which case it would be use by rails more generally and not just the zeitwerk loader.

Yeah, I was going to suggest that.

@mjankowski mjankowski force-pushed the rails-zeitwerk-locations-zeitwerk-inflector branch from c34a750 to 5394c44 Compare November 29, 2023 13:04
@mjankowski
Copy link
Contributor Author

Updated to just add CLI to the existing inflections list, instead of adding new zeitwerk specific inflections.

@ClearlyClaire ClearlyClaire added this pull request to the merge queue Nov 30, 2023
Merged via the queue into mastodon:main with commit a8473f5 Nov 30, 2023
28 checks passed
@mjankowski mjankowski deleted the rails-zeitwerk-locations-zeitwerk-inflector branch November 30, 2023 14:26
vmstan pushed a commit to vmstan/mastodon that referenced this pull request Dec 14, 2023
vmstan pushed a commit to vmstan/mastodon that referenced this pull request Jan 5, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
refactoring Improving code quality
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants