SassyExport 1.0.8 → 1.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/SassyExport.rb +1 -18
- metadata +1 -1
data/lib/SassyExport.rb
CHANGED
@@ -8,27 +8,10 @@ require "SassyJSON"
|
|
8
8
|
extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
|
9
9
|
Compass::Frameworks.register('SassyExport', :path => extension_path)
|
10
10
|
|
11
|
-
# Monkey Path Sass
|
12
|
-
# Adapted from: https://github.com/chriseppstein/sass-css-importer
|
13
|
-
class Sass::Engine
|
14
|
-
alias initialize_without_json_exporter initialize
|
15
|
-
|
16
|
-
def initialize(template, options={})
|
17
|
-
initialize_without_json_exporter(template, options)
|
18
|
-
|
19
|
-
json_exporter = self.options[:load_paths].find {|lp| lp.is_a?(Sass::Importers::JsonExporter) }
|
20
|
-
|
21
|
-
unless json_exporter
|
22
|
-
root = File.dirname(options[:filename] || ".")
|
23
|
-
self.options[:load_paths] << Sass::Importers::JsonExporter.new(root)
|
24
|
-
end
|
25
|
-
end
|
26
|
-
end
|
27
|
-
|
28
11
|
# Version is a number. If a version contains alphas, it will be created as a prerelease version
|
29
12
|
# Date is in the form of YYYY-MM-DD
|
30
13
|
module SassyExport
|
31
|
-
VERSION = "1.0.
|
14
|
+
VERSION = "1.0.9"
|
32
15
|
DATE = "2014-05-31"
|
33
16
|
end
|
34
17
|
|