Update s3.rb

I used it for a week and it works well. Try it if you want:)