惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 三生石上(FineUI控件)
J
Java Code Geeks
Apple Machine Learning Research
Apple Machine Learning Research
Jina AI
Jina AI
博客园_首页
C
Check Point Blog
小众软件
小众软件
博客园 - 叶小钗
Blog — PlanetScale
Blog — PlanetScale
Engineering at Meta
Engineering at Meta
美团技术团队
Martin Fowler
Martin Fowler
Vercel News
Vercel News
D
Docker
罗磊的独立博客
B
Blog RSS Feed
The Cloudflare Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
酷 壳 – CoolShell
酷 壳 – CoolShell
博客园 - 聂微东
Last Week in AI
Last Week in AI
T
Tailwind CSS Blog
雷峰网
雷峰网
博客园 - Franky

Ruby on Rails: Compress the complexity of modern web apps

Safer to_i coercion, custom to_fs formats, and more! This Week in Rails: May 16, 2026 This Week in Rails: May 8, 2026 This Week in Rails: May 1, 2026 Active Record gets better every week Great big Rails World 2026 update: CFP, Corporate Support tickets, workshops Query command for database queries and more Explicit query: and body: kwargs for integration tests and more! Speedup ActiveRecord::LogSubscriber#sql_color and more! This Week in Rails: March 27, 2026 Rails Versions 8.0.5 and 8.1.3 have been released! Rails Versions 7.2.3.1, 8.0.4.1, and 8.1.2.1 have been released! This Week in Rails: March 20, 2026 Validate URI scheme in Action Text and more This Week in Rails: March 6, 2026 Planning Center is the newest Rails Foundation Contributing member Action Text gets Markdown conversion, editor links in devcontainers, and more! BARRA seeks Rails developer Joe Agliozzo is looking for a Rails developer The rise of lighttpd as the alternative web server When longer is better and more is more Snowdevil: First e-tailer on Rails Natural selection for frameworks in Ruby vs Java Address book tutorial in Portuguese Becoming a better programmer with Rails 10 Things Every Java Programmer Should Know About Ruby Really Getting Started in Rails Off the Treadmill, Onto the Rails Rails 0.9.5: A world of fixes and tweaks Rich clients with Rails and XUL
This Week in Rails - July 28, 2023
David Heinemeier Hansson · 2023-07-28 · via Ruby on Rails: Compress the complexity of modern web apps

Friday, July 28, 2023
Posted by zzak

Hi, it’s zzak. Let’s explore this week’s changes in the Rails codebase.

Rack::Lint on Rails middleware tests
While this work is not technically user-facing, it’s important to ensure the future of Rails continues to maintain compatibility with the Rack SPEC. You can read more about the Rack 3 upgrade guide if you’re interested or maintain a library that depends on Rack.

Sort SchemaCache members when dumping it
This PR makes the results of generating the schema cache to be consistent, allowing use of the file digest for cache keys.

Add tags to audio analyzer metadata
With this change Active Storage will now provide any additional tags from the metadata when analyzing audio files. This can be useful if you need to access the encoder, for example.

Introduce “capture_emails” and “capture_broadcasts”
This PR reverts the previously unreleased behavior added to “assert_emails” and “assert_broadcasts” into these two new methods.

Make ActiveRecord’s quoted name caches thread-safe on JRuby/TruffleRuby
This commit resolves a thread-safety issue when running a Rails application on TruffleRuby. ActiveRecord’s quoted name caches are updated when building SQL queries. If two threads are building queries at the same time, they may both attempt to update the cache. This can cause two threads to see totally different cache stores, leading to multiple live caches across different threads which will consume extra memory and may be confusing to debug.

Prevent inspecting transmit data if not necessary
Currently on every call to “ActionCable::Channel::Base#transmit”, debug log message is generated that inspects the provided data object. The message is generated even if the logger’s level is above WARN. This patch makes it so the message is generated only when it can be logged.

Make all cache stores return a boolean for “#delete”
This PR makes the behavior of “Rails.cache.delete(‘key’)” consistent, so that it returns “true” if an entry exists (and “false” otherwise). Previously, the RedisCacheStore and FileStore behaved differently.

Restore behavior of “where.missing” and “where.associated” on enums
This PR fixes a regression where calling the “associated” method would result in an incorrect SQL query, leading to confusing results.

Lazily deserialize cache entries
This adds a cache optimization such that expired and version-mismatched cache entries can be detected without deserializing their values. This optimization is enabled when using cache format version >= 7.1 or a custom serializer.

Support replacing cache compressor
This PR adds support for replacing the compressor used for serialized cache entries, by specifying the “:compressor” option on “config.cache_store”. Similar to the “:coder” option to replace the serializer which are responsible for a cached value, coders are responsible for serializing the entire “ActiveSupport::Cache::Entry” instance.

You can view the whole list of changes here.
We had 20 contributors to the Rails codebase this past week!

Until next time!

Subscribe to get these updates mailed to you.