ruby-sonos allows controlling Sonos speakers with Ruby.
