gem_liux1 0.3.4 → 0.3.5
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 +23 -12
- metadata +3 -3
data/lib/gem_liux1/version.rb
CHANGED
data/lib/gem_liux1.rb
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
module GemLiux1
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
end
|
1
|
+
# module GemLiux1
|
2
|
+
# module Init
|
3
|
+
# def base_directory(*subdirs)
|
4
|
+
# File.expand_path(File.join(File.dirname(__FILE__), "..", *subdirs))
|
5
|
+
# end
|
6
|
+
# module_function :base_directory
|
7
|
+
# end
|
8
|
+
# end
|
9
9
|
|
10
|
-
begin
|
11
|
-
|
12
|
-
|
13
|
-
end
|
10
|
+
# begin
|
11
|
+
# require "compass"
|
12
|
+
# Compass::Frameworks.register("test2345",:stylesheets_directory => GemLiux1::Init.base_directory("stylesheets"))
|
13
|
+
# end
|
14
14
|
|
15
15
|
|
16
16
|
# testall_stylesheets_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'stylesheets'))
|
@@ -25,3 +25,14 @@ end
|
|
25
25
|
# ENV["SASSPATH"] = testall_stylesheets_path
|
26
26
|
# end
|
27
27
|
# end
|
28
|
+
|
29
|
+
|
30
|
+
testall_stylesheets_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'stylesheets'))
|
31
|
+
ENV['SASS_PATH'] ||= ''
|
32
|
+
begin
|
33
|
+
require 'compass'
|
34
|
+
ENV['SASS_PATH'] = ENV['SASS_PATH'] + File::PATH_SEPARATOR + Compass.configuration.sass_load_paths.join(File::PATH_SEPARATOR)
|
35
|
+
rescue LoadError
|
36
|
+
end
|
37
|
+
# compass not found, register on the Sass path via the environment.
|
38
|
+
ENV['SASS_PATH'] += File::PATH_SEPARATOR + testall_stylesheets_path
|
metadata
CHANGED