Bump to 3.1.2 and update the gemspec accordingly