Sha256: 10d70f26735a3a361cfc3004f70c0f9acf9743edb7ede408fcf597140dd9acb4

Contents?: true

Size: 644 Bytes

Versions: 14

Compression:

Stored size: 644 Bytes

Contents

module Sass
  module Importers
    class BowerImporter < Sass::Importers::Filesystem

      SUPPORTED_EXTNAMES = ["css", "scss", "sass"]

      protected

      def extensions
        super.merge('css' => :scss)
      end

      def possible_files(name)
        if name.start_with? "bower!"
          name.sub!(/^bower!/, "")

          path = File.join(@root, name)
          SUPPORTED_EXTNAMES.each do |extname|
            lookup = "#{path}.#{extname}"
            if File.exist? lookup
              return [[lookup, extensions[extname]]]
            end
          end
        else
          super
        end
      end

    end
  end
end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
half-pipe-0.3.0.beta.2 lib/sass/importers/bower_importer.rb
half-pipe-0.3.0.beta.1 lib/sass/importers/bower_importer.rb
half-pipe-0.3.0.alpha.5 lib/sass/importers/bower_importer.rb
half-pipe-0.3.0.alpha.4 lib/sass/importers/bower_importer.rb
half-pipe-0.3.0.alpha.3 lib/sass/importers/bower_importer.rb
half-pipe-0.3.0.alpha.2 lib/sass/importers/bower_importer.rb
half-pipe-0.3.0.alpha.1 lib/sass/importers/bower_importer.rb
half-pipe-0.2.4 lib/sass/importers/bower_importer.rb
half-pipe-0.2.3 lib/sass/importers/bower_importer.rb
half-pipe-0.2.2 lib/sass/importers/bower_importer.rb
half-pipe-0.2.1 lib/sass/importers/bower_importer.rb
half-pipe-0.2.0 lib/sass/importers/bower_importer.rb
half-pipe-0.1.0 lib/sass/importers/bower_importer.rb
half-pipe-0.0.1 lib/sass/importers/bower_importer.rb