We can't find the internet
Attempting to reconnect
Something went wrong!
Hang in there while we get back on track
rails changelog
Hey there, fellow developers! We've got some exciting updates and fixes for you. Check out the latest changes below:
New feature
- Support selenium-webdriver 4.22.0 🎉: We've added support for selenium-webdriver 4.22.0, which enables Chrome DevTools Protocol (CDP) in Firefox by default. This is essential because Firefox 129 deprecates CDP. With this update, tests defining extra capabilities in Firefox and headless Firefox should now pass without a hitch.
Bugfixes
- Devcontainer settings for mysql2 gem 🐛: Fixed the
devcontainer
command to generate the correct settings for MySQL. Previously, it set an adapter name instead of the required database name, causing incorrect configurations. - FromAsCasing offenses in Dockerfile 🐳: Resolved casing errors in the Dockerfile, ensuring a smooth and error-free build process.
- ActiveRecord dirty docs 📚: Improved the documentation for ActiveRecord dirty, making it clearer and more accurate. Now, understanding and using the functionality to track changes to an object's attributes should be a breeze.
Improvements
- ActionController::Base inclusions 🚀: Made inclusions explicit instead of dynamic to enhance static analysis accuracy. This change helps tools understand the ancestors of controllers better, improving features like code completion and other editor functionalities.
- getting_started.md updates ✍️: Updated the guide by changing single quotes to double quotes for consistency. Also, modified
comments/_form.html.erb
to pass the article as a local variable rather than an instance variable, improving code efficiency and organization.
Stay tuned for more updates and keep coding! 🚀💻
Included Commits
This commit adds support for selenium-webdriver 4.22.0, which enables Chrome DevTools Protocol (CDP) in Firefox by default. This is necessary because Firefox 129 deprecates CDP, so selenium-webdriver 4.22.0 explicitly enables CDP by adding the "remote.active-protocols"=>3 parameter. The commit also includes steps to reproduce and addresses failures related to defining extra capabilities in Firefox and headless Firefox, which were causing test failures.
Additionally, the commit references the planned deprecation of CDP in Firefox and a previous pull request that added a preference to enable CDP in Firefox by default. It also mentions another pull request that added the logger gem as a runtime dependency. Overall, this commit ensures compatibility with the latest version of selenium-webdriver and addresses issues related to CDP in Firefox.
Files changed
This commit corrects the generation of Devcontainer settings for applications using the mysql2 gem. Currently, the devcontainer
command sets an adapter name instead of a database name, which is required by the DevcontainerGenerator
. This results in the devcontainer
command not generating the correct setting for MySQL. The commit fixes this issue by updating the generation process to include the correct setting for MySQL.
Overall, the changes in this commit ensure that the Devcontainer settings are correctly generated for applications using the mysql2 gem, addressing the issue where the devcontainer
command was setting the adapter name instead of the required database name. This fix allows for the proper configuration of Devcontainer settings for MySQL in Rails applications.
Files changed
This commit addresses the issue of FromAsCasing offenses that were occurring while building a Dockerfile. The changes made in this commit fix the casing errors and ensure that the Dockerfile is built correctly without any issues related to casing. This improvement will help to maintain consistency and avoid any potential errors or conflicts in the Dockerfile during the build process.
Overall, this commit focuses on resolving casing offenses in the Dockerfile to ensure smooth and error-free building process. By fixing these issues, the Dockerfile will be more reliable and consistent, leading to a more efficient and trouble-free deployment of the application.
Files changed
This commit makes the inclusions of ActionController::Base explicit instead of dynamic. This change was made to ensure that static analysis tools can accurately understand the ancestors of controllers, enabling features like completion and editor tools to work correctly. The commit replaces dynamic inclusions with a unit test to verify that the lists of included modules are synchronized, maintaining the original behavior while improving static analysis accuracy.
Files changed
This commit fixes the ActiveRecord dirty documentation, which refers to the functionality that tracks changes to an object's attributes. The changes made in this commit likely involve clarifying and improving the documentation surrounding how ActiveRecord dirty works, including how changes are tracked and how to access this information within the framework.
Overall, this commit aims to improve the clarity and accuracy of the ActiveRecord dirty documentation, making it easier for developers to understand and utilize this functionality effectively in their projects. By addressing any inconsistencies or inaccuracies in the documentation, this commit ensures that developers have access to reliable information on how to leverage ActiveRecord dirty in their applications.
Files changed
This commit updates the getting_started.md file by changing all single quotes to double quotes for consistency. Additionally, it modifies the comments/_form.html.erb
file to pass the article as a local variable instead of an instance variable. This change likely improves the efficiency and organization of the code by ensuring that the article is only accessible within the specific scope of the form. Overall, these changes aim to enhance the readability and maintainability of the codebase.