Update gemspec to 0.31. Closes #21.