sass 3.1.0.alpha.256 → 3.1.0.alpha.259

Sign up to get free protection for your applications and to get access to all the features.
data/REVISION CHANGED
@@ -1 +1 @@
1
- a84b376d8556cc9d0cabf7a29a491d9ff7df989c
1
+ da3152d53b6aaac3437c234a68aaaa8cb54b0de9
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.0.alpha.256
1
+ 3.1.0.alpha.259
data/lib/sass/engine.rb CHANGED
@@ -151,7 +151,7 @@ module Sass
151
151
  options[:importer] ||= options[:filesystem_importer].new(".") if options[:filename]
152
152
 
153
153
  # Tracks the original filename of the top-level Sass file
154
- options[:original_filename] = options[:original_filename] || options[:filename]
154
+ options[:original_filename] ||= options[:filename]
155
155
 
156
156
  options[:cache_store] ||= Sass::CacheStores::Chain.new(
157
157
  Sass::CacheStores::Memory.new, Sass::CacheStores::Filesystem.new(options[:cache_location]))
@@ -5,6 +5,9 @@ module Sass
5
5
  # The default importer, used for any strings found in the load path.
6
6
  # Simply loads Sass files from the filesystem using the default logic.
7
7
  class Filesystem < Base
8
+
9
+ attr_accessor :root
10
+
8
11
  # Creates a new filesystem importer that imports files relative to a given path.
9
12
  #
10
13
  # @param root [String] The root path.
@@ -112,6 +115,14 @@ module Sass
112
115
  [dirname, basename, extension]
113
116
  end
114
117
 
118
+ def hash
119
+ @root.hash
120
+ end
121
+
122
+ def eql?(other)
123
+ root.eql?(other.root)
124
+ end
125
+
115
126
  private
116
127
 
117
128
  def _find(dir, name, options)
@@ -85,8 +85,8 @@ module Sass
85
85
  # @param template_file [String] The location of the Sass or SCSS template
86
86
  # that is compiled to `css_file`.
87
87
  # @return [Boolean] Whether the stylesheet needs to be updated.
88
- def self.stylesheet_needs_update?(css_file, template_file)
89
- new(Plugin.engine_options).stylesheet_needs_update?(css_file, template_file)
88
+ def self.stylesheet_needs_update?(css_file, template_file, importer = nil)
89
+ new(Plugin.engine_options).stylesheet_needs_update?(css_file, template_file, importer)
90
90
  end
91
91
 
92
92
  # Returns whether a Sass or SCSS stylesheet has been modified since a given time.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.alpha.256
4
+ version: 3.1.0.alpha.259
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum
@@ -11,7 +11,7 @@ autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
13
 
14
- date: 2011-04-19 00:00:00 -04:00
14
+ date: 2011-04-24 00:00:00 -04:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency
@@ -256,10 +256,10 @@ files:
256
256
  - test/sass/templates/parent_ref.sass
257
257
  - test/sass/templates/scss_import.scss
258
258
  - test/sass/templates/scss_importee.scss
259
+ - test/sass/templates/units.sass
259
260
  - test/sass/templates/subdir/nested_subdir/_nested_partial.sass
260
261
  - test/sass/templates/subdir/nested_subdir/nested_subdir.sass
261
262
  - test/sass/templates/subdir/subdir.sass
262
- - test/sass/templates/units.sass
263
263
  - test/sass/templates/warn.sass
264
264
  - test/sass/templates/warn_imported.sass
265
265
  - test/sass/templates/nested_import.sass