Refactor the build and re-write so it works with ruby gems 2.2.2
Success on 2.2.2, now to make it work with both :\
Ok. Tests pass on 1.9.3, 2.0.0 and 2.1.1.
Whoops, didn't use the build-token.
Merge pull request #2 from joshado/ruby2.2.2

Ruby 2.1.1, 2.0.0 and 1.9.3