Description: point to framework below /usr/share Register system shared install location, and support direct Sass use. Author: Jonas Smedegaard Last-Update: 2017-01-22 --- a/lib/compass/blend-modes.rb +++ b/lib/compass/blend-modes.rb @@ -1,7 +1,14 @@ -require 'compass/blend-modes/version' - -module Compass - module BlendModes - Compass::Frameworks.register('blend-modes', :path => "#{File.dirname(__FILE__)}/../..") - end -end \ No newline at end of file +base_directory = File.expand_path('/usr/share/compass/frameworks/blend-modes') +stylesheets_path = File.join(base_directory, 'stylesheets') +templates_path = File.join(base_directory, 'templates') + +if (defined? Compass) + Compass::Frameworks.register( + 'blend-modes', + :path => base_directory + ) +else + ENV["SASS_PATH"] = [ENV["SASS_PATH"], stylesheets_path].compact.join(File::PATH_SEPARATOR) +end + +require 'compass/blend-modes/version' --- a/lib/compass-blend-modes.rb +++ b/lib/compass-blend-modes.rb @@ -1,2 +1 @@ -require 'compass' # Ensure Compass require 'compass/blend-modes' \ No newline at end of file --- a/compass-blend-modes.gemspec +++ b/compass-blend-modes.gemspec @@ -19,5 +19,5 @@ s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) } s.require_paths = ["lib"] - s.add_dependency("compass") + s.add_dependency('sass', ['~>3.3']) end \ No newline at end of file