Oreo is a project mainly written in Ruby, it's free.
A Rails gem for reading, writing and deleting cookies using JS