From the snappy-ruby repo