gem_liux1 0.3.1 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gem_liux1/version.rb +1 -1
- data/lib/gem_liux1.rb +18 -8
- metadata +3 -3
data/lib/gem_liux1/version.rb
CHANGED
data/lib/gem_liux1.rb
CHANGED
@@ -13,15 +13,25 @@
|
|
13
13
|
# end
|
14
14
|
|
15
15
|
|
16
|
+
# testall_stylesheets_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'stylesheets'))
|
17
|
+
# begin
|
18
|
+
# require 'compass'
|
19
|
+
# Compass::Frameworks.register('testall', :stylesheets_directory => testall_stylesheets_path)
|
20
|
+
# rescue LoadError
|
21
|
+
# # compass not found, register on the Sass path via the environment.
|
22
|
+
# if ENV.has_key?("SASSPATH")
|
23
|
+
# ENV["SASSPATH"] = ENV["SASSPATH"] + File::PATH_SEPARATOR + testall_stylesheets_path
|
24
|
+
# else
|
25
|
+
# ENV["SASSPATH"] = testall_stylesheets_path
|
26
|
+
# end
|
27
|
+
# end
|
28
|
+
|
16
29
|
testall_stylesheets_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'stylesheets'))
|
30
|
+
ENV['SASS_PATH'] ||= ''
|
17
31
|
begin
|
18
32
|
require 'compass'
|
19
|
-
|
33
|
+
ENV['SASS_PATH'] = ENV['SASS_PATH'] + File::PATH_SEPARATOR + Compass.configuration.sass_load_paths.join(File::PATH_SEPARATOR)
|
20
34
|
rescue LoadError
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
else
|
25
|
-
ENV["SASSPATH"] = testall_stylesheets_path
|
26
|
-
end
|
27
|
-
end
|
35
|
+
end
|
36
|
+
# compass not found, register on the Sass path via the environment.
|
37
|
+
ENV['SASS_PATH'] += File::PATH_SEPARATOR + testall_stylesheets_path
|
metadata
CHANGED