graphite-sass 0.4.0 → 0.4.1

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: 7feafd9293145a4304f3de6ad0865ac7e5ed143e
4
- data.tar.gz: e72f6efc2524a5b44fdde6c88aff489bc370df70
3
+ metadata.gz: 5a729fce009bac9a9d3ba1958ee974348ee835a6
4
+ data.tar.gz: 0d14b138dc1fc26908ed8f6b9e98e3428c1b4895
5
5
  SHA512:
6
- metadata.gz: 03797c5789dbd0cbd863bd968ddc70f83119c1501189190bb0e8caf030f680539f57ef9d26947704d3eb082a23dd67e894ca076ff185da685f8f92e75cfb680b
7
- data.tar.gz: 91d97122b8b098ba44ce0befde18523743ebfc6d331a6fd87c8470d3ec09dc7154cc8570da69597d15c5e3ead39e24fd6ee364fe6d133ddb64b15f5addbf9ef6
6
+ metadata.gz: 3ac5f2adc48891ee67ff6ca97ea6be7b1b17227f1b1f0b8f3ea4580d228d519161569e7bd96dc57287b4fbc2a67ab07eb4639e6e4c10f642028d0ea53b30364c
7
+ data.tar.gz: 2da410c5f1a43a20c22a8c818019323d61701e2c2ad3951b36fb1991130c012deb543dcd4052e96f06e2aab5d3118a0f50c1505065c7b3fed8665053003aeee2
data/lib/graphite.rb CHANGED
@@ -11,7 +11,7 @@ else
11
11
  end
12
12
 
13
13
  module Graphite
14
- VERSION = "0.4.0"
14
+ VERSION = "0.4.1"
15
15
  DATE = "2014-08-18"
16
16
  end
17
17
 
@@ -1,11 +1,21 @@
1
1
  // Filename seperator
2
2
  // ----
3
+ // @var [string] : used when rebuilding parsed filenames
4
+ // ----
3
5
  $graphite_seperator: "-" !global;
4
6
 
5
7
  // Prepend directory path
6
8
  // ----
9
+ // @var [string] : prepends string to asset path in font-face output
10
+ // ----
7
11
  $graphite_chdir: ".." !global;
8
12
 
13
+ // Relative asset paths
14
+ // ----
15
+ // @var [bool] : removes leading slash for asset path in font-face output
16
+ // ----
17
+ $graphite_relative_assets: false !global;
18
+
9
19
  // Checks if item is map
10
20
  // ----
11
21
  // @param $n [literal] : item
@@ -81,6 +91,10 @@ $graphite_chdir: ".." !global;
81
91
  @if $k == "path" {
82
92
  // Define path to font directory
83
93
  $path: $graphite_chdir + $path + "/" + $v;
94
+
95
+ @if $graphite_relative_assets {
96
+ $path: str-slice($path, 2, str-length($path));
97
+ }
84
98
  }
85
99
 
86
100
  // List of extensions found
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.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse