sass 3.1.0.alpha.34 → 3.1.0.alpha.35

Sign up to get free protection for your applications and to get access to all the features.
@@ -1 +1 @@
1
- 3.1.0.alpha.34
1
+ 3.1.0.alpha.35
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.0.alpha.34
1
+ 3.1.0.alpha.35
@@ -113,7 +113,9 @@ module Sass
113
113
  return if options[:template_location].is_a?(Array)
114
114
  options[:template_location] =
115
115
  case options[:template_location]
116
- when nil; [[File.join(options[:css_location], 'sass'), options[:css_location]]]
116
+ when nil
117
+ options[:css_location] ?
118
+ [[File.join(options[:css_location], 'sass'), options[:css_location]]] : []
117
119
  when String; [[options[:template_location], options[:css_location]]]
118
120
  else; options[:template_location].to_a
119
121
  end
@@ -42,11 +42,11 @@ unless defined?(Sass::RAILS_LOADED)
42
42
  def call(template, view)
43
43
  rails_importer = Sass::Importers::Rails.new(view.lookup_context)
44
44
  engine = Sass::Engine.new(template.source,
45
- Sass::Plugin.options.merge(
45
+ Sass::Plugin.engine_options.merge(
46
46
  :syntax => @syntax,
47
47
  :filename => template.virtual_path,
48
48
  :importer => rails_importer,
49
- :load_paths => [rails_importer] + Sass::Plugin.options[:load_paths]))
49
+ :load_paths => [rails_importer] + Sass::Plugin.engine_options[:load_paths]))
50
50
 
51
51
  # We need to serialize/deserialize the importers to make sure
52
52
  # that each dependency is matched up to its proper importer
@@ -68,7 +68,7 @@ unless defined?(Sass::RAILS_LOADED)
68
68
  engine.render
69
69
  rescue Sass::SyntaxError => e
70
70
  Sass::Plugin::TemplateHandler.munge_exception e, view.lookup_context
71
- Sass::SyntaxError.exception_to_css(e, Sass::Plugin.options)
71
+ Sass::SyntaxError.exception_to_css(e, Sass::Plugin.engine_options)
72
72
  end
73
73
 
74
74
  <<RUBY
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.34
4
+ version: 3.1.0.alpha.35
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: 2010-11-19 00:00:00 -05:00
14
+ date: 2010-11-22 00:00:00 -05:00
15
15
  default_executable:
16
16
  dependencies:
17
17
  - !ruby/object:Gem::Dependency