gem_liux1 0.2.8 → 0.2.9
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 +25 -11
- metadata +3 -3
data/lib/gem_liux1/version.rb
CHANGED
data/lib/gem_liux1.rb
CHANGED
@@ -1,13 +1,27 @@
|
|
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
|
+
# require "compass"
|
12
|
+
# Compass::Frameworks.register("test2345",:test2345_directory => GemLiux1::Init.base_directory("stylesheets"))
|
13
|
+
# end
|
14
|
+
|
15
|
+
|
16
|
+
testall_stylesheets_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'stylesheets'))
|
10
17
|
begin
|
11
|
-
|
12
|
-
|
13
|
-
|
18
|
+
require 'compass'
|
19
|
+
Compass::Frameworks.register('testall', :testall_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
|
metadata
CHANGED