Rails 6.0 stable release: New Action Mailbox, and Action Text capabilities to support multi-database, parallel test, and is used by default Webpacker Zeitwerk

Rails 6.0 stable version has been officially released , the following direct concern to see what updates are: for handling e-mail  Action Mailbox , this article provides a rich editing functions  Action Text , support for multiple databases , support for parallel testing , default Webpacker packer as JavaScript, and the default  Zeitwerk as Ruby code loader.

Rails team said that although the stable version of the release date is later than some expected - because they spend a lot of time to check the reliability of the Rails 6, but it's already a preview version on GitHub, Shopify and Basecamp these companies and their applications production environments running for several months. In the meantime, the team did not find serious problems, so if the above companies think there is no problem, I believe Rails 6 will not have a major impact on everyone's use.

New Features

Action Mailbox

Action Mailbox received email is routed to a mailbox controller similar in, for processing in Rails. It also integrates with Amazon SES, Mailgun, Mandrill, Postmark and SendGrid entrance. We can also built-Exim, Postfix and Qmail plug directly handle incoming mail.

Action Text

Action Text  provides a rich text display and editing for Rails 6, including Trix editor, to be processed from a reference format, to an embedded image and links to all the content database, and the like. Trix editor generates rich text content stored in their own RichText model, any existing Active Record model and the application model associated. Active Storage using any image can be automatically stored (or other attachment) are embedded and included in the model and associated RichText.

Support for multiple databases

With this feature, developers can easily make a single application at the same time to connect to multiple databases. Whether you want to record certain segments to its own database to be extended or isolated, or because the performance, caught development can do this is to use a copy of the database for read / write splitting to improve.

Support for parallel testing

With this feature, developers can run large test suites have been faster to take advantage of all the core computer. Each test subject has its own database, and runs in its own thread - a core therefore does not appear to work, the other nine cases onlookers (10-core iMac Pro finally useful here).

Also note that, Rails 6 now requires Ruby 2.5.0+.

For more information, please see the announcement .

Guess you like

Origin www.oschina.net/news/109226/rails-6-0-final-release