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