lib/rake-pipeline-web-filters.rb does a require "rake-pipeline-web-filters/sass_compiler" and that in turn does a require "compass". Thus, simply requiring the library requires Compass, even if the user isn't using the SassCompiler at all. Some options:
force the user to require each filter individually
use autoload
move the require "compass" into the intitializer and raise a meaningful error if it's unavailable
(1) is frustrating. (2) feels icky. How would (3) work in multi-threaded environments?
lib/rake-pipeline-web-filters.rb
does arequire "rake-pipeline-web-filters/sass_compiler"
and that in turn does arequire "compass"
. Thus, simply requiring the library requires Compass, even if the user isn't using the SassCompiler at all. Some options:autoload
require "compass"
into the intitializer and raise a meaningful error if it's unavailable(1) is frustrating. (2) feels icky. How would (3) work in multi-threaded environments?