gem_liux2 0.2.4 → 0.2.6

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 +40 -40
  3. metadata +3 -3
@@ -1,3 +1,3 @@
1
1
  module GemLiux2
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.6"
3
3
  end
data/lib/gem_liux2.rb CHANGED
@@ -1,54 +1,54 @@
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 + testcss_stylesheets_path
9
- # else
10
- # ENV['SASS_PATH'] = testcss_stylesheets_path
11
- # end
12
- # 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 + testcss_stylesheets_path
9
+ else
10
+ ENV['SASS_PATH'] = testcss_stylesheets_path
11
+ end
12
+ end
13
13
 
14
14
  # testcss_stylesheets_path = File.expand_path(File.join(File.dirname(__FILE__), '..', 'scss'))
15
15
 
16
- module GemLiux2
17
- class << self
18
- # Inspired by Kaminari
19
- def load!
20
- # register_compass_extension if compass?
16
+ # module GemLiux2
17
+ # class << self
18
+ # # Inspired by Kaminari
19
+ # def load!
20
+ # register_compass_extension if compass?
21
21
 
22
- configure_sass
23
- end
22
+ # configure_sass
23
+ # end
24
24
 
25
- # Paths
25
+ # # Paths
26
26
 
27
- def base_directory(*subdirs)
28
- File.expand_path(File.join(File.dirname(__FILE__), "..", *subdirs))
29
- end
27
+ # def base_directory(*subdirs)
28
+ # File.expand_path(File.join(File.dirname(__FILE__), "..", *subdirs))
29
+ # end
30
30
 
31
- # Environment detection helpers
31
+ # # Environment detection helpers
32
32
 
33
- def compass?
34
- defined?(::Compass::Frameworks)
35
- end
33
+ # def compass?
34
+ # defined?(::Compass::Frameworks)
35
+ # end
36
36
 
37
- private
37
+ # private
38
38
 
39
- def configure_sass
40
- require 'sass'
41
- require 'sass_paths'
42
- # ::Sass.load_paths << base_directory("scss")
43
- SassPaths.append_gem_path("gem_liux2", base_directory("scss"))
44
- end
39
+ # def configure_sass
40
+ # require 'sass'
41
+ # require 'sass_paths'
42
+ # # ::Sass.load_paths << base_directory("scss")
43
+ # SassPaths.append_gem_path("gem_liux2", base_directory("scss"))
44
+ # end
45
45
 
46
- def register_compass_extension
47
- ::Compass::Frameworks.register('testcss', :stylesheets_directory => base_directory("scss"))
48
- end
46
+ # def register_compass_extension
47
+ # ::Compass::Frameworks.register('testcss', :stylesheets_directory => base_directory("scss"))
48
+ # end
49
49
 
50
- end
51
- end
50
+ # end
51
+ # end
52
52
 
53
- GemLiux2.load!
53
+ # GemLiux2.load!
54
54
 
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: 31
4
+ hash: 27
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 4
10
- version: 0.2.4
9
+ - 6
10
+ version: 0.2.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - test1