Allow specifying s3 endpoint.
Update ruby version: 2.1.1 -> 2.1.2