Skip to content

Conversation

@OutlawAndy
Copy link
Member

@OutlawAndy OutlawAndy commented Oct 9, 2025

Why?

This is more general cleanup & boilerplate elimination.

What Changed

What changed in this PR?

  • Add Top level Rolemodel module
  • autoload Helper Modules in top level Rolemodel module
  • extract NODE_VERSION to top level Rolemodel module. (used by jasmine-playwright & Webpack generators)
  • re-gen both example apps
  • update both 'recreate' scripts to produce a less-strict version requirement for RMR dependency

Pre-merge checklist

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

@OutlawAndy OutlawAndy requested review from timirwin and wesrich October 9, 2025 19:59
run_bundle

gem_group :test do
gem 'capybara'
Copy link
Member Author

Choose a reason for hiding this comment

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

This is a default dependency in new Rails apps

cd example_rails7

bundle add --group development --path '..' rolemodel_rails
bundle add --group development --path '..' --version '> 0.20' rolemodel_rails
Copy link
Member Author

Choose a reason for hiding this comment

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

without an explicit --version option, bundler strictly assigns the latest version. That means the example apps have to be regenerated with every version bump. I could be convinced that is something we want, but it's not very convenient or user friendly..

@@ -1 +1 @@
3.2.2
3.4.4
Copy link
Contributor

Choose a reason for hiding this comment

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

No big deal, but this could be 3.4.6 🤷

Copy link
Member Author

Choose a reason for hiding this comment

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

3.4.7 was released on Tuesday


# Make sure RUBY_VERSION matches the Ruby version in .ruby-version
ARG RUBY_VERSION=3.2.2
ARG RUBY_VERSION=3.4.4
Copy link
Contributor

Choose a reason for hiding this comment

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

Same

@@ -1 +1 @@
3.2.2
3.4.4
Copy link
Contributor

Choose a reason for hiding this comment

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

I guess this app in both places too?

Copy link
Member Author

Choose a reason for hiding this comment

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

I'm not actually sure why these are generated in the first place.. Rbenv generally works by way of inheritance..

@OutlawAndy OutlawAndy merged commit adf497e into master Oct 9, 2025
2 checks passed
@Jeremy-Walton Jeremy-Walton deleted the autoload-helpers branch November 13, 2025 01:57
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.

3 participants