Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Rails 7.1 #708

Merged
merged 10 commits into from
Oct 29, 2023
Merged

Rails 7.1 #708

merged 10 commits into from
Oct 29, 2023

Conversation

lcreid
Copy link
Contributor

@lcreid lcreid commented Oct 2, 2023

Add Rails 7.1 to the matrix. Also add ruby-head to the matrix.

This was remarkably painful to finish. A small change in the behaviour of rails db:prepare broke our tests, and that sent me off on a adventure through a couple of other PRs that were supposed to help me get the tests running for Rails 7.1, but ended up being a lot of work in themselves. Sigh.

Most of the changes in this PR are files generated by the Rails upgrade of the demo app.

One of the things I tried was simply ignoring the new table, hoping that that would fix (or at least delay) the need to deal with the change to db:prepare, but the model, and therefore the table, is referenced somewhere deep in the Rails initialization code.

Also of note: I don't think anything about Rails 7.1 actually broke the gem. The problems I had or caused myself were because of the way we test the gem.

I'll do a release to 5.4.0 after merging this PR.

@lcreid lcreid self-assigned this Oct 2, 2023
@lcreid lcreid force-pushed the rails-7-1 branch 3 times, most recently from deb81b0 to e362fc6 Compare October 19, 2023 03:30
@lcreid lcreid marked this pull request as ready for review October 28, 2023 18:07
@lcreid lcreid requested a review from donv October 28, 2023 18:19
Copy link
Collaborator

@donv donv left a comment

Choose a reason for hiding this comment

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

Looks good to me.

@@ -85,13 +85,20 @@ Docker is _not_ required to work on this gem.

The `docker-compose` approach should link to enough of your networking configuration that you can release the gem.
However, you have to do some of the configuration yourself, because it's dependent on your host operating system.

Copy link
Collaborator

Choose a reason for hiding this comment

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

I feel the Docker documentation has grown so large it should be extracted into its own document (DOCKER.md) and then be referred from the CONTRIBUTING.md document.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Good idea. I'll do that in a separate PR.

demo/Gemfile Outdated
@@ -2,7 +2,7 @@ source "https://rubygems.org"

gem "bootstrap_form", path: ".."

gem "rails", "~> 7.0.0"
gem "rails", "~> 7.1.0"
Copy link
Collaborator

Choose a reason for hiding this comment

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

Might be a good idea to go directly to 7.1.1 since it contains bugfixes.

selenium-webdriver
sprockets-rails
sqlite3 (~> 1.4)
tzinfo-data
web-console

BUNDLED WITH
2.4.13
2.4.1
Copy link
Collaborator

Choose a reason for hiding this comment

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

I think it is a good idea to keep up with newer versions of bundler using bundle update --bundler. At least not downgrade bundler without a reason.

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Agreed. I was using an older Docker container. Sometimes it seems like a stable development platform can cause more problems than it solves. ☹️


# Require the gems listed in Gemfile, including any gems
# you've limited to :test, :development, or :production.
Bundler.require(*Rails.groups)
require "bootstrap_form"
require "bootstrap_form" # FIXME: Why do we require this here?
Copy link
Collaborator

Choose a reason for hiding this comment

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

Have you tried without this line?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Argh. I was sure I had removed the FIXME. Anyway, yes, I have another branch where I'm doing some small fix-ups, and it seems to run fine without this require. Maybe I'll merge that branch before I release.

@lcreid lcreid merged commit f98e29b into bootstrap-ruby:main Oct 29, 2023
18 checks passed
@lcreid lcreid deleted the rails-7-1 branch March 2, 2024 20:47
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