graphite-sass 0.5.3 → 0.5.4

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6079b90170f9d6648c025af5d7b77694100c22c6
4
- data.tar.gz: 5ed62de6b1beeced445b40ee9d173f51abc76c56
3
+ metadata.gz: 9355ceeca33a307d138d6b7870a0e06b09ee4303
4
+ data.tar.gz: 07db4279edb9cf48f3dcd7bbe0fbcf5b74c919f4
5
5
  SHA512:
6
- metadata.gz: 4b7f39aac2d4f61b11221da76c2710d0fec861b6c004dcc2a42c021090c5446b91049cec54a1135895cd60430b78a0f38e88422f84cd7e91ab29250e49ce7aaf
7
- data.tar.gz: 6810291c4af504d6e14b8a3a2afb9127d17d4becf040ee8de70ada0d843e6e287421a05dadb596ac4867bc0c921fdc567ed0dda7f1a2d249bbfb41dc9a9220ff
6
+ metadata.gz: 86c8b0df659fc256acb6f26a6462ed95966c22e5346482accb506592a93d4602543119488270231f2435d2c38b0e517a7cce20b0a5b29c12a38b58d63df17e17
7
+ data.tar.gz: 1173f0dd708c2e35d2519ea93b6c2c5a9c05f9b4578ff5e00e86770576c7363264aaee6d60549890daae6f30375d8c79c97943398cdd3d321529e2b52c7850da
@@ -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 sass file
97
- sass_dir = Pathname.new(base).dirname.expand_path
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(sass_dir)}/#{@font_family_name}-#{style}" if path.empty?
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?
@@ -1,3 +1,3 @@
1
1
  module Graphite
2
- VERSION = "0.5.3"
2
+ VERSION = "0.5.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphite-sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.3
4
+ version: 0.5.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse