Update dependency rails to '~> 5.2.0' (main) - autoclosed #26
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
'~> 5.0.1'->'~> 5.2.0'By merging this PR, the issue #5 will be automatically resolved and closed:
Release Notes
rails/rails (rails)
v5.2.4.5: 5.2.4.5Compare Source
Active Support
Active Model
Active Record
Fix possible DoS vector in PostgreSQL money type
Carefully crafted input can cause a DoS via the regular expressions used
for validating the money format in the PostgreSQL adapter. This patch
fixes the regexp.
Thanks to @dee-see from Hackerone for this patch!
[CVE-2021-22880]
Aaron Patterson
Action View
Action Pack
Active Job
Action Mailer
Action Cable
Active Storage
Railties
v5.2.4.4: 5.2.4.4Compare Source
Active Support
Active Model
Active Record
Action View
translate/thelperAction Pack
Active Job
Action Mailer
Action Cable
Active Storage
Railties
v5.2.4.3: 5.2.4.3Compare Source
Active Support
[CVE-2020-8165] Deprecate Marshal.load on raw cache read in RedisCacheStore
[CVE-2020-8165] Avoid Marshal.load on raw cache value in MemCacheStore
Active Model
Active Record
Action View
Action Pack
[CVE-2020-8166] HMAC raw CSRF token before masking it, so it cannot be used to reconstruct a per-form token
[CVE-2020-8164] Return self when calling #each, #each_pair, and #each_value instead of the raw @parameters hash
Active Job
Action Mailer
Action Cable
Active Storage
Railties
v5.2.4.2: 5.2.4.2Compare Source
Active Support
Active Model
Active Record
Action View
Fix possible XSS vector in
escape_javascripthelperCVE-2020-5267
Aaron Patterson
Action Pack
Active Job
Action Mailer
Action Cable
Active Storage
Railties
v5.2.4.1: 5.2.4.1Compare Source
Active Support
Active Model
Active Record
Action View
Action Pack
Fix possible information leak / session hijacking vulnerability.
The
ActionDispatch::Session::MemcacheStoreis still vulnerable given it requires thegem dalli to be updated as well.
CVE-2019-16782.
Active Job
Action Mailer
Action Cable
Active Storage
Railties
v5.2.4: 5.2.4Compare Source
Active Support
Make ActiveSupport::Logger Fiber-safe. Fixes #36752.
Use
Fiber.current.__id__inActiveSupport::Logger#local_level=in orderto make log level local to Ruby Fibers in addition to Threads.
Example:
Before:
After:
Alexander Varnin
Active Model
Type cast falsy boolean symbols on boolean attribute as false.
Fixes #35676.
Ryuta Kamizono
Active Record
Fix circular
autosave: truecauses invalid records to be saved.Prior to the fix, when there was a circular series of
autosave: trueassociations, the callback for a
has_manyassociation was run whileanother instance of the same callback on the same association hadn't
finished running. When control returned to the first instance of the
callback, the instance variable had changed, and subsequent associated
records weren't saved correctly. Specifically, the ID field for the
belongs_tocorresponding to thehas_manywasnil.Fixes #28080.
Larry Reid
PostgreSQL: Fix GROUP BY with ORDER BY virtual count attribute.
Fixes #36022.
Ryuta Kamizono
Fix sqlite3 collation parsing when using decimal columns.
Martin R. Schuster
Make ActiveRecord
ConnectionPool.connectionsmethod thread-safe.Fixes #36465.
Jeff Doering
Assign all attributes before calling
buildto ensure the child record is visible inbefore_addandafter_addcallbacks forhas_many :throughassociations.Fixes #33249.
Ryan H. Kerr
Action View
Allow programmatic click events to trigger Rails UJS click handlers.
Programmatic click events (eg. ones generated by
Rails.fire(link, "click")) don't specify a button. These events were being incorrectly stopped by code meant to ignore scroll wheel and right clicks introduced in #34573.Sudara Williams
Action Pack
Active Job
Action Mailer
Action Cable
Active Storage
Railties
Use original
bundlerenvironment variables during the process of generating a new rails project.Marco Costa
Allow loading seeds without ActiveJob.
Fixes #35782
Jeremy Weathers
Only force
:asyncActiveJob adapter to:inlineduring seeding.BatedUrGonnaDie
v5.2.3: 5.2.3Compare Source
Active Support
Add
ActiveSupport::HashWithIndifferentAccess#assoc.assoccan now be called with either a string or a symbol.Stefan Schüßler
Fix
String#safe_constantizethrowing aLoadErrorfor incorrectly cased constant references.Keenan Brock
Allow Range#=== and Range#cover? on Range
Range#cover?can now accept a range argument likeRange#include?andRange#===.Range#===works correctly on Ruby 2.6.Range#include?is movedinto a new file, with these two methods.
utilum
If the same block is
includedmultiple times for a Concern, an exception is no longer raised.Mark J. Titorenko, Vlad Bokov
Active Model
Fix date value when casting a multiparameter date hash to not convert
from Gregorian date to Julian date.
Before:
After:
Fixes #28521.
Sayan Chakraborty
Fix numericality equality validation of
BigDecimalandFloatby casting to
BigDecimalon both ends of the validation.Gannon McGibbon
Active Record
Fix different
countcalculation when usingsizewith manualselectwith DISTINCT.Fixes #35214.
Juani Villarejo
Fix prepared statements caching to be enabled even when query caching is enabled.
Ryuta Kamizono
Don't allow
wherewith invalid value matches to nil values.Fixes #33624.
Ryuta Kamizono
Restore an ability that class level
updatewithout giving ids.Fixes #34743.
Ryuta Kamizono
Fix join table column quoting with SQLite.
Gannon McGibbon
Ensure that
delete_allon collection proxy returns affected count.Ryuta Kamizono
Reset scope after delete on collection association to clear stale offsets of removed records.
Gannon McGibbon
Action View
Prevent non-primary mouse keys from triggering Rails UJS click handlers.
Firefox fires click events even if the click was triggered by non-primary mouse keys such as right- or scroll-wheel-clicks.
For example, right-clicking a link such as the one described below (with an underlying ajax request registered on click) should not cause that request to occur.
Fixes #34541
Wolfgang Hobmaier
Action Pack
Allow using combine the Cache Control
publicandno-cacheheaders.Before this change, even if
publicwas specified for Cache Control header,it was excluded when
no-cachewas included. This fixed to keeppublicheader as is.
Fixes #34780.
Yuji Yaginuma
Allow
nilparams forActionController::TestCase.Ryo Nakamura
Active Job
Action Mailer
Action Cable
Active Storage
Railties
Seed database with inline ActiveJob job adapter.
Gannon McGibbon
Fix boolean interaction in scaffold system tests.
Gannon McGibbon
v5.2.2.1Compare Source
v5.2.2: 5.2.2Compare Source
Active Support
Fix bug where
#to_optionsforActiveSupport::HashWithIndifferentAccesswould not act as alias for
#symbolize_keys.Nick Weiland
Improve the logic that detects non-autoloaded constants.
Jan Habermann, Xavier Noria
Fix bug where
URI.unescapewould fail with mixed Unicode/escaped character input:Ashe Connor, Aaron Patterson
Active Model
Fix numericality validator to still use value before type cast except Active Record.
Fixes #33651, #33686.
Ryuta Kamizono
Active Record
Do not ignore the scoping with query methods in the scope block.
Ryuta Kamizono
Allow aliased attributes to be used in
#update_columnsand#update.Gannon McGibbon
Allow spaces in postgres table names.
Fixes issue where "user post" is misinterpreted as ""user"."post"" when quoting table names with the postgres
adapter.
Gannon McGibbon
Cached columns_hash fields should be excluded from ResultSet#column_types
PR #34528 addresses the inconsistent behaviour when attribute is defined for an ignored column. The following test
was passing for SQLite and MySQL, but failed for PostgreSQL:
Dmitry Tsepelev
Values of enum are frozen, raising an error when attempting to modify them.
Emmanuel Byrd
update_columnsnow correctly raisesActiveModel::MissingAttributeErrorif the attribute does not exist.
Sean Griffin
Do not use prepared statement in queries that have a large number of binds.
Ryuta Kamizono
Fix query cache to load before first request.
Eileen M. Uchitelle
Fix collection cache key with limit and custom select to avoid ambiguous timestamp column error.
Fixes #33056.
Federico Martinez
Fix duplicated record creation when using nested attributes with
create_with.Darwin Wu
Fix regression setting children record in parent
before_savecallback.Guo Xiang Tan
Prevent leaking of user's DB credentials on
rails db:createfailure.bogdanvlviv
Clear mutation tracker before continuing the around callbacks.
Yuya Tanaka
Prevent deadlocks when waiting for connection from pool.
Brent Wheeldon
Avoid extra scoping when using
Relation#updatethat was causing this method to change the current scope.Ryuta Kamizono
Fix numericality validator not to be affected by custom getter.
Ryuta Kamizono
Fix bulk change table ignores comment option on PostgreSQL.
Yoshiyuki Kinjo
Action View
Action Pack
Reset Capybara sessions if failed system test screenshot raising an exception.
Reset Capybara sessions if
take_failed_screenshotraise exceptionin system test
after_teardown.Maxim Perepelitsa
Use request object for context if there's no controller
There is no controller instance when using a redirect route or a
mounted rack application so pass the request object as the context
when resolving dynamic CSP sources in this scenario.
Fixes #34200.
Andrew White
Apply mapping to symbols returned from dynamic CSP sources
Previously if a dynamic source returned a symbol such as :self it
would be converted to a string implicity, e.g:
would generate the header:
and now it generates:
Andrew White
Fix
rails routes -cfor controller name consists of multiple word.Yoshiyuki Kinjo
Call the
#redirect_toblock in controller context.Steven Peckins
Active Job
Make sure
assert_enqueued_with()&assert_performed_with()work reliably with hash arguments.Sharang Dashputre
Restore
ActionController::Parameterssupport toActiveJob::Arguments.serialize.Bernie Chiu
Restore
HashWithIndifferentAccesssupport toActiveJob::Arguments.deserialize.Gannon McGibbon
Include deserialized arguments in job instances returned from
assert_enqueued_withandassert_performed_withAlan Wu
Increment execution count before deserialize arguments.
Currently, the execution count increments after deserializes arguments.
Therefore, if an error occurs with deserialize, it retries indefinitely.
Yuji Yaginuma
Action Mailer
Action Cable
Active Storage
Support multiple submit buttons in Active Storage forms.
Chrıs Seelus
Fix
ArgumentErrorwhen uploading to amazon s3Hiroki Sanpei
Add a foreign-key constraint to the
active_storage_attachmentstable for blobs.George Claghorn
Discard
ActiveStorage::PurgeJobsfor missing blobs.George Claghorn
Fix uploading Tempfiles to Azure Storage.
George Claghorn
Railties
Disable content security policy for mailer previews.
Dylan Reile
Log the remote IP address of clients behind a proxy.
Atul Bhosale
v5.2.1.1Compare Source
v5.2.1Compare Source
v5.2.0Compare Source
v5.1.7: 5.1.7Compare Source
Active Support
Active Model
Active Record
Fix
touchoption to behave consistently withPersistence#touchmethod.Ryuta Kamizono
Back port Rails 5.2
reverse_orderArel SQL literal fix.Matt Jones, Brooke Kuhlmann
becomesshould clear the mutation tracker which is created inafter_initialize.Fixes #32867.
Ryuta Kamizono
Action View
Fix issue with
button_to'sto_form_paramsbutton_towas throwing exception when invoked withparamshash thatcontains symbol and string keys. The reason for the exception was that
to_form_paramswas comparing the given symbol and string keys.The issue is fixed by turning all keys to strings inside
to_form_paramsbefore comparing them.Georgi Georgiev
Action Pack
Active Job
Action Mailer
Action Cable
Railties
v5.1.6.2Compare Source
v5.1.6.1Compare Source
v5.1.6Compare Source
v5.1.5Compare Source
v5.1.4Compare Source
v5.1.3Compare Source
v5.1.2Compare Source
v5.1.1Compare Source
v5.1.0Compare Source
v5.0.7.2Compare Source
v5.0.7.1Compare Source
v5.0.7Compare Source
v5.0.6Compare Source
v5.0.5Compare Source
v5.0.4Compare Source
v5.0.3Compare Source
v5.0.2Compare Source