Fix and validate ruby examples in API documentation (#587)
Merge review 371 by @wmrowan @al3xandru (Close #587)
Merge branch 'next' into sam_457_sans_libcxx
Merge branch 'sam_457_sans_libcxx' of github.com:rethinkdb/rethinkdb into sam_457_sans_libcxx