Sha256: 8d76c488000992ad3e95182656ba3c4d7d8ed3eb9cf56e2e1a80adebc1736cf9

Contents?: true

Size: 538 Bytes

Versions: 6

Compression:

Stored size: 538 Bytes

Contents

# @api private
class ::Sass::Importers::Filesystem
  alias_method :_orig_find, :_find

  def _find(dir, name, options)
    # Find filename
    full_filename, _syntax = ::Sass::Util.destructure(find_real_file(dir, name, options))
    return nil if full_filename.nil?

    # Create dependency
    filter = options[:nanoc_current_filter]
    if filter
      item = filter.imported_filename_to_item(full_filename)
      filter.depend_on([item]) unless item.nil?
    end

    # Call original _find
    _orig_find(dir, name, options)
  end
end

Version data entries

6 entries across 6 versions & 1 rubygems

Version Path
nanoc-4.1.1 lib/nanoc/filters/sass/sass_filesystem_importer.rb
nanoc-4.1.0 lib/nanoc/filters/sass/sass_filesystem_importer.rb
nanoc-4.1.0rc2 lib/nanoc/filters/sass/sass_filesystem_importer.rb
nanoc-4.1.0rc1 lib/nanoc/filters/sass/sass_filesystem_importer.rb
nanoc-4.1.0b1 lib/nanoc/filters/sass/sass_filesystem_importer.rb
nanoc-4.1.0a1 lib/nanoc/filters/sass/sass_filesystem_importer.rb