gem_liux1 0.3.2 → 0.3.3
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 +12 -22
- metadata +3 -3
data/lib/gem_liux1/version.rb
CHANGED
data/lib/gem_liux1.rb
CHANGED
@@ -1,16 +1,16 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
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
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
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,13 +25,3 @@
|
|
25
25
|
# ENV["SASSPATH"] = testall_stylesheets_path
|
26
26
|
# end
|
27
27
|
# end
|
28
|
-
|
29
|
-
testall_stylesheets_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'stylesheets'))
|
30
|
-
ENV['SASS_PATH'] ||= ''
|
31
|
-
begin
|
32
|
-
require 'compass'
|
33
|
-
ENV['SASS_PATH'] = ENV['SASS_PATH'] + File::PATH_SEPARATOR + Compass.configuration.sass_load_paths.join(File::PATH_SEPARATOR)
|
34
|
-
rescue LoadError
|
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