foundation-icons-sass 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/foundation_icons/sass.rb +20 -18
- data/lib/foundation_icons/sass/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e894c37c4db52b47e063764f2408f691c25d8b42
|
4
|
+
data.tar.gz: 685b667f225790d3e9297072cdfdb4026b2c048c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5412ee6e562570589d625c7255828040454277e34181203cb4f4c18a8e7895ea8c5b427dc3a2fffc75051c1e5088c2605cd4aa93024b767ad57c43e1dd0585a3
|
7
|
+
data.tar.gz: 98e931b1c2edc6e47a4e5a2c3aaac38868933d6da77d8154c169ede85e95ad8241efbfa43ccd4c2569148cc946a98588b1b2ba05ce8852a280e6262c0de42408
|
@@ -4,37 +4,39 @@ module FoundationIcons
|
|
4
4
|
module Sass
|
5
5
|
class << self
|
6
6
|
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
::Compass
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
7
|
+
def load!
|
8
|
+
if defined?(::Rails)
|
9
|
+
require 'sass-rails'
|
10
|
+
require 'foundation_icons/sass/rails/engine'
|
11
|
+
require 'foundation_icons/sass/rails/railtie'
|
12
|
+
end
|
13
|
+
|
14
|
+
if defined?(::Compass)
|
15
|
+
::Compass::Frameworks.register(
|
16
|
+
'foundation-icons',
|
17
|
+
path: gem_path,
|
18
|
+
stylesheets_directory: stylesheets_path,
|
19
|
+
templates_directory: File.join(gem_path, 'templates')
|
20
|
+
)
|
21
|
+
end
|
20
22
|
end
|
21
|
-
|
23
|
+
|
22
24
|
def gem_path
|
23
25
|
@gem_path ||= File.expand_path('../..', File.dirname(__FILE__))
|
24
26
|
end
|
25
|
-
|
27
|
+
|
26
28
|
def stylesheets_path
|
27
29
|
File.join(assets_path, 'stylesheets')
|
28
30
|
end
|
29
|
-
|
31
|
+
|
30
32
|
def fonts_path
|
31
33
|
File.join(assets_path, 'fonts')
|
32
34
|
end
|
33
|
-
|
35
|
+
|
34
36
|
def assets_path
|
35
37
|
@assets_path ||= File.join(gem_path, 'vendor', 'assets')
|
36
38
|
end
|
37
|
-
|
39
|
+
|
38
40
|
end
|
39
41
|
end
|
40
42
|
end
|