[ruby] Update rails 7.1.2 → 7.1.3 (patch)
Here is everything you need to know about this update. Please take a good look at what changed and the test results before merging this pull request.
What changed?
✳ ️ rails (7.1.2 → 7.1.3) · Repo
Release Notes
7.1.3
Active Support
Handle nil
backtrace_locations
inActiveSupport::SyntaxErrorProxy
.Eugene Kenny
Fix
ActiveSupport::JSON.encode
to prevent duplicate keys.If the same key exist in both String and Symbol form it could
lead to the same key being emitted twice.Manish Sharma
Fix
ActiveSupport::Cache::Store#read_multi
when using a cache namespace
and local cache strategy.Mark Oleson
Fix
Time.now/DateTime.now/Date.today
to return results in a system timezone after#travel_to
.There is a bug in the current implementation of #travel_to:
it remembers a timezone of its argument, and all stubbed methods start
returning results in that remembered timezone. However, the expected
behaviour is to return results in a system timezone.Aleksei Chernenkov
Fix
:unless_exist
option forMemoryStore#write
(et al) when using a
cache namespace.S. Brent Faulkner
Fix ActiveSupport::Deprecation to handle blaming generated code.
Jean Boussier, fatkodima
Active Model
- No changes.
Active Record
Fix Migrations with versions older than 7.1 validating options given to
add_reference
.Hartley McGuire
Ensure
reload
sets correct owner for each association.Dmytro Savochkin
Fix view runtime for controllers with async queries.
fatkodima
Fix
load_async
to work with query cache.fatkodima
Fix polymorphic
belongs_to
to correctly use parent'squery_constraints
.fatkodima
Fix
Preloader
to not generate a query for already loaded association withquery_constraints
.fatkodima
Fix multi-database polymorphic preloading with equivalent table names.
When preloading polymorphic associations, if two models pointed to two
tables with the same name but located in different databases, the
preloader would only load one.Ari Summer
Fix
encrypted_attribute?
to take into account context properties passed toencrypts
.Maxime Réty
Fix
find_by
to work correctly in presence of composite primary keys.fatkodima
Fix async queries sometimes returning a raw result if they hit the query cache.
ShipPart.async_count
could return a raw integer rather than a Promise
if it found the result in the query cache.fatkodima
Fix
Relation#transaction
to not apply a default scope.The method was incorrectly setting a default scope around its block:
Post.where(published: true).transaction do Post.count # SELECT COUNT(*) FROM posts WHERE published = FALSE; endJean Boussier
Fix calling
async_pluck
on anone
relation.
Model.none.async_pluck(:id)
was returning a naked value
instead of a promise.Jean Boussier
Fix calling
load_async
on anone
relation.
Model.none.load_async
was returning a broken result.Lucas Mazza
TrilogyAdapter: ignore
host
ifsocket
parameter is set.This allows to configure a connection on a UNIX socket via DATABASE_URL:
DATABASE_URL=trilogy://does-not-matter/my_db_production?socket=/var/run/mysql.sock
Jean Boussier
Fix
has_secure_token
calls the setter method on initialize.Abeid Ahmed
Allow using
object_id
as a database column name.
It was available before rails 7.1 and may be used as a part of polymorphic relationship toobject
whereobject
can be any other database record.Mikhail Doronin
Fix
rails db:create:all
to not touch databases before they are created.fatkodima
Action View
Better handle SyntaxError in Action View.
Mario Caropreso
Fix
word_wrap
with empty string.Jonathan Hefner
Rename
ActionView::TestCase::Behavior::Content
toActionView::TestCase::Behavior::RenderedViewContent
.Make
RenderedViewContent
inherit fromString
. Make private API with:nodoc:
.Sean Doyle
Fix detection of required strict locals.
Further fix
render @collection
compatibility with strict localsJean Boussier
Action Pack
Fix including
Rails.application.routes.url_helpers
directly in an
ActiveSupport::Concern.
Jonathan Hefner
Fix system tests when using a Chrome binary that has been downloaded by
Selenium.Jonathan Hefner
Active Job
Do not trigger immediate loading of
ActiveJob::Base
when loadingActiveJob::TestHelper
.Maxime Réty
Preserve the serialized timezone when deserializing
ActiveSupport::TimeWithZone
arguments.Joshua Young
Fix ActiveJob arguments serialization to correctly serialize String subclasses having custom serializers.
fatkodima
Action Mailer
- No changes.
Action Cable
- No changes.
Active Storage
Fix N+1 query when fetching preview images for non-image assets.
Aaron Patterson & Justin Searls
Fix all Active Storage database related models to respect
ActiveRecord::Base.table_name_prefix
configuration.Chedli Bourguiba
Fix
ActiveStorage::Representations::ProxyController
not returning the proper
preview image variant for previewable files.Chedli Bourguiba
Fix
ActiveStorage::Representations::ProxyController
to proxy untracked
variants.Chedli Bourguiba
Fix direct upload forms when submit button contains nested elements.
Marc Köhlbrugge
When using the
preprocessed: true
option, avoid enqueuing transform jobs
for blobs that are not representable.Chedli Bourguiba
Process preview image variant when calling
ActiveStorage::Preview#processed
.
For example,attached_pdf.preview(:thumb).processed
will now immediately
generate the full-sized preview image and the:thumb
variant of it.
Previously, the:thumb
variant would not be generated until a further call
to e.g.processed.url
.Chedli Bourguiba and Jonathan Hefner
Prevent
ActiveRecord::StrictLoadingViolationError
when strict loading is
enabled and the variant of an Active Storage preview has already been
processed (for example, by callingActiveStorage::Preview#url
).Jonathan Hefner
Fix
preprocessed: true
option for named variants of previewable files.Nico Wenterodt
Action Mailbox
- No changes.
Action Text
- No changes.
Railties
Make sure
config.after_routes_loaded
hook runs on boot.Rafael Mendonça França
Fix
config.log_level
not being respected when using aBroadcastLogger
Édouard Chin
Fix isolated engines to take
ActiveRecord::Base.table_name_prefix
into consideration.
This will allow for engine defined models, such as inside Active Storage, to respect
Active Record table name prefix configuration.Chedli Bourguiba
The
bin/rails app:template
command will no longer add potentially unwanted
gem platforms viabundle lock --add-platform=...
commands.Jonathan Hefner
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
↗ ️ actioncable (indirect, 7.1.2 → 7.1.3) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
↗ ️ actionmailbox (indirect, 7.1.2 → 7.1.3) · Repo · Changelog
↗ ️ actionmailer (indirect, 7.1.2 → 7.1.3) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
↗ ️ actionpack (indirect, 7.1.2 → 7.1.3) · Repo · Changelog
Release Notes
7.1.3 (from changelog)
Fix including
Rails.application.routes.url_helpers
directly in anActiveSupport::Concern.
Jonathan Hefner
Fix system tests when using a Chrome binary that has been downloaded by Selenium.
Jonathan Hefner
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
↗ ️ actiontext (indirect, 7.1.2 → 7.1.3) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
↗ ️ actionview (indirect, 7.1.2 → 7.1.3) · Repo · Changelog
Release Notes
7.1.3 (from changelog)
Better handle SyntaxError in Action View.
Mario Caropreso
Fix
word_wrap
with empty string.Jonathan Hefner
Rename
ActionView::TestCase::Behavior::Content
toActionView::TestCase::Behavior::RenderedViewContent
.Make
RenderedViewContent
inherit fromString
. Make private API with:nodoc:
.Sean Doyle
Fix detection of required strict locals.
Further fix
render @collection
compatibility with strict localsJean Boussier
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
↗ ️ activejob (indirect, 7.1.2 → 7.1.3) · Repo · Changelog
Release Notes
7.1.3 (from changelog)
Do not trigger immediate loading of
ActiveJob::Base
when loadingActiveJob::TestHelper
.Maxime Réty
Preserve the serialized timezone when deserializing
ActiveSupport::TimeWithZone
arguments.Joshua Young
Fix ActiveJob arguments serialization to correctly serialize String subclasses having custom serializers.
fatkodima
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
↗ ️ activemodel (indirect, 7.1.2 → 7.1.3) · Repo · Changelog
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
↗ ️ activerecord (indirect, 7.1.2 → 7.1.3) · Repo · Changelog
Release Notes
7.1.3 (from changelog)
Fix Migrations with versions older than 7.1 validating options given to
add_reference
.Hartley McGuire
Ensure
reload
sets correct owner for each association.Dmytro Savochkin
Fix view runtime for controllers with async queries.
fatkodima
Fix
load_async
to work with query cache.fatkodima
Fix polymorphic
belongs_to
to correctly use parent'squery_constraints
.fatkodima
Fix
Preloader
to not generate a query for already loaded association withquery_constraints
.fatkodima
Fix multi-database polymorphic preloading with equivalent table names.
When preloading polymorphic associations, if two models pointed to two tables with the same name but located in different databases, the preloader would only load one.
Ari Summer
Fix
encrypted_attribute?
to take into account context properties passed toencrypts
.Maxime Réty
Fix
find_by
to work correctly in presence of composite primary keys.fatkodima
Fix async queries sometimes returning a raw result if they hit the query cache.
ShipPart.async_count
could return a raw integer rather than a Promise if it found the result in the query cache.fatkodima
Fix
Relation#transaction
to not apply a default scope.The method was incorrectly setting a default scope around its block:
Post.where(published: true).transaction do Post.count # SELECT COUNT(*) FROM posts WHERE published = FALSE; endJean Boussier
Fix calling
async_pluck
on anone
relation.
Model.none.async_pluck(:id)
was returning a naked value instead of a promise.Jean Boussier
Fix calling
load_async
on anone
relation.
Model.none.load_async
was returning a broken result.Lucas Mazza
TrilogyAdapter: ignore
host
ifsocket
parameter is set.This allows to configure a connection on a UNIX socket via DATABASE_URL:
DATABASE_URL=trilogy://does-not-matter/my_db_production?socket=/var/run/mysql.sock
Jean Boussier
Fix
has_secure_token
calls the setter method on initialize.Abeid Ahmed
Allow using
object_id
as a database column name. It was available before rails 7.1 and may be used as a part of polymorphic relationship toobject
whereobject
can be any other database record.Mikhail Doronin
Fix
rails db:create:all
to not touch databases before they are created.fatkodima
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
↗ ️ activestorage (indirect, 7.1.2 → 7.1.3) · Repo · Changelog
Release Notes
7.1.3 (from changelog)
Fix N+1 query when fetching preview images for non-image assets.
Aaron Patterson & Justin Searls
Fix all Active Storage database related models to respect
ActiveRecord::Base.table_name_prefix
configuration.Chedli Bourguiba
Fix
ActiveStorage::Representations::ProxyController
not returning the proper preview image variant for previewable files.Chedli Bourguiba
Fix
ActiveStorage::Representations::ProxyController
to proxy untracked variants.Chedli Bourguiba
Fix direct upload forms when submit button contains nested elements.
Marc Köhlbrugge
When using the
preprocessed: true
option, avoid enqueuing transform jobs for blobs that are not representable.Chedli Bourguiba
Process preview image variant when calling
ActiveStorage::Preview#processed
. For example,attached_pdf.preview(:thumb).processed
will now immediately generate the full-sized preview image and the:thumb
variant of it. Previously, the:thumb
variant would not be generated until a further call to e.g.processed.url
.Chedli Bourguiba and Jonathan Hefner
Prevent
ActiveRecord::StrictLoadingViolationError
when strict loading is enabled and the variant of an Active Storage preview has already been processed (for example, by callingActiveStorage::Preview#url
).Jonathan Hefner
Fix
preprocessed: true
option for named variants of previewable files.Nico Wenterodt
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
↗ ️ activesupport (indirect, 7.1.2 → 7.1.3) · Repo · Changelog
Release Notes
7.1.3 (from changelog)
Handle nil
backtrace_locations
inActiveSupport::SyntaxErrorProxy
.Eugene Kenny
Fix
ActiveSupport::JSON.encode
to prevent duplicate keys.If the same key exist in both String and Symbol form it could lead to the same key being emitted twice.
Manish Sharma
Fix
ActiveSupport::Cache::Store#read_multi
when using a cache namespace and local cache strategy.Mark Oleson
Fix
Time.now/DateTime.now/Date.today
to return results in a system timezone after#travel_to
.There is a bug in the current implementation of #travel_to: it remembers a timezone of its argument, and all stubbed methods start returning results in that remembered timezone. However, the expected behaviour is to return results in a system timezone.
Aleksei Chernenkov
Fix
:unless_exist
option forMemoryStore#write
(et al) when using a cache namespace.S. Brent Faulkner
Fix ActiveSupport::Deprecation to handle blaming generated code.
Jean Boussier, fatkodima
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
↗ ️ bigdecimal (indirect, 3.1.5 → 3.1.6) · Repo · Changelog
Release Notes
3.1.6
What's Changed
- Correctly computing loop iterations in
BigDecimal#sqrt
by @z2-2z in #280- Workaround for test-bundled-gems at ruby/ruby repo by @hsbt in #283
- Add LICENSE file to gem files by @oleksii-leonov in #282
- Refine test code related unsupported Ruby version by @hsbt in #284
New Contributors
- @z2-2z made their first contribution in #280
- @oleksii-leonov made their first contribution in #282
Full Changelog: v3.1.5...v3.1.6
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 14 commits:
Bump up version to 3.1.6
Merge pull request #284 from ruby/drop-2-5-related-code
Merge pull request #282 from oleksii-leonov/patch-1
Refine test code related unsupported Ruby version
Add LICENSE file to gem files
Merge pull request #283 from ruby/fix-test-bundled-gems-3-4
Don't use : for Windows platforms
BigDecimal.allocate is obsoleted too
BigDecimal() is obsoleted today. We shouldn't test it
We need to care assert_no_memory_leak too
Simplified LOAD_PATH delegation for assert_in_out_err
Support ruby/bigdecimal repository cases
Added current directory to LOAD_PATH of assert_in_out_err for test-bundled-gems at ruby/ruby
Correctly computing loop iterations in `BigDecimal#sqrt` (#280)
↗ ️ io-console (indirect, 0.7.1 → 0.7.2) · Repo
Release Notes
0.7.2
What's Changed
- Document improvements by @nobu in #62
- Bump actions/upload-artifact from 3 to 4 by @dependabot in #63
- Provide a 'Changelog' link on rubygems.org/gems/io-console by @mark-young-atg in #64
- Define IO::ConsoleMode::VERSION from console.c by @ima1zumi in #65
- More fixes for JRuby by @headius in #59
New Contributors
- @mark-young-atg made their first contribution in #64
- @ima1zumi made their first contribution in #65
Full Changelog: v0.7.1...v0.7.2
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 20 commits:
Bump up version to 0.7.2
Re-omit this kwarg check failing in CI
Cursor operations depend only on raw and syswrite
Improve stty console logic
Only warn about stty when VERBOSE
Use stty on MacOS arm64
Raise ENOTTY when not a tty
Expand strict keywords to other forms of raw
Set console to nil if stdin/out are not tty
Strict keywords on console#raw
Move IO.console def to common code
Only warn when using Linux arch is untested
`IO_CONSOLE_VERSION` is no longer a macro
Define IO::ConsoleMode::VERSION from console.c
Provide a 'Changelog' link on rubygems.org/gems/io-console
Bump actions/upload-artifact from 3 to 4
bump up to 0.7.2.dev.1
[DOC] Add missing documents
Add RDoc coverage task
Extract CSI sequence
↗ ️ minitest (indirect, 5.21.1 → 5.21.2) · Repo · Changelog
Release Notes
5.21.2 (from changelog)
1 bug fix:
Fixed bug in Minitest::Compress#compress formatting w/ nested patterns. Now recurses properly.
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 2 commits:
↗ ️ net-imap (indirect, 0.4.9 → 0.4.9.1) · Repo
Release Notes
0.4.9.1
What's Changed
New Contributors
Full Changelog: v0.4.9...v0.4.9.1
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 2 commits:
↗ ️ net-smtp (indirect, 0.4.0 → 0.4.0.1) · Repo · Changelog
Release Notes
0.4.0.1
Full Changelog: v0.4.0...v0.4.0.1
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by 2 commits:
↗ ️ railties (indirect, 7.1.2 → 7.1.3) · Repo · Changelog
Release Notes
7.1.3 (from changelog)
Make sure
config.after_routes_loaded
hook runs on boot.Rafael Mendonça França
Fix
config.log_level
not being respected when using aBroadcastLogger
Édouard Chin
Fix isolated engines to take
ActiveRecord::Base.table_name_prefix
into consideration. This will allow for engine defined models, such as inside Active Storage, to respect Active Record table name prefix configuration.Chedli Bourguiba
The
bin/rails app:template
command will no longer add potentially unwanted gem platforms viabundle lock --add-platform=...
commands.Jonathan Hefner
Does any of this look wrong? Please let us know.
Commits
See the full diff on Github. The new version differs by more commits than we can show here.
Depfu will automatically keep this PR conflict-free, as long as you don't add any commits to this branch yourself. You can also trigger a rebase manually by commenting with @depfu rebase
.
All Depfu comment commands
- @depfu rebase
- Rebases against your default branch and redoes this update
- @depfu recreate
- Recreates this PR, overwriting any edits that you've made to it
- @depfu merge
- Merges this PR once your tests are passing and conflicts are resolved
- @depfu cancel merge
- Cancels automatic merging of this PR
- @depfu close
- Closes this PR and deletes the branch
- @depfu reopen
- Restores the branch and reopens this PR (if it's closed)
- @depfu pause
- Ignores all future updates for this dependency and closes this PR
- @depfu pause [minor|major]
- Ignores all future minor/major updates for this dependency and closes this PR
- @depfu resume
- Future versions of this dependency will create PRs again (leaves this PR as is)