Reading Time: 2 minutes
We are glad to announce about Ruby 2.4.0 & Ruby on Rails 5.0.rc2. Let’s see what they have in a sleeve for us and what new great features you will be able to use from now on…
Rubyroid Labs Team loves releases, it is so great to see how our favorite technology grows old and develops.
Each release adds more functional and technical options we can use when developing projects. Let’s have a look, what news is waiting for us now!
Ruby 2.4.0 Release Notes
Preview1 for Ruby 2.4.0 has been released. Besides plenty performance improvements and bug fix, it includes:
- Fixnum and Bignum unification
Ruby has two visible Integer classes: Fixnum and Bignum. Now they both will be unified in Integer
- Unicode case mappings support
String/Symbol#upcase/downcase/swapcase/capitalize(!) will now support case mapping for Unicode
- Language improvement
Language has also gone through some improvements in order to avoid errors. Array#max, Array#min are now changed, so that they don’t create a temporary array. Regexp#match? was added to execute regexp match to avoid back reference object and changing $~.
Rails 5.0.rc2 Release Notes
And now let’s have a look at what Ruby on Rails release has brought about:
- Action Cable
This new framework seamlessly integrates WebSockets, which is very convenient. It allows writing features for your Rails app in the same style in real-time as well as provides full access to domain model written with Active Record or other ORM.
- Active Record Attributes API
Now you will be able to define an attribute with a type on a model. With its help you will be able to control how values are converted to/from SQL in case when they are assigned to a model
- Rails API
This is good news especially for those, who use JS-heavy apps. Rails API allows reducing the controllers as well as match set of generators, which is exactly what API type apps need.
- Turbolinks 5 and Sprockets 3 support
New versions of Turbolinks and Sprockets are supported, so that you could use brand-new features from them.
- Test Runner
As you can guess from the name, Test Runner is designed to make test better. With its help you will be able to rerun snippets, run tests by line and enjoy documentation option
These are only top features introduced. Check the complete list of commits here. And remember that from now on you should be using at least Ruby 2.2.2 version.
As you see, there are plenty interesting things in the releases. Can’t wait to try them all. And what do you think about it?