Ruby on Rails is gearing up for its next big release. In the meantime, developers can check out the “highlight reel” of Rails 5.1.0 beta1, which cleans up deprecated code and includes major improvements to the ergonomics of Rails.
This version follows the release of Rails 5.0, which came out about eight months ago. The team has made great strides since then, according to David Heinemeier Hansson
(Related: TypeScript is getting attention in the enterprise)
“Everything you depend on via Yarn is then made available to be required in the asset pipeline, just like vendored dependencies would have been. Just use the binstub bin/yarn to add dependencies,” wrote Heinemeier Hansson.
Rails also has a solution for complete system tests for Ruby called Capybara, and now developers have a wrapping of Capybara that’s preconfigured for Chrome. It’s enhanced to provide failure screenshots as part of Action Dispatch, according to Heinemeier Hansson. Developers won’t have to worry about extra database cleanup strategies anymore either, and the “baked-in transactional tests now roll back system test changes,” he wrote.
Also included in Rails 5.1 is encrypted secrets management. Encrypted secrets was inspired by developer Ara T. Howard’s sekrets: a command-line tool and library used to manage encrypted files and settings into Rails’ applications and repositories. Encrypted secrets allows developers to set up new encrypted secret files, which will generate a master key to store outside of the repository.
Rails is looking for developers to test this beta version. Basecamp 3 is already running in production in this beta, and while this is an incremental upgrade to Rails 5.0, it comes with hundreds of fixes and improvements across all of the frameworks, wrote Heinemeier Hansson.