chanzuckerberg / sorbet-rails

A set of tools to make the Sorbet typechecker work with Ruby on Rails seamlessly.
MIT License
638 stars 83 forks source link

Update rails requirement from ~> 6.0.0 to ~> 7.0.2 #483

Closed dependabot[bot] closed 2 years ago

dependabot[bot] commented 2 years ago

Updates the requirements on rails to permit the latest version.

Release notes

Sourced from rails's releases.

7.0.2

Active Support

  • Fix ActiveSupport::EncryptedConfiguration to be compatible with Psych 4

    Stephen Sugden

  • Improve File.atomic_write error handling.

    Daniel Pepper

Active Model

  • Use different cache namespace for proxy calls

    Models can currently have different attribute bodies for the same method names, leading to conflicts. Adding a new namespace :active_model_proxy fixes the issue.

    Chris Salzberg

Active Record

  • Fix PG.connect keyword arguments deprecation warning on ruby 2.7.

    Nikita Vasilevsky

  • Fix the ability to exclude encryption params from being autofiltered.

    Mark Gangl

  • Dump the precision for datetime columns following the new defaults.

    Rafael Mendonça França

  • Make sure encrypted attributes are not being filtered twice.

    Nikita Vasilevsky

  • Dump the database schema containing the current Rails version.

    Since rails/rails#42297, Rails now generate datetime columns with a default precision of 6. This means that users upgrading to Rails 7.0 from 6.1, when loading the database schema, would get the new precision value, which would not match the production schema.

... (truncated)

Commits
  • 76489d8 Preparing for 7.0.2 release
  • 4f55b19 Merge pull request #44347 from nvasilevski/fix-postgresql-reconnection-test-a...
  • 4e62fed Merge pull request #44346 from nvasilevski/fix-pg-connect-ruby-27-warning
  • fc3a1f5 Merge pull request #44364 from nvasilevski/fix-test-failure-after-encryption-...
  • 346d733 Merge pull request #44354 from rails/to-fs-as-the-primary
  • 9f85a68 Merge pull request #44356 from rails/7-0-stable-schema-version
  • 1936295 Merge pull request #44329 from attack/mg-encryption-exclusion
  • f5d0ade Merge pull request #44358 from rails/rm-fix-precision-all-databases
  • 67a65fa Merge pull request #44355 from nvasilevski/do-not-register-encrypted-fields-h...
  • 7ad011c Set the ActiveRecord::Schema version when running the app:update task
  • Additional commits viewable in compare view


Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR: - `@dependabot rebase` will rebase this PR - `@dependabot recreate` will recreate this PR, overwriting any edits that have been made to it - `@dependabot merge` will merge this PR after your CI passes on it - `@dependabot squash and merge` will squash and merge this PR after your CI passes on it - `@dependabot cancel merge` will cancel a previously requested merge and block automerging - `@dependabot reopen` will reopen this PR if it is closed - `@dependabot close` will close this PR and stop Dependabot recreating it. You can achieve the same result by closing it manually - `@dependabot ignore this major version` will close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this minor version` will close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself) - `@dependabot ignore this dependency` will close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)
codecov[bot] commented 2 years ago

Codecov Report

Merging #483 (ec7ef0a) into master (df9a7c3) will decrease coverage by 0.31%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #483      +/-   ##
==========================================
- Coverage   97.60%   97.29%   -0.32%     
==========================================
  Files         115      115              
  Lines        2926     2882      -44     
==========================================
- Hits         2856     2804      -52     
- Misses         70       78       +8     
Impacted Files Coverage Δ
spec/sorbet_spec.rb 83.78% <0.00%> (-13.52%) :arrow_down:
spec/rake_rails_rbi_models_spec.rb 90.47% <0.00%> (-9.53%) :arrow_down:
lib/sorbet-rails/active_record_rbi_formatter.rb 89.41% <0.00%> (-1.40%) :arrow_down:
lib/sorbet-rails/model_rbi_formatter.rb 90.16% <0.00%> (-0.61%) :arrow_down:
...b/sorbet-rails/model_plugins/active_record_enum.rb 88.88% <0.00%> (-0.59%) :arrow_down:
lib/sorbet-rails/type_assert/type_assert_impl.rb 92.30% <0.00%> (-0.55%) :arrow_down:
lib/sorbet-rails/model_column_utils.rb 90.74% <0.00%> (-0.49%) :arrow_down:
...rbet-rails/rails_mixins/active_record_overrides.rb 95.18% <0.00%> (-0.17%) :arrow_down:
lib/sorbet-rails/sorbet_utils.rb 93.67% <0.00%> (-0.16%) :arrow_down:
lib/sorbet-rails/model_plugins/base.rb 96.42% <0.00%> (-0.13%) :arrow_down:
... and 15 more

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update df9a7c3...ec7ef0a. Read the comment docs.

dependabot[bot] commented 2 years ago

Superseded by #508.