Regenerate gemspec for version 2.31.0
Version bump to 2.31.0