gem_liux1 0.3.1 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module GemLiux1
2
- VERSION = "0.3.1"
2
+ VERSION = "0.3.2"
3
3
  end
data/lib/gem_liux1.rb CHANGED
@@ -13,15 +13,25 @@
13
13
  # end
14
14
 
15
15
 
16
+ # testall_stylesheets_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'stylesheets'))
17
+ # begin
18
+ # require 'compass'
19
+ # Compass::Frameworks.register('testall', :stylesheets_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
28
+
16
29
  testall_stylesheets_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'stylesheets'))
30
+ ENV['SASS_PATH'] ||= ''
17
31
  begin
18
32
  require 'compass'
19
- Compass::Frameworks.register('testall', :stylesheets_directory => testall_stylesheets_path)
33
+ ENV['SASS_PATH'] = ENV['SASS_PATH'] + File::PATH_SEPARATOR + Compass.configuration.sass_load_paths.join(File::PATH_SEPARATOR)
20
34
  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
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
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_liux1
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 1
10
- version: 0.3.1
9
+ - 2
10
+ version: 0.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - a