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.1 #477

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.1

Active Support

Active Model

  • No changes.

Active Record

  • Change QueryMethods#in_order_of to drop records not listed in values.

    in_order_of now filters down to the values provided, to match the behavior of the Enumerable version.

    Kevin Newton

  • Allow named expression indexes to be revertible.

    Previously, the following code would raise an error in a reversible migration executed while rolling back, due to the index name not being used in the index removal.

    add_index(:settings, "(data->'property')", using: :gin, name: :index_settings_data_property)
    

    Fixes #43331.

    Oliver Günther

  • Better error messages when association name is invalid in the argument of ActiveRecord::QueryMethods::WhereChain#missing.

    ykpythemind

  • Fix ordered migrations for single db in multi db environment.

    Himanshu

  • Extract on update CURRENT_TIMESTAMP for mysql2 adapter.

    Kazuhiro Masuda

... (truncated)

Commits
  • 6bfc637 Preparing for 7.0.1 release
  • b28f477 No need to check for Ruby version on the bug reports template anymore
  • d2268d6 Merge pull request #44097 from kddnewton/in-order-of-filter
  • 4004ad7 Merge PR #43066
  • 26fbdd7 Merge pull request #44096 from akostadinov/main
  • 092f452 Merge pull request #44007 from yahonda/ruby32_pg
  • 9c2977b Only run test for gem templates in Ruby < 3.1
  • 26d4db6 Require shellwords where it is used
  • cc48a48 Merge pull request #44087 from jonathanhefner/fix-plugin-gemfile-duplicate-en...
  • cb44df7 Merge pull request #44083 from rails/rm-temporary-mail-fix
  • 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 #477 (22e7294) into master (be36a10) will decrease coverage by 0.17%. The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #477      +/-   ##
==========================================
- Coverage   97.47%   97.29%   -0.18%     
==========================================
  Files         115      115              
  Lines        2926     2882      -44     
==========================================
- Hits         2852     2804      -48     
- Misses         74       78       +4     
Impacted Files Coverage Δ
spec/rake_rails_rbi_models_spec.rb 90.47% <0.00%> (-9.53%) :arrow_down:
spec/sorbet_spec.rb 83.78% <0.00%> (-2.71%) :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 be36a10...22e7294. Read the comment docs.

dependabot[bot] commented 2 years ago

OK, I won't notify you again about this release, but will get in touch when a new version is available. If you'd rather skip all updates until the next major or minor version, let me know by commenting @dependabot ignore this major version or @dependabot ignore this minor version. You can also ignore all major, minor, or patch releases for a dependency by adding an ignore condition with the desired update_types to your config file.

If you change your mind, just re-open this PR and I'll resolve any conflicts on it.