Rails 6.0.1 release, new features and improvements Bugfix

Rails 6.0.1 stable version has been released , which is the  6.0  series of the first maintenance release. Rails 6.0 which notable updates include: for handling e-mail  Action Mailbox , this article provides a rich editing functions  Action Text , support for multiple databases , to support parallel testing , use Webpacker JavaScript packer as the default, and the default  Zeitwerk  as Ruby code loader.

According to the project update in the release notes on GitHub, Rails 6.0.1 update is mainly on the new 6.0 features improvements, as well as repair part of the problem.

Active Support

  • ActiveSupport::SafeBuffer Support  Enumerator Methods

  • When the server returns an error "has reached the maximum number of clients", Redis cache memory fails

  • Fixed an issue unexpectedly change the value returned by the memory cache memory cache values ​​change

  • zeitwerk Support default mode converter at (inflector) support overloading:

    # config/initializers/zeitwerk.rb
    Rails.autoloaders.each do |autoloader|
      autoloader.inflector.inflect(
        "html_parser" => "HTMLParser",
        "ssl_error"   => "SSLError"
      )
    end

    In this way, we can adjust the basename of each conversion mode, without touching the global Active Support conversion rules. These converters will fallback to  String#camelize, so for not overloaded basename, the conversion will take into account existing rules.

    If you do not want to rely entirely on  String#camelize, check the automatic loading guide zeitwerkmode

  • Improvement  Range#===Range#include?and Range#cover?

  • Solaris is not in use Process#clock_gettime(CLOCK_PROCESS_CPUTIME_ID)

In addition, the version for Active Record, Action View, Action Pack, Active Storage and Railties other functions have also been improved or Bugfix.

Guess you like

Origin www.oschina.net/news/111138/rails-6-0-1-released