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

Bypass using the prerelease versions of rspec #2576

Closed
wants to merge 1 commit into from
Closed

Bypass using the prerelease versions of rspec #2576

wants to merge 1 commit into from

Conversation

zspencer
Copy link

@zspencer zspencer commented Mar 1, 2022

Here, @pirj shows us how to use the Rails 7 compatible branch:

Then, I got confused about what to do with the other changes:

So, to make it a bit easier to just "drop in" a the ActionMailer fixes,
this branch makes rspec-rails "feel like" a released version of itself,
so bundling off of it doesn't incidentally pull in the pre-release
version of rspec.

There's nothing wrong with the pre-release version of rspec, but I'm not
particularly confident making the recommended other changes to my
consuming applications codebase; so a quick fork until a real 5.1.1 or
6.0 release comes out seems "safest"

Here, @pirj shows us how to use the Rails 7 compatible branch:
- #2546 (comment)

Then, I got confused about what to do with the other changes:
- #2546 (comment)

So, to make it a bit easier to just "drop in" a the ActionMailer fixes,
this branch makes rspec-rails "feel like" a released version of itself,
so bundling off of it doesn't incidentally pull in the pre-release
version of rspec.

There's nothing wrong with the pre-release version of rspec, but I'm not
particularly confident making the recommended other changes to my
consuming applications codebase; so a quick fork until a real 5.1.1 or
6.0 release comes out seems "safest"
@zspencer zspencer closed this Mar 1, 2022
zspencer added a commit to zinc-collective/convene that referenced this pull request Mar 1, 2022
See: rspec/rspec-rails#2576

Basically, turns out there _is_ a version of rspec-rails that works with
Rails 7, however it is living in a branch atm because it's a big change.
(totally reasonable).

This uses a forked version of that branch, because it expects to be a
prerelease version, and I wasn't sure how to move my Gemfile to use
pre-release versions of itself, and once I started going down that path
I got skared.
zspencer added a commit to zinc-collective/convene that referenced this pull request Mar 2, 2022
* Get Dependencies in order

- Sprockets was removed from Rails core, and now lives in it's own gem
  https://edgeguides.rubyonrails.org/upgrading_ruby_on_rails.html#sprockets-is-now-an-optional-dependency
- spring-watch-listen has been migrated to the rails core team, but they
  haven't released the version that supports spring 3+:
  rails/spring-watcher-listen#27

* Rails 7 and Lockbox have synonymous APIs

Fancy pants support for application-level encryption of data has been
added to Rails! Yay
https://guides.rubyonrails.org/active_record_encryption.html

However, it uses the same method name as Lockbox:
https://github.com/ankane/lockbox#active-record

So we use the Lockbox-specific one now.

* Use the Rails 7 Defaults

* Database schema is shaped a touch different with the new defaults

* Update rspec-railsy-bits

* Use the branch of rspec-rails that supports Rails 7

See: rspec/rspec-rails#2576

Basically, turns out there _is_ a version of rspec-rails that works with
Rails 7, however it is living in a branch atm because it's a big change.
(totally reasonable).

This uses a forked version of that branch, because it expects to be a
prerelease version, and I wasn't sure how to move my Gemfile to use
pre-release versions of itself, and once I started going down that path
I got skared.

* Run `bin/rails app:update`

* Explicitly disable tls for maildev

Not entirely sure why we need to do this now, but OK.

See: maildev/maildev#274

Co-authored-by: Zee Spencer <zspencer@users.noreply.github.com>
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.

None yet

1 participant