Sha256: af5b9c0fffb8a90d666bb7bd63047b73efe02c0a3094004ebf3240abc770e4e0

Contents?: true

Size: 1.03 KB

Versions: 1

Compression:

Stored size: 1.03 KB

Contents

# Copyright 2013 LinkedIn Corp. All rights reserved.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

require 'sass'

class Sass::Engine
  alias initialize_without_archive_importer initialize
  
  def initialize(template, options={})
    if options[:load_paths]
      options[:load_paths].map! do |load_path|
        next load_path unless load_path.is_a?(::String) && load_path =~ /^(.*\.(?:zip|jar))(?:!(.+))?$/
        Sass::ArchiveImporter::Importer.new($1, $2)
      end
    end

    initialize_without_archive_importer(template, options)
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
sass-archive-importer-1.0.0.beta.2 lib/sass/archive_importer/monkey_patches.rb