Fix a bug where type casting of string to Time and DateTime doesn't
calculate minus minute value in TZ offset correctly.
Akira Matsuda
Port the type_for_attribute method to Active Model. Classes that include
ActiveModel::Attributes will now provide this method. This method behaves
the same for Active Model as it does for Active Record.
This release is essentially v1.3.0, but with a properly packaged gem. There was an issue publishing v1.3.0 and that gem needed to be yanked to avoid breaking downstream projects. The v1.3.0 changelog is reproduced below.
What's Changed
Add Concurrent.usable_processor_count that is cgroups aware by @casperisfine in #1038
Align Java Executor Service behavior for shuttingdown?, shutdown? by @bensheldon in #1042
Remove deprecated support to bolding log text with positional boolean in ActiveSupport::LogSubscriber#color.
Rafael Mendonça França
Remove deprecated constants ActiveSupport::LogSubscriber::CLEAR and ActiveSupport::LogSubscriber::BOLD.
Rafael Mendonça França
Remove deprecated support for config.active_support.cache_format_version = 6.1.
Rafael Mendonça França
Remove deprecated :pool_size and :pool_timeout options for the cache storage.
Rafael Mendonça França
Warn on tests without assertions.
ActiveSupport::TestCase now warns when tests do not run any assertions.
This is helpful in detecting broken tests that do not perform intended assertions.
fatkodima
Support hexBinary type in ActiveSupport::XmlMini.
heka1024
Deprecate ActiveSupport::ProxyObject in favor of Ruby's built-in BasicObject.
Earlopain
stub_const now accepts a exists: false parameter to allow stubbing missing constants.
Jean Boussier
Make ActiveSupport::BacktraceCleaner copy filters and silencers on dup and clone.
Previously the copy would still share the internal silencers and filters array,
causing state to leak.
Jean Boussier
Updating Astana with Western Kazakhstan TZInfo identifier.
Damian Nelson
Add filename support for ActiveSupport::Logger.logger_outputs_to?.
Use logical core count instead of physical core count to determine the
default number of workers when parallelizing tests.
Jonathan Hefner
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
behavior is to return results in a system timezone.
Aleksei Chernenkov
Add ErrorReported#unexpected to report precondition violations.
For example:
defeditifpublished?Rails.error.unexpected("[BUG] Attempting to edit a published article, that shouldn't be possible")returnfalseend# ...end
The above will raise an error in development and test, but only report the error in production.
Jean Boussier
Make the order of read_multi and write_multi notifications for Cache::Store#fetch_multi operations match the order they are executed in.
Adam Renberg Tamm
Make return values of Cache::Store#write consistent.
The return value was not specified before. Now it returns true on a successful write,
nil if there was an error talking to the cache backend, and false if the write failed
for another reason (e.g. the key already exists and unless_exist: true was passed).
Sander Verdonschot
Fix logged cache keys not always matching actual key used by cache action.
Hartley McGuire
Improve error messages of assert_changes and assert_no_changes.
assert_changes error messages now display objects with .inspect to make it easier
to differentiate nil from empty strings, strings from symbols, etc.
assert_no_changes error messages now surface the actual value.
pcreux
Fix #to_fs(:human_size) to correctly work with negative numbers.
Earlopain
Fix BroadcastLogger#dup so that it duplicates the logger's broadcasts.
Andrew Novoselac
Fix issue where bootstrap.rb overwrites the level of a BroadcastLogger's broadcasts.
Andrew Novoselac
Fix compatibility with the semantic_logger gem.
The semantic_logger gem doesn't behave exactly like stdlib logger in that
SemanticLogger#level returns a Symbol while stdlib Logger#level returns an Integer.
This caused the various LogSubscriber classes in Rails to break when assigned a
SemanticLogger instance.
Jean Boussier, ojab
Fix MemoryStore to prevent race conditions when incrementing or decrementing.
Pierre Jambet
Implement HashWithIndifferentAccess#to_proc.
Previously, calling #to_proc on HashWithIndifferentAccess object used inherited #to_proc
method from the Hash class, which was not able to access values using indifferent keys.
Fix incompatibility caused by minitest-hooks & rails invading minitest internals.
Revert change from =~ to match? to allow for nil if $TERM undefined.
5.25.0 (from changelog)
2 minor enhancements:
Fixed some inefficiencies filtering and matching (mostly backtraces).
Refactored siginfo handler to reduce runtime costs. Saved ~30%!
5 bug fixes:
Added missing rdoc to get back to 100% coverage.
Cleaning up ancient code checking for defined?(Encoding) and the like.
Disambiguated some shadowed variables in minitest/compress.
Fixed an ironic bug if using string-literals AND Werror.
Improve description of test:slow task. (stomar)
5.24.1 (from changelog)
1 bug fix:
Fix the error message when an extension is invalid value. (y-yagi)
5.24.0 (from changelog)
2 minor enhancements:
Added Minitest.register_plugin.
Extended plugin system to work with modules/classes for opt-out plugins.
1 bug fix:
Removed anacronism, but allow load_plugins to exit gracefully if –disable=gems.
5.23.1 (from changelog)
1 bug fix:
Fully qualify the Queue class to avoid conflicts with other libraries. (rafaelfranca)
5.23.0 (from changelog)
3 minor enhancements:
Added -Werror to raise on any warning output. (byroot)
Added UnexpectedWarning as a failure summary type, added count to output if activated.
Added minitest/manual_plugins.rb w/ new Minitest.load method. (tenderlove)
2 bug fixes:
Allow empty_run! and reporter to display summary for empty runs. (zzak)
Make test task verbose using either rake’s -v or -t (was just -t).
5.22.3 (from changelog)
1 minor enhancement:
MASSIVE improvement of minitest’s pride plugin output: Frequencies doubled! Sine waves shifted!! Comments improved!!! Colors rotated!!!! (havenwood)
3 bug fixes:
Improved wording on Minitest::Test#parallelize_me! to clarify it goes INSIDE your test class/describe.
Minor changes to tests to pass when tests ran with extra flags (eg -p).
Support Ruby 3.4’s new error message format. (mame)
5.22.2 (from changelog)
1 bug fix:
Third time’s a charm? Remember: ‘ensure’ is almost always the wrong way to go (for results… it’s great for cleaning up).
5.22.1 (from changelog)
1 bug fix:
Don’t exit non-zero if no tests ran and no filter (aka, the test file is empty). (I’m starting to think the exit 1 thing for @tenderlove was a mistake…)
5.22.0 (from changelog)
1 minor enhancement:
Added “did you mean” output if your –name filter matches nothing. (tenderlove)
2 bug fixes:
Big cleanup of test filtering. Much prettier / more functional.
Fix situation where Assertion#location can’t find the location. (pftg)
5.21.2 (from changelog)
1 bug fix:
Fixed bug in Minitest::Compress#compress formatting w/ nested patterns. Now recurses properly.
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)
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?
✳️ activemodel (7.1.3 → 7.2.1) · Repo · Changelog
Release Notes
7.2.1 (from changelog)
7.2.0 (from changelog)
7.1.4 (from changelog)
7.1.3.4 (from changelog)
7.1.3.3 (from changelog)
7.1.3.2 (from changelog)
7.1.3.1 (from changelog)
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.
✳️ concurrent-ruby (1.2.3 → 1.3.4) · Repo · Changelog
Release Notes
1.3.4
1.3.3
1.3.2
1.3.1
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.3 → 7.2.1) · Repo · Changelog
Release Notes
7.2.0 (from changelog)
7.1.4 (from changelog)
7.1.3.4 (from changelog)
7.1.3.3 (from changelog)
7.1.3.2 (from changelog)
7.1.3.1 (from changelog)
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.8) · Repo · Changelog
Release Notes
3.1.8
3.1.7
3.1.6
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.
↗️ drb (indirect, 2.2.0 → 2.2.1) · Repo
Release Notes
2.2.1
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.
↗️ i18n (indirect, 1.14.1 → 1.14.5) · Repo · Changelog
Release Notes
1.14.5
1.14.4
1.14.3
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.
↗️ minitest (indirect, 5.21.1 → 5.25.1) · Repo · Changelog
Release Notes
5.25.1 (from changelog)
5.25.0 (from changelog)
5.24.1 (from changelog)
5.24.0 (from changelog)
5.23.1 (from changelog)
5.23.0 (from changelog)
5.22.3 (from changelog)
5.22.2 (from changelog)
5.22.1 (from changelog)
5.22.0 (from changelog)
5.21.2 (from changelog)
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.
🆕 logger (added, 1.6.0)
🆕 securerandom (added, 0.3.1)
🗑️ mutex_m (removed)
🗑️ ruby2_keywords (removed)
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