gem_liux2 0.0.8 → 0.0.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_liux2/version.rb +1 -1
  2. data/lib/gem_liux2.rb +11 -10
  3. metadata +3 -3
@@ -1,3 +1,3 @@
1
1
  module GemLiux2
2
- VERSION = "0.0.8"
2
+ VERSION = "0.0.9"
3
3
  end
data/lib/gem_liux2.rb CHANGED
@@ -1,11 +1,12 @@
1
- require "gem_liux2/version"
2
-
3
- module GemLiux2
4
- module Inits
5
- def base_directory(*subdirs)
6
- File.expand_path(File.join(File.dirname(__FILE__), '..', "..", *subdirs))
7
- end
8
- module_function :base_directory
9
- end
1
+ testcss_stylesheets_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'scss'))
2
+ begin
3
+ require 'compass'
4
+ Compass::Frameworks.register('testcss', :stylesheets_directory => testcss_stylesheets_path)
5
+ rescue LoadError
6
+ # compass not found, register on the Sass path via the environment.
7
+ if ENV.key? 'SASS_PATH'
8
+ ENV['SASS_PATH'] += File::PATH_SEPARATOR + true_stylesheets_path
9
+ else
10
+ ENV['SASS_PATH'] = true_stylesheets_path
11
+ end
10
12
  end
11
- GemLiux2::Inits.base_directory("scss")
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gem_liux2
3
3
  version: !ruby/object:Gem::Version
4
- hash: 15
4
+ hash: 13
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 8
10
- version: 0.0.8
9
+ - 9
10
+ version: 0.0.9
11
11
  platform: ruby
12
12
  authors:
13
13
  - test1