Skip to content

fix namespace issue in RubyFileGenerator#436

Merged
timriley merged 6 commits into
hanami:mainfrom
mddelk:fix-app-namespace-name-conflict
Jul 18, 2026
Merged

fix namespace issue in RubyFileGenerator#436
timriley merged 6 commits into
hanami:mainfrom
mddelk:fix-app-namespace-name-conflict

Conversation

@mddelk

@mddelk mddelk commented Jul 12, 2026

Copy link
Copy Markdown
Contributor

Update RubyFileGenerator so that it properly handles nested namespaces that might conflict with the app or slice name.

see https://discourse.hanakai.org/t/namespace-issue-when-generating-actions-that-match-the-app-name/1501

@mddelk
mddelk marked this pull request as ready for review July 12, 2026 05:38
@mddelk
mddelk force-pushed the fix-app-namespace-name-conflict branch from d5a09d4 to a0655a0 Compare July 12, 2026 16:16
@mddelk
mddelk force-pushed the fix-app-namespace-name-conflict branch from a0655a0 to 61341af Compare July 12, 2026 16:53
@github-actions

Copy link
Copy Markdown
Contributor

ℹ️ Optional job failed: Ruby jruby

timriley added 4 commits July 18, 2026 15:22
Since the namespace conflict avoidance is a common feature across all generators, focus on testing this in unit tests primarily. Leave just one integration test, which we reference from the unit tests so it’s easy to find.
@timriley
timriley force-pushed the fix-app-namespace-name-conflict branch from f6e9a89 to b242eb6 Compare July 18, 2026 12:52
@timriley

Copy link
Copy Markdown
Member

Thank you @mddelk, this is great!!

I've just made a few tweaks (see commits above). The biggest change was removing some of the testing redundancy — for shared behaviour like this I'm trying to set a pattern where we focus more on unit tests and use a smaller set of integration tests to ensure things are exercised as expected.

Merging now! ❤️

@timriley
timriley merged commit ab92cce into hanami:main Jul 18, 2026
11 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