gem_liux2 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gem_liux2/version.rb +1 -1
- data/lib/gem_liux2.rb +11 -10
- metadata +3 -3
data/lib/gem_liux2/version.rb
CHANGED
data/lib/gem_liux2.rb
CHANGED
@@ -1,11 +1,12 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
1
|
+
testcss_stylesheets_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'scss'))
|
2
|
+
begin
|
3
|
+
require 'compass'
|
4
|
+
Compass::Frameworks.register('testcss', :stylesheets_directory => testcss_stylesheets_path)
|
5
|
+
rescue LoadError
|
6
|
+
# compass not found, register on the Sass path via the environment.
|
7
|
+
if ENV.key? 'SASS_PATH'
|
8
|
+
ENV['SASS_PATH'] += File::PATH_SEPARATOR + true_stylesheets_path
|
9
|
+
else
|
10
|
+
ENV['SASS_PATH'] = true_stylesheets_path
|
11
|
+
end
|
10
12
|
end
|
11
|
-
GemLiux2::Inits.base_directory("scss")
|
metadata
CHANGED