Skip to content

Fix: missing generators in gemfiles#2395

Merged
joelhawksley merged 2 commits intoViewComponent:mainfrom
Jell:jl/fix-missing-generators
Jul 21, 2025
Merged

Fix: missing generators in gemfiles#2395
joelhawksley merged 2 commits intoViewComponent:mainfrom
Jell:jl/fix-missing-generators

Conversation

@Jell
Copy link
Copy Markdown
Contributor

@Jell Jell commented Jul 21, 2025

there's no lib/rails folder but there is a lib/generators folder, I believe this is a configuration bug that was introduced during a v4-related refactoring?

What are you trying to accomplish?

Attempting to address: #2394

What approach did you choose and why?

I looked into the expected convention for rails generators, noticed that the lib/generators folder was missing in the install folder of the gem on my local machine.

Anything you want to highlight for special attention from reviewers?

I'm hoping this is a simple typo / oversight, which I believe a maintainer should be able to quickly figure out from this PR! 😅

I am not entirely sure how to write a spec for this, but perhaps that's not necessary for a gemspec typo?

there's no `lib/rails` folder but there is a `lib/generators` folder,
I believe this is a configuration bug that was introduced during a
v4-related refactoring?
@Jell Jell force-pushed the jl/fix-missing-generators branch from 64b8f74 to f37e9e9 Compare July 21, 2025 09:23
@Jell
Copy link
Copy Markdown
Contributor Author

Jell commented Jul 21, 2025

I'm not sure why the tests are failing after this change, I'm failing to understand if they are related or just flakey? I'm afraid I will have to let someone more knowledgeable about the codebase figure that out 😅

@Jell
Copy link
Copy Markdown
Contributor Author

Jell commented Jul 21, 2025

Digging further into it, since ruby 3.5 is installed from "head" I'm guessing a new optimization landed on the latest version of ruby 3.5 which leads to fewer allocations, so I don't believe this is related to my change. Probably the expectation on the number of allocations should be updated to reflect that new optimization? 🤔

Comment thread docs/CHANGELOG.md Outdated
Comment thread docs/CHANGELOG.md Outdated
@joelhawksley joelhawksley merged commit 42bbcb1 into ViewComponent:main Jul 21, 2025
11 of 13 checks passed
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.

2 participants