markevans / dragonfly

A Ruby gem for on-the-fly processing - suitable for image uploading in Rails, Sinatra and much more!
http://markevans.github.io/dragonfly
MIT License
2.12k stars 244 forks source link

Undocumented fog requirement #104

Closed benmoss closed 13 years ago

benmoss commented 13 years ago

I was trying to install the latest version of Refinery CMS and got an error relating to not having Fog installed. Looking at the stack trace (https://gist.github.com/1052448) it comes back to Refinery having

require 'dragonfly'

and Dragonfly in turn having

require 'fog'

I know you are autoloading your modules so this doesn't actually crop up when you just use Dragonfly directly. I'm not sure if this is really an issue with Dragonfly or if it's being improperly required by Refinery, or if they just need to declare Fog as a dependency. I saw that in Paperclip the surround their require of aws-s3 like this:

begin
  require 'aws/s3'
rescue LoadError => e
  e.message << " (You may need to install the aws-s3 gem)"
  raise e
end unless defined?(AWS::S3)
benmoss commented 13 years ago

nevermind this is definitely downstream