graphite-sass 0.3.0 → 0.3.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: 9c32922d22406cb400ede2f9b82606ab548c9fc0
4
- data.tar.gz: 884bcaf3375be4d9c77a1cc8bdf6d2d5f921f039
3
+ metadata.gz: 5542004c1ff4758f6c961bd661840f81cda27979
4
+ data.tar.gz: 073d7f01ba9bbc3a69026bead64e01e98e1a4389
5
5
  SHA512:
6
- metadata.gz: e56670cf705fd9ba6125313713fab6792202cf4a2482545007ed0904d8442b60b52cd0375660497bd2451973a1958f97e27810118f60e7a65f53d0fd15e95360
7
- data.tar.gz: e378dad0da0b09cc1659b95c5bc238f4acd764ddea426f1d9302d4be21384cc33fa9f2c0f60885f9da66ff0a394934f4b74f662d821349f5314dd92ac14e9407
6
+ metadata.gz: 928c68f5045b73498218ea8964fd0ecdcb0671e7e51894b5eb49f1a08aef69e83312a972a57d8edd56caf2d3b843997363a1af16418577a26df4ab607501075c
7
+ data.tar.gz: 335d0022d7767ffa4aee171107dfc51f1eaf02a815448cfbad6027601cd13f8b5e370d186925eddfca08484fe9371e83f398732a7140fa5c1feea9a08f577d30
data/lib/graphite.rb CHANGED
@@ -5,8 +5,8 @@ extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
5
5
  Compass::Frameworks.register('graphite', :path => extension_path)
6
6
 
7
7
  module Graphite
8
- VERSION = "0.3.0"
9
- DATE = "2014-08-11"
8
+ VERSION = "0.3.1"
9
+ DATE = "2014-08-13"
10
10
  end
11
11
 
12
12
  # Graphite : import fonts from font_dir into map
@@ -24,27 +24,20 @@ $graphite_chdir: ".." !global;
24
24
  // @return fetched literal | false
25
25
 
26
26
  @function graphite-map-fetch($map, $keys) {
27
- $key: nth($keys, 1);
27
+ $has-key: graphite-is-map($map) and map-has-key($map, nth($keys, 1)) and map-get($map, nth($keys, 1)) or false;
28
28
  $length: length($keys);
29
- $value: map-get($map, $key);
30
29
 
31
- @if $value != null {
32
- @if $length > 1 {
33
- $rest: ();
30
+ @if $has-key and $length > 1 {
31
+ $remainder: ();
34
32
 
35
- @for $i from 2 through $length {
36
- $rest: append($rest, nth($keys, $i))
37
- }
38
-
39
- @return graphite-map-fetch($value, $rest);
40
-
41
- } @else {
42
- @return $value;
33
+ @for $i from 2 through $length {
34
+ $remainder: append($remainder, nth($keys, $i))
43
35
  }
44
- } @else {
45
- @warn "Invalid arguments passed to function: graphite-map-fetch(#{$map}, #{$keys}). One or more of the keys do not exist.";
46
- @return false;
36
+
37
+ @return graphite-map-fetch($has-key, $remainder);
47
38
  }
39
+
40
+ @return $has-key;
48
41
  }
49
42
 
50
43
  // Import fonts from $dir
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: graphite-sass
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.0
4
+ version: 0.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ezekiel Gabrielse
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-11 00:00:00.000000000 Z
11
+ date: 2014-08-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass