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.
- data/EDGE_GEM_VERSION +1 -1
- data/VERSION +1 -1
- data/lib/sass/plugin/configuration.rb +3 -1
- data/lib/sass/plugin/rails.rb +3 -3
- metadata +2 -2
data/EDGE_GEM_VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.0.alpha.
|
1
|
+
3.1.0.alpha.35
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.1.0.alpha.
|
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
|
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
|
data/lib/sass/plugin/rails.rb
CHANGED
@@ -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.
|
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.
|
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.
|
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.
|
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-
|
14
|
+
date: 2010-11-22 00:00:00 -05:00
|
15
15
|
default_executable:
|
16
16
|
dependencies:
|
17
17
|
- !ruby/object:Gem::Dependency
|