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)
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
and Dragonfly in turn having
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: