qoobaa / s3

Library for accessing S3 objects and buckets, supports EU and US buckets
MIT License
258 stars 112 forks source link

"NameError: uninitialized constant REXML::Encoding::UTF_8" with ruby-1.9.3-preview1 #52

Closed nfo closed 13 years ago

nfo commented 13 years ago

Hi, I'm checking if my apps are compatible with ruby-1.9.3-preview1, and report all problems I find. Here is one for the s3 gem.

NameError: uninitialized constant REXML::Encoding::UTF_8
    ~/.rvm/gems/ruby-1.9.3-preview1/gems/s3-0.3.8/lib/s3/parser.rb:6:in `rexml_document'
    ~/.rvm/gems/ruby-1.9.3-preview1/gems/s3-0.3.8/lib/s3/parser.rb:22:in `parse_list_bucket_result'
    ~/.rvm/gems/ruby-1.9.3-preview1/gems/s3-0.3.8/lib/s3/bucket.rb:119:in `list_bucket'
    ~/.rvm/gems/ruby-1.9.3-preview1/gems/s3-0.3.8/lib/s3/objects_extension.rb:29:in `find_all'
qoobaa commented 13 years ago

Thanks for testing the gem on 1.9.3. It should be quite easy to fix, you can try to prepare a patch for that. I'll try to test it soon (I'm not 1.9.3. yet).

nfo commented 13 years ago

Fixed in pull request #53