Bump gem version to 0.0.40.