Hey folks, JP from Gemnasium here.
We decided to try something new, and we would love to know if you find that useful. Tell us via the little chat widget at the bottom right or by sending me an email!
So, what is it? The idea is to send you regular emails (possibly a few times per month) with some notable gem updates. We only send those to people who have Ruby projects set up in Gemnasium. As you can see, we decided to publish this on our blog, too.
Without further ado, let’s go with this first edition.
Ruby on Rails 5.1.0
Ruby on Rails 5.1.0 got out a little over a week ago. What’s in it?
There’s also system tests which are a wrapper around Capybara that’s preconfigured to be used with Chrome, provide failure screenshots and has built-in database cleanup. That’s very nice because let’s face it; it can be tricky to setup.
There’s a lot more…you can read the blog post announcing it here or go on the Rails page on Gemnasium. If you’re logged in, you’ll see your project using it that could benefit an upgrade at the bottom of the page.
An important note here on security: with this new release, it means that Ruby on Rails 4.1 and prior are not supported anymore, and 4.2 is pretty much unsupported as only severe security issues will be issued to it. It’s recommended to upgrade to 5.0 or 5.1 as soon as possible.
haml 5.0.0 & 5.0.1
With the major version of Rails came a lot of gem upgrades, including this major version for haml. Support was dropped for Rails 3, it also now requires Ruby 2.0.0 or above. Just as a reminder, though, Ruby 2.0 is not supported anymore. Support for Ruby 2.1 was also dropped on April 1st.
The short version is native support for Rails 5.0 & 5.1. What does this mean? It’s now using Rails’ Executor. There were some breaking changes in the internal API and dropped support for Rails 3.2, Ruby 2.0 and 2.1.
This is a minor version of mail, but if you’ve been using it with Ruby 2.4.0, then you had a bunch of deprecation warnings. This version is much more Ruby 2.4 friendly! It also include a fix for a regression that got introduced from 2.5.4 to 2.6.x. Not sure which of your projects are using it? Make sure you’re logged in Gemnasium and go on this page to see.
Last minute note: you should consider upgrading to mail 2.6.6.rc1 instead, as it includes a security issue that was fixed a few hours ago. Details are on Gemnasium.
The latest version of Capybara includes a few bug fixes plus this:
- “threadsafe” mode that allows per-session configuration
- :type filter added to the :fillable_field selector
- Proxy methods when using RSpec for all/within that call either the Capybara::DSL or RSpec matchers depending on arguments passed
- Support for the new errors in selenium-webdriver 3.4
A lot of gems upgraded with Rails 5.1 support
Just like any new major of version of Rails, there’s a ton of gems that get upgrades to support the latest version. There’s too many to name them all, but here’s a few of them: paranoia, dotenv-rails, font-awesome-rails, has_scope, inherited_resources, authlogic, pghero and a ton more!
Some gems are launching pre-release versions that are coming before stable versions. Some of them that got releases are:
- twilio-ruby 5.0.0.rc19
- react_on_rails 8.0.0.beta1
- bundler 1.15.0.pre.3
Did you like this overview of the most notable gem updates lately?
We would love to get your feedback to improve it quickly, so it becomes another tool that makes your life easier. You can use the chat widget on this page or just shoot me an email at firstname.lastname@example.org.