Skip to content

Use Rails 8.1 by default - #2545

Merged
tf merged 2 commits into
codevise:masterfrom
tf:rails-8-1-default
Dec 1, 2026
Merged

tf merged 2 commits into
codevise:masterfrom
tf:rails-8-1-default

Conversation

@tf

@tf tf commented Dec 1, 2026

Copy link
Copy Markdown
Member

Switch the default Rails version for local development and specs from 7.2 to 8.1, the newest supported version. CI keeps testing both ends of the supported range.

  • Generate dummy apps in test environment: the gemspec lists factory_bot_rails as a development dependency, so Bundler requires it in the development environment. Its initializer loads the factory definitions, which reference models that need the Pageflow configuration. When the Rails template runs db:create before pageflow:install, booting the app fails, so running bin/rake pageflow:dummy without RAILS_ENV aborted with "Pageflow has not been configured yet". Pageflow::Dummy.setup now defaults RAILS_ENV to test, like bin/rspec and CI already do.
  • Use Rails 8.1 by default: changes Pageflow::RailsVersion::DEFAULT. The reusable rspec workflow used by plugins left the Rails version unset in one matrix entry. Once a plugin's Pageflow dependency defaults to 8.1, both entries would have used 8.1, so Rails 7.2 is now listed explicitly.

Ran the main (including JS), paged and scrolled suites locally without PAGEFLOW_RAILS_VERSION (Rails 8.1.4.1), with dummy apps generated via bin/rake <engine>:dummy without RAILS_ENV.

tf added 2 commits December 1, 2026 12:14
The gemspec lists factory_bot_rails as a development dependency, so
Bundler requires it in the development environment. Its initializer
loads the factory definitions, which reference models that need the
Pageflow configuration. When the Rails template runs db:create before
pageflow:install, booting the app therefore fails and running
bin/rake pageflow:dummy without RAILS_ENV aborted.

bin/rspec and CI already set RAILS_ENV to test.
Develop and run specs locally against the newest supported Rails
version. CI keeps testing both ends of the supported range.

Plugins using the reusable rspec workflow leave the Rails version unset
in one of the matrix entries. Once their Pageflow dependency defaults
to Rails 8.1, both entries would use 8.1, so list Rails 7.2 explicitly.
@tf tf added this to the v17.3 milestone Dec 1, 2026
@tf
tf merged commit ed9382c into codevise:master Dec 1, 2026
16 checks passed
@tf
tf deleted the rails-8-1-default branch December 1, 2026 11:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant