DoS vulnerability in Ruby

Problem
There is a DoS vulnerability in Ruby, and consequently in Ruby on Rails, reported by Jose Fernandez

Solution
For anyone that haven’t so far looked into it there are some links to resolve the problem:

Ruby site

The link below also includes an example script (example.rb) to see if your version of Ruby is vulnerable:
NZKoz fix