Repository navigation
Use Rails 8.1 by default - #2545
Merged
Merged
Conversation
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
factory_bot_railsas 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 runsdb:createbeforepageflow:install, booting the app fails, so runningbin/rake pageflow:dummywithoutRAILS_ENVaborted with "Pageflow has not been configured yet".Pageflow::Dummy.setupnow defaultsRAILS_ENVtotest, likebin/rspecand CI already do.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 viabin/rake <engine>:dummywithoutRAILS_ENV.