Skip to content

New Generator generator#158

Merged
OutlawAndy merged 5 commits intomasterfrom
new_generator_generator
Feb 7, 2026
Merged

New Generator generator#158
OutlawAndy merged 5 commits intomasterfrom
new_generator_generator

Conversation

@OutlawAndy
Copy link
Member

@OutlawAndy OutlawAndy commented Aug 13, 2025

Why?

Why were the changes needed? What issues were the changes addressing?
(Note: some changes may seem unrelated to the ticket, this is a great place to explain further.)

What Changed

What changed in this PR?

  • bin/new_generator script
  • generate generator file stubs
  • generate spec file stub
  • string manipulations class_name/path_name/usage_name
  • handle namespaces (generator nesting)

Pre-merge checklist

  • Update relevant READMEs
  • Update version number in lib/rolemodel_rails/version.rb

Screenshots

banner

iTerm2 02 06 2026@19 44 41

example usage

iTerm2 02 06 2026@20 05 50 Code 02 06 2026@20 00 09

@OutlawAndy OutlawAndy self-assigned this Aug 13, 2025
@Jeremy-Walton
Copy link
Member

I like this idea! I've done some similar stuff on Optics though not using thor. Building tools to help us follow the right structure is super helpful!
https://github.com/RoleModel/optics/blob/main/tools/generate.js
https://github.com/RoleModel/optics/blob/tools-experiment/tools/install.js

@OutlawAndy OutlawAndy force-pushed the new_generator_generator branch 2 times, most recently from ecbb710 to 156eaae Compare February 6, 2026 21:43
@OutlawAndy OutlawAndy changed the title [SPIKE] New Generator generator New Generator generator Feb 7, 2026
@OutlawAndy OutlawAndy force-pushed the new_generator_generator branch from 8b597d2 to 3acd0a3 Compare February 7, 2026 01:43
@OutlawAndy OutlawAndy marked this pull request as ready for review February 7, 2026 01:43
@OutlawAndy OutlawAndy force-pushed the new_generator_generator branch from bf6d6af to 85c88b8 Compare February 7, 2026 02:04
def remove_rolemodel_rails_version_check
gsub_file '.github/pull_request_template.md',
"* [ ] Update version number in `lib/rolemodel_rails/version.rb`\n",
"* [ ] Run `bin/bump_version` or `bin/bump_version --patch`\n",
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sharing these files is beginning to loose its appeal..

@OutlawAndy OutlawAndy merged commit 17fb4f6 into master Feb 7, 2026
2 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants