Update dependency rails to v8.1.2 #55

Open
renovate wants to merge 1 commit from renovate/ruby-on-rails-packages into main
Collaborator

This PR contains the following updates:

Package Change Age Adoption Passing Confidence
rails (source, changelog) 8.1.18.1.2 age adoption passing confidence

Release Notes

rails/rails (rails)

v8.1.2: 8.1.2

Compare Source

Active Support

  • Make delegate and delegate_missing_to work in BasicObject subclasses.

    Rafael Mendonça França

  • Fix Inflectors when using a locale that fallbacks to :en.

    Said Kaldybaev

  • Fix ActiveSupport::TimeWithZone#as_json to consistently return UTF-8 strings.

    Previously the returned string would sometime be encoded in US-ASCII, which in
    some cases may be problematic.

    Now the method consistently always return UTF-8 strings.

    Jean Boussier

  • Fix TimeWithZone#xmlschema when wrapping a DateTime instance in local time.

    Previously it would return an invalid time.

    Dmytro Rymar

  • Implement LocalCache strategy on ActiveSupport::Cache::MemoryStore. The memory store
    needs to respond to the same interface as other cache stores (e.g. ActiveSupport::NullStore).

    Mikey Gough

  • Fix ActiveSupport::Inflector.humanize with international characters.

    ActiveSupport::Inflector.humanize("áÉÍÓÚ")  # => "Áéíóú"
    ActiveSupport::Inflector.humanize("аБВГДЕ") # => "Абвгде"
    

    Jose Luis Duran

Active Model

  • No changes.

Active Record

  • Fix counting cached queries in ActiveRecord::RuntimeRegistry.

    fatkodima

  • Fix merging relations with arel equality predicates with null relations.

    fatkodima

  • Fix SQLite3 schema dump for non-autoincrement integer primary keys.

    Previously, schema.rb should incorrectly restore that table with an auto incrementing
    primary key.

    Chris Hasiński

  • Fix PostgreSQL schema_search_path not being reapplied after reset! or reconnect!.

    The schema_search_path configured in database.yml is now correctly
    reapplied instead of falling back to PostgreSQL defaults.

    Tobias Egli

  • Restore the ability of enum to be foats.

    enum :rating, { low: 0.0, medium: 0.5, high: 1.0 },
    

    In Rails 8.1.0, enum values are eagerly validated, and floats weren't expected.

    Said Kaldybaev

  • Ensure batched preloaded associations accounts for klass when grouping to avoid issues with STI.

    zzak, Stjepan Hadjic

  • Fix ActiveRecord::SoleRecordExceeded#record to return the relation.

    This was the case until Rails 7.2, but starting from 8.0 it
    started mistakenly returning the model class.

    Jean Boussier

  • Improve PostgreSQLAdapter resilience to Timeout.timeout.

    Better handle asynchronous exceptions being thrown inside
    the reconnect! method.

    This may fixes some deep errors such as:

    undefined method `key?' for nil:NilClass (NoMethodError)
              if !type_map.key?(oid)
    

    Jean Boussier

  • Fix structured events for Active Record was not being emitted.

    Yuji Yaginuma

  • Fix eager_load when loading has_many assocations with composite primary keys.

    This would result in some records being loaded multiple times.

    Martin-Alexander

Action View

  • Fix file_field to join mime types with a comma when provided as Array

    file_field(:article, :image, accept: ['image/png', 'image/gif', 'image/jpeg'])
    

    Now behaves likes:

    file_field(:article, :image, accept: 'image/png,image/gif,image/jpeg')
    

    Bogdan Gusiev

  • Fix strict locals parsing to handle multiline definitions.

    Said Kaldybaev

  • Fix content_security_policy_nonce error in mailers when using content_security_policy_nonce_auto setting.

    The content_security_policy_nonce helper is provided by ActionController::ContentSecurityPolicy, and it relies on request.content_security_policy_nonce. Mailers lack both the module and the request object.

    Jarrett Lusso

Action Pack

  • Add config.action_controller.live_streaming_excluded_keys to control execution state sharing in ActionController::Live.

    When using ActionController::Live, actions are executed in a separate thread that shares
    state from the parent thread. This new configuration allows applications to opt-out specific
    state keys that should not be shared.

    This is useful when streaming inside a connected_to block, where you may want
    the streaming thread to use its own database connection context.

    # config/application.rb
    config.action_controller.live_streaming_excluded_keys = [:active_record_connected_to_stack]
    

    By default, all keys are shared.

    Eileen M. Uchitelle

  • Fix IpSpoofAttackError message to include Forwarded header content.

    Without it, the error message may be misleading.

    zzak

Active Job

  • Fix ActiveJob.perform_all_later to respect job_class.enqueue_after_transaction_commit.

    Previously, perform_all_later would enqueue all jobs immediately, even if
    they had enqueue_after_transaction_commit = true. Now it correctly defers
    jobs with this setting until after transaction commits, matching the behavior
    of perform_later.

    OuYangJinTing

  • Fix using custom serializers with ActiveJob::Arguments.serialize when
    ActiveJob::Base hasn't been loaded.

    Hartley McGuire

Action Mailer

  • No changes.

Action Cable

  • No changes.

Active Storage

  • Restore ADC when signing URLs with IAM for GCS

    ADC was previously used for automatic authorization when signing URLs with IAM.
    Now it is again, but the auth client is memoized so that new credentials are only
    requested when the current ones expire. Other auth methods can now be used
    instead by setting the authorization on ActiveStorage::Service::GCSService#iam_client.

    ActiveStorage::Blob.service.iam_client.authorization = Google::Auth::ImpersonatedServiceAccountCredentials.new(options)
    

    This is safer than setting Google::Apis::RequestOptions.default.authorization
    because it only applies to Active Storage and does not affect other Google API
    clients.

    Justin Malčić

Action Mailbox

  • No changes.

Action Text

  • No changes.

Railties

  • Skip all system test files on app generation.

    Eileen M. Uchitelle

  • Fix db:system:change to correctly update Dockerfile base packages.

    Josiah Smith

  • Fix devcontainer volume mount when app name differs from folder name.

    Rafael Mendonça França

  • Fixed the rails notes command to properly extract notes in CSS files.

    David White

  • Fixed the default Dockerfile to properly include the vendor/ directory during bundle install.

    Zhong Sheng

Guides

  • No changes.

Configuration

📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.

Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.

🔕 Ignore: Close this PR and you won't be reminded about this update again.


  • If you want to rebase/retry this PR, check this box

This PR has been generated by Renovate Bot.

This PR contains the following updates: | Package | Change | [Age](https://docs.renovatebot.com/merge-confidence/) | [Adoption](https://docs.renovatebot.com/merge-confidence/) | [Passing](https://docs.renovatebot.com/merge-confidence/) | [Confidence](https://docs.renovatebot.com/merge-confidence/) | |---|---|---|---|---|---| | [rails](https://rubyonrails.org) ([source](https://github.com/rails/rails), [changelog](https://github.com/rails/rails/releases/tag/v8.1.2)) | `8.1.1` → `8.1.2` | ![age](https://developer.mend.io/api/mc/badges/age/rubygems/rails/8.1.2?slim=true) | ![adoption](https://developer.mend.io/api/mc/badges/adoption/rubygems/rails/8.1.2?slim=true) | ![passing](https://developer.mend.io/api/mc/badges/compatibility/rubygems/rails/8.1.1/8.1.2?slim=true) | ![confidence](https://developer.mend.io/api/mc/badges/confidence/rubygems/rails/8.1.1/8.1.2?slim=true) | --- ### Release Notes <details> <summary>rails/rails (rails)</summary> ### [`v8.1.2`](https://github.com/rails/rails/releases/tag/v8.1.2): 8.1.2 [Compare Source](https://github.com/rails/rails/compare/v8.1.1...v8.1.2) #### Active Support - Make `delegate` and `delegate_missing_to` work in BasicObject subclasses. *Rafael Mendonça França* - Fix Inflectors when using a locale that fallbacks to `:en`. *Said Kaldybaev* - Fix `ActiveSupport::TimeWithZone#as_json` to consistently return UTF-8 strings. Previously the returned string would sometime be encoded in US-ASCII, which in some cases may be problematic. Now the method consistently always return UTF-8 strings. *Jean Boussier* - Fix `TimeWithZone#xmlschema` when wrapping a `DateTime` instance in local time. Previously it would return an invalid time. *Dmytro Rymar* - Implement LocalCache strategy on `ActiveSupport::Cache::MemoryStore`. The memory store needs to respond to the same interface as other cache stores (e.g. `ActiveSupport::NullStore`). *Mikey Gough* - Fix `ActiveSupport::Inflector.humanize` with international characters. ```ruby ActiveSupport::Inflector.humanize("áÉÍÓÚ") # => "Áéíóú" ActiveSupport::Inflector.humanize("аБВГДЕ") # => "Абвгде" ``` *Jose Luis Duran* #### Active Model - No changes. #### Active Record - Fix counting cached queries in `ActiveRecord::RuntimeRegistry`. *fatkodima* - Fix merging relations with arel equality predicates with null relations. *fatkodima* - Fix SQLite3 schema dump for non-autoincrement integer primary keys. Previously, `schema.rb` should incorrectly restore that table with an auto incrementing primary key. *Chris Hasiński* - Fix PostgreSQL `schema_search_path` not being reapplied after `reset!` or `reconnect!`. The `schema_search_path` configured in `database.yml` is now correctly reapplied instead of falling back to PostgreSQL defaults. *Tobias Egli* - Restore the ability of enum to be foats. ```ruby enum :rating, { low: 0.0, medium: 0.5, high: 1.0 }, ``` In Rails 8.1.0, enum values are eagerly validated, and floats weren't expected. *Said Kaldybaev* - Ensure batched preloaded associations accounts for klass when grouping to avoid issues with STI. *zzak*, *Stjepan Hadjic* - Fix `ActiveRecord::SoleRecordExceeded#record` to return the relation. This was the case until Rails 7.2, but starting from 8.0 it started mistakenly returning the model class. *Jean Boussier* - Improve PostgreSQLAdapter resilience to Timeout.timeout. Better handle asynchronous exceptions being thrown inside the `reconnect!` method. This may fixes some deep errors such as: ``` undefined method `key?' for nil:NilClass (NoMethodError) if !type_map.key?(oid) ``` *Jean Boussier* - Fix structured events for Active Record was not being emitted. *Yuji Yaginuma* - Fix `eager_load` when loading `has_many` assocations with composite primary keys. This would result in some records being loaded multiple times. *Martin-Alexander* #### Action View - Fix `file_field` to join mime types with a comma when provided as Array ```ruby file_field(:article, :image, accept: ['image/png', 'image/gif', 'image/jpeg']) ``` Now behaves likes: ``` file_field(:article, :image, accept: 'image/png,image/gif,image/jpeg') ``` *Bogdan Gusiev* - Fix strict locals parsing to handle multiline definitions. *Said Kaldybaev* - Fix `content_security_policy_nonce` error in mailers when using `content_security_policy_nonce_auto` setting. The `content_security_policy_nonce helper` is provided by `ActionController::ContentSecurityPolicy`, and it relies on `request.content_security_policy_nonc`e. Mailers lack both the module and the request object. *Jarrett Lusso* #### Action Pack - Add `config.action_controller.live_streaming_excluded_keys` to control execution state sharing in ActionController::Live. When using ActionController::Live, actions are executed in a separate thread that shares state from the parent thread. This new configuration allows applications to opt-out specific state keys that should not be shared. This is useful when streaming inside a `connected_to` block, where you may want the streaming thread to use its own database connection context. ```ruby # config/application.rb config.action_controller.live_streaming_excluded_keys = [:active_record_connected_to_stack] ``` By default, all keys are shared. *Eileen M. Uchitelle* - Fix `IpSpoofAttackError` message to include `Forwarded` header content. Without it, the error message may be misleading. *zzak* #### Active Job - Fix `ActiveJob.perform_all_later` to respect `job_class.enqueue_after_transaction_commit`. Previously, `perform_all_later` would enqueue all jobs immediately, even if they had `enqueue_after_transaction_commit = true`. Now it correctly defers jobs with this setting until after transaction commits, matching the behavior of `perform_later`. *OuYangJinTing* - Fix using custom serializers with `ActiveJob::Arguments.serialize` when `ActiveJob::Base` hasn't been loaded. *Hartley McGuire* #### Action Mailer - No changes. #### Action Cable - No changes. #### Active Storage - Restore ADC when signing URLs with IAM for GCS ADC was previously used for automatic authorization when signing URLs with IAM. Now it is again, but the auth client is memoized so that new credentials are only requested when the current ones expire. Other auth methods can now be used instead by setting the authorization on `ActiveStorage::Service::GCSService#iam_client`. ```ruby ActiveStorage::Blob.service.iam_client.authorization = Google::Auth::ImpersonatedServiceAccountCredentials.new(options) ``` This is safer than setting `Google::Apis::RequestOptions.default.authorization` because it only applies to Active Storage and does not affect other Google API clients. *Justin Malčić* #### Action Mailbox - No changes. #### Action Text - No changes. #### Railties - Skip all system test files on app generation. *Eileen M. Uchitelle* - Fix `db:system:change` to correctly update Dockerfile base packages. *Josiah Smith* - Fix devcontainer volume mount when app name differs from folder name. *Rafael Mendonça França* - Fixed the `rails notes` command to properly extract notes in CSS files. *David White* - Fixed the default Dockerfile to properly include the `vendor/` directory during `bundle install`. *Zhong Sheng* #### Guides - No changes. </details> --- ### Configuration 📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined). 🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied. ♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox. 🔕 **Ignore**: Close this PR and you won't be reminded about this update again. --- - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box --- This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate). <!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi43NC4xIiwidXBkYXRlZEluVmVyIjoiNDIuNzQuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->
Update dependency rails to v8.1.2
All checks were successful
ci/woodpecker/push/test Pipeline was successful
6bf2e60032
All checks were successful
ci/woodpecker/push/test Pipeline was successful
This pull request can be merged automatically.
You are not authorized to merge this pull request.
View command line instructions

Checkout

From your project repository, check out a new branch and test the changes.
git fetch -u origin renovate/ruby-on-rails-packages:renovate/ruby-on-rails-packages
git switch renovate/ruby-on-rails-packages

Merge

Merge the changes and update on Forgejo.

Warning: The "Autodetect manual merge" setting is not enabled for this repository, you will have to mark this pull request as manually merged afterwards.

git switch main
git merge --no-ff renovate/ruby-on-rails-packages
git switch renovate/ruby-on-rails-packages
git rebase main
git switch main
git merge --ff-only renovate/ruby-on-rails-packages
git switch renovate/ruby-on-rails-packages
git rebase main
git switch main
git merge --no-ff renovate/ruby-on-rails-packages
git switch main
git merge --squash renovate/ruby-on-rails-packages
git switch main
git merge --ff-only renovate/ruby-on-rails-packages
git switch main
git merge renovate/ruby-on-rails-packages
git push origin main
Sign in to join this conversation.
No reviewers
No labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
casper/bsky_handle_provider!55
No description provided.