sass 3.1.0.alpha.31 → 3.1.0.alpha.32
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/EDGE_GEM_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/sass/importers/rails.rb +1 -1
- data/lib/sass/plugin/rails.rb +4 -1
- metadata +1 -1
data/EDGE_GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.0.alpha.
|
1
|
+
3.1.0.alpha.32
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.0.alpha.
|
1
|
+
3.1.0.alpha.32
|
data/lib/sass/importers/rails.rb
CHANGED
data/lib/sass/plugin/rails.rb
CHANGED
@@ -43,13 +43,16 @@ unless defined?(Sass::RAILS_LOADED)
|
|
43
43
|
|
44
44
|
<<RUBY
|
45
45
|
importer = Sass::Importers::Rails.new(lookup_context)
|
46
|
+
# Since we need to re-parse the template, force Rails to re-load the source.
|
47
|
+
# Once we pre-compute the dependencies, we can avoid doing this
|
48
|
+
# until we know we need to update the method.
|
49
|
+
@_template.expire!
|
46
50
|
staleness_checker = Sass::Plugin::StalenessChecker.new(
|
47
51
|
Sass::Plugin.engine_options.merge(:load_paths => [importer], :cache => false))
|
48
52
|
if staleness_checker.stylesheet_modified_since?(
|
49
53
|
#{template.virtual_path.inspect},
|
50
54
|
#{Time.now.to_i},
|
51
55
|
importer)
|
52
|
-
@_template.expire!
|
53
56
|
@_template.rerender(self)
|
54
57
|
else
|
55
58
|
#{tree.render.inspect}
|