graphite-sass 0.5.3 → 0.5.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/graphite/importer.rb +4 -4
- data/lib/graphite/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: 9355ceeca33a307d138d6b7870a0e06b09ee4303
|
4
|
+
data.tar.gz: 07db4279edb9cf48f3dcd7bbe0fbcf5b74c919f4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 86c8b0df659fc256acb6f26a6462ed95966c22e5346482accb506592a93d4602543119488270231f2435d2c38b0e517a7cce20b0a5b29c12a38b58d63df17e17
|
7
|
+
data.tar.gz: 1173f0dd708c2e35d2519ea93b6c2c5a9c05f9b4578ff5e00e86770576c7363264aaee6d60549890daae6f30375d8c79c97943398cdd3d321529e2b52c7850da
|
data/lib/graphite/importer.rb
CHANGED
@@ -93,10 +93,10 @@ module Graphite
|
|
93
93
|
extensions << ext unless extensions.include? ext
|
94
94
|
# Absolute path of font file
|
95
95
|
font_dir = Pathname.new(file).dirname.expand_path
|
96
|
-
# Absolute path of
|
97
|
-
|
96
|
+
# Absolute path of css file
|
97
|
+
css_dir = Pathname.new(base).dirname.expand_path
|
98
98
|
# Get relative path from Sass dir to font dir
|
99
|
-
path = "#{font_dir.relative_path_from(
|
99
|
+
path = "#{font_dir.relative_path_from(css_dir)}/#{@font_family_name}-#{style}" if path.empty?
|
100
100
|
end
|
101
101
|
end
|
102
102
|
|
@@ -118,7 +118,7 @@ module Graphite
|
|
118
118
|
end
|
119
119
|
end
|
120
120
|
else
|
121
|
-
raise ArgumentError, "Font family to import could not be found, or it's unreadable: #{@font_family_path}."
|
121
|
+
raise ArgumentError, "Font family to import could not be found, or it's unreadable: #{File.expand_path(@font_family_path)}."
|
122
122
|
end
|
123
123
|
|
124
124
|
unless @fonts.nil?
|
data/lib/graphite/version.rb
CHANGED