Sha256: 15f2b68102587991142c0ff11e0662dca2655942985e791696b19054ae755514

Contents?: true

Size: 782 Bytes

Versions: 40

Compression:

Stored size: 782 Bytes

Contents

require 'sass/plugin'

# XXX: We can remove this monkeypatch once Sass 2.2 is released.
module Sass::Plugin
  class << self
    unless method_defined?(:exact_stylesheet_needs_update?)
      def stylesheet_needs_update?(name, template_path, css_path)
        css_file = css_filename(name, css_path)
        template_file = template_filename(name, template_path)
        exact_stylesheet_needs_update?(css_file, template_file)
      end
      def exact_stylesheet_needs_update?(css_file, template_file)
        if !File.exists?(css_file)
          return true
        else
          css_mtime = File.mtime(css_file)
          File.mtime(template_file) > css_mtime ||
            dependencies(template_file).any?(&dependency_updated?(css_mtime))
        end
      end
    end
  end
end

Version data entries

40 entries across 40 versions & 5 rubygems

Version Path
alphasights-compass-0.8.12 lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb
chriseppstein-compass-0.7.0 lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb
chriseppstein-compass-0.8.0 lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb
chriseppstein-compass-0.8.1 lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb
chriseppstein-compass-0.8.10 lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb
chriseppstein-compass-0.8.11 lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb
chriseppstein-compass-0.8.12 lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb
chriseppstein-compass-0.8.13 lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb
chriseppstein-compass-0.8.14 lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb
chriseppstein-compass-0.8.15 lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb
chriseppstein-compass-0.8.16 lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb
chriseppstein-compass-0.8.17 lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb
chriseppstein-compass-0.8.2 lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb
chriseppstein-compass-0.8.3 lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb
chriseppstein-compass-0.8.4 lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb
chriseppstein-compass-0.8.5 lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb
chriseppstein-compass-0.8.6 lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb
chriseppstein-compass-0.8.7 lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb
chriseppstein-compass-0.8.8 lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb
chriseppstein-compass-0.8.9 lib/compass/sass_extensions/monkey_patches/stylesheet_updating.rb