Pipeline as gems fork

A fork of pull #26, to attempt to get a passing build and clean up some issues.