ruby examples for dealing with alerts

see #161