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.
Files changed (3) hide show
  1. data/lib/gem_liux1/version.rb +1 -1
  2. data/lib/gem_liux1.rb +25 -11
  3. metadata +3 -3
@@ -1,3 +1,3 @@
1
1
  module GemLiux1
2
- VERSION = "0.2.8"
2
+ VERSION = "0.2.9"
3
3
  end
data/lib/gem_liux1.rb CHANGED
@@ -1,13 +1,27 @@
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
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
- require "compass"
12
- Compass::Frameworks.register("test2345",:test2345_directory => GemLiux1::Init.base_directory("stylesheets"))
13
- end
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
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_liux1
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 8
10
- version: 0.2.8
9
+ - 9
10
+ version: 0.2.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - a