sass 3.1.0.alpha.31 → 3.1.0.alpha.32

Sign up to get free protection for your applications and to get access to all the features.
data/EDGE_GEM_VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.0.alpha.31
1
+ 3.1.0.alpha.32
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.0.alpha.31
1
+ 3.1.0.alpha.32
@@ -37,7 +37,7 @@ module Sass
37
37
  return unless template =
38
38
  find_template(uri, nil, !:partial) ||
39
39
  find_template(uri, nil, :partial)
40
- File.mtime(template.identifier).to_i
40
+ template.updated_at.to_i
41
41
  end
42
42
 
43
43
  # @see Base#to_s
@@ -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}
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.31
4
+ version: 3.1.0.alpha.32
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum