We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
rails changelog
Here's the latest and greatest from our codebase updates! 🎉 Dive in to see what’s new, what’s fixed, and what’s improved. Enjoy!
New feature
- Upgrade devcontainer to use Ruby 3.3.4: 🚀 We’ve upgraded the devcontainer to Ruby 3.3.4. This means you get all the latest bug fixes, security patches, and performance boosts. Happy coding with the newest Ruby features!
Bugfix
-
Make http_cache_forever use
immutable: true
: 🛠️ We’ve updated thehttp_cache_forever
function to useimmutable: true
. This ensures your cached data remains rock solid and unchangeable, improving reliability and consistency. No more sneaky data changes! -
Fix a typo: 📚 Corrected a typo in the actionpack/CHANGELOG.md file. "Specificied" is now "specified". This ensures our docs are accurate, especially regarding how
ETag
andLast-Modified
headers are handled. -
Guides CSS to format code tags in h2 headings: ✨ Fixed some wonky formatting for code tags in h2 headings. Now, method names in h2 headings look consistent and neat, with a font-weight of 400 and a font-size of 2rem. Your reading experience just got a whole lot better!
Improvement
-
Added usage documentation for ActiveSupport::NumberHelper: 📖 Added new documentation for ActiveSupport::NumberHelper. Now you can easily find out how to format numbers in various ways using this handy module. The commit includes the
[ci skip]
tag to skip running tests for this documentation update. -
Check If-None-Match before If-Modified-Since with strict freshness: 🔍 Updated the code to check the
If-None-Match
header before theIf-Modified-Since
header. This ensures strict freshness and prevents serving stale content. By prioritizingIf-None-Match
, we improve resource validation efficiency and reduce unnecessary data transfer.
That’s all for now, folks! Keep your eyes peeled for more updates and happy coding! 😎
Included Commits
This commit adds usage documentation for ActiveSupport::NumberHelper. The documentation provides information on how to use the NumberHelper module in the ActiveSupport library, which includes methods for formatting numbers in various ways. This documentation will help developers understand how to utilize the NumberHelper module effectively in their Ruby projects. The commit also includes the [ci skip] tag, indicating that the continuous integration system should skip running tests for this particular commit.
Files changed
This commit fixed a typo in the actionpack/CHANGELOG.md file where "specificied" was corrected to "specified" in reference to RFC 7232, Section 6. The change ensures that the ETag
header takes precedence over the Last-Modified
header when both are present, as specified by the RFC. This setting, config.action_dispatch.strict_freshness
, defaults to false
to maintain compatibility with previous versions of Rails but will be enabled as part of Rails 8.0 defaults.
Overall, this commit made a minor correction to ensure accuracy and consistency in the documentation related to the handling of ETag
and Last-Modified
headers in Rails, aligning with the specifications outlined in RFC 7232, Section 6.
Files changed
- actionpack/CHANGELOG.md
This commit addresses formatting issues with code tags within h2 headings in CSS. The developer noticed inconsistent formatting when using method names in h2 headings while reading the edge guides. They found a fix for h3 headings and applied it to h2 headings by adjusting the font-weight to 400 and the font-size to 2rem, as 2.25rem appeared too large. This change ensures a consistent and visually appealing format for code tags within h2 headings.
Files changed
This commit updates the http_cache_forever function to use immutable: true
. This change ensures that the cached data remains immutable and cannot be modified. By setting immutable: true
, the cached data will be stored in a way that prevents any changes to be made to it, improving the reliability and consistency of the cached content. This update enhances the functionality of the http_cache_forever function by enforcing immutability on the cached data, ensuring that it remains unchanged and reliable for future use.
Files changed
This commit updates the code to check the If-None-Match header before the If-Modified-Since header when determining if a resource has been modified. This change is made to ensure strict freshness and avoid serving stale content to clients. By prioritizing the If-None-Match header, the server can quickly determine if the resource has been modified based on the entity tag provided by the client, without needing to compare timestamps.
This update improves the efficiency of resource validation and helps to prevent unnecessary data transfer by only sending the resource if it has actually been modified. By checking the If-None-Match header first, the server can quickly respond with a 304 Not Modified status code if the resource has not changed, reducing the load on both the server and the network. Overall, this change enhances the performance and reliability of the server when handling conditional requests from clients.
Files changed
This commit upgrades the devcontainer to use Ruby version 3.3.4. This update likely includes bug fixes, security patches, and performance improvements that come with the latest version of Ruby. This change will allow developers working in the devcontainer to take advantage of the new features and enhancements available in Ruby 3.3.4, ensuring that their development environment is up to date and optimized for their work.