/usr/lib/ruby/vendor_ruby/compass/import-once/activate.rb is in ruby-compass-import-once 1.0.5~dfsg-5.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 | require 'compass/import-once'
module Sass
class Engine
def self.new(*args)
instance = super
instance.extend(Compass::ImportOnce::Engine)
if i = instance.options[:importer]
i.extend(Compass::ImportOnce::Importer) unless i.is_a?(Compass::ImportOnce::Importer)
end
instance.options[:load_paths].each do |path|
if path.is_a?(Sass::Importers::Base) && !path.is_a?(Compass::ImportOnce::Importer)
path.extend(Compass::ImportOnce::Importer)
elsif !path.is_a?(Sass::Importers::Base)
Sass::Util.sass_warn "WARNING: #{path.inspect} is on the load path and is not an importer."
end
end
instance
end
end
end
|