Skip to content

Match generate_module naming conventions to their help text - #855

Merged
mvandervoord merged 1 commit into
masterfrom
fix/module-naming-conventions
Oct 17, 2026
Merged

mvandervoord merged 1 commit into
masterfrom
fix/module-naming-conventions

Conversation

@mkarlesky

@mkarlesky mkarlesky commented Oct 14, 2026 •

Copy link
Copy Markdown
Member

Summary

auto/generate_module.rb had three bugs:

Testing

test/spec/generate_module_naming_spec.rb covers each convention, symbol input, and no convention. It failed before the fix and passes after it.

One existing example, generate_module_existing_file_spec.rb "with mch pattern fails when all files exist", expects meh_model where the generator produces meh_Model. It fails the same way on master without this change, so this PR leaves it alone.

Downstream note

Ceedling's Module Generator plugin currently swaps bumpy and camel before calling this script to work around the reversal (ThrowTheSwitch/Ceedling#1338). When Ceedling's Unity submodule picks up this fix, that mapping must be removed in the same change, or the names will reverse again.

bumpy produced camelCase and camel produced BumpyCase, the reverse of
the help text. A convention given as a symbol, as YAML configuration
supplies it, was ignored. The Subversion add check read $! where it
needed $?, the exit status.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@mvandervoord
mvandervoord merged commit cb620ee into master Oct 17, 2026
4 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