gem_liux2 0.1.7 → 0.1.8
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 +6 -2
- metadata +3 -3
data/lib/gem_liux2/version.rb
CHANGED
data/lib/gem_liux2.rb
CHANGED
@@ -22,6 +22,10 @@ module GemLiux2
|
|
22
22
|
|
23
23
|
# Paths
|
24
24
|
|
25
|
+
def base_directory(*subdirs)
|
26
|
+
File.expand_path(File.join(File.dirname(__FILE__), "..", *subdirs))
|
27
|
+
end
|
28
|
+
|
25
29
|
# Environment detection helpers
|
26
30
|
|
27
31
|
def compass?
|
@@ -32,11 +36,11 @@ module GemLiux2
|
|
32
36
|
|
33
37
|
def configure_sass
|
34
38
|
require 'sass'
|
35
|
-
::Sass.load_paths <<
|
39
|
+
::Sass.load_paths << base_directory("scss")
|
36
40
|
end
|
37
41
|
|
38
42
|
def register_compass_extension
|
39
|
-
::Compass::Frameworks.register('testcss', :stylesheets_directory =>
|
43
|
+
::Compass::Frameworks.register('testcss', :stylesheets_directory => base_directory("scss"))
|
40
44
|
end
|
41
45
|
|
42
46
|
end
|
metadata
CHANGED