The API has changed on Ruby 2.0 as it seems.