hanklords/flickraw — pull request #49 by viseztrance (2012-12-14 11:22:09+00:00)
Title: Better handling of remote files

Thanks for writing this gem.

I noticed that by default it doesn't support remote uploads (from a url), however when included in rails or any other framework making use of `open-uri` these just work.

Unfortunately when reading smaller files, the `base_uri` attribute of the `StringIO` object you send to flickr is a `URI::HTTP` object rather than string. This patch fixes this.

There's a test for it but you'll have to launch the server I included (`./test/server`) before running `rake test`. There were also some test methods out sync with the flickr api that I've fixed.