sassy-namespaces 0.2.0 → 0.2.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: 5f41eff1f2096c40e52cc367afc69dde0a3182a7
4
- data.tar.gz: db5f40592b98117154b18d0a040adc0892b68a37
3
+ metadata.gz: c017860295d1ea1044ab99e96fcb37fe1f37cba2
4
+ data.tar.gz: fbb9238dec8efa959cddc4508a9f675ccbd3c34f
5
5
  SHA512:
6
- metadata.gz: 8d6df393bc26fbd445369a2e07b7ed8a1abc320326233fa97e91fe2463f979b27448cb2107ef714b49df15d926b98d15051c825304758e07bf596b893933abe5
7
- data.tar.gz: 122fd23b474e789ff3ca3c077d08758e26c443ae211614df6a2f3c15a1302b52a9f5848568adc4949b3821760c6da752b388307dcf364b3f1deb17f673d05f8c
6
+ metadata.gz: 5abbf0d59edd29bbe51be1e8de61e77d7f4ed4c2ce47280163107ade920a5a2b0ff8d8fa685d44be46f1c1e06dc63960aa4dbd1ba40ef14fd2bbc6fcb8774d6a
7
+ data.tar.gz: 3de34df4e93d14a00805caf62bd00625c177e1a8dfc1ebf5ce408da042082973fe4d2ab9bc4af254a4ebf61fac0b796efa44a98defc40b0f3eaab16378e4d336
@@ -15,6 +15,6 @@ rescue LoadError
15
15
  end
16
16
 
17
17
  module SassyNamespaces
18
- VERSION = "0.2.0"
19
- DATE = "2014-07-17"
18
+ VERSION = "0.2.1"
19
+ DATE = "2014-07-29"
20
20
  end
@@ -15,15 +15,15 @@ $__sassy-namespaces: ();
15
15
  }
16
16
  @else if length($args) > 1 {
17
17
  $keys: nth($args, 1);
18
-
18
+
19
19
  @if length($keys) == 1 {
20
20
  $namespace: map-set($namespace, $args...);
21
21
  } @else {
22
22
  $namespace: map-set-deep($namespace, $args...);
23
23
  }
24
24
  }
25
-
26
- $__sassy-namespaces: map-merge($__sassy-namespaces, ($name: $namespace));
25
+
26
+ $__sassy-namespaces: map-merge($__sassy-namespaces, ($name: $namespace)) !global;
27
27
  @return $namespace;
28
28
  }
29
29
 
@@ -31,17 +31,17 @@ $__sassy-namespaces: ();
31
31
  // Returns null if key or namespace doesn't exist
32
32
  @function namespace-get($name, $args...) {
33
33
  $namespace: map-get($__sassy-namespaces, $name);
34
-
34
+
35
35
  @if not $namespace {
36
36
  @return null;
37
37
  }
38
-
38
+
39
39
  @if length($args) == 0 {
40
40
  @return $namespace;
41
41
  }
42
42
  @else if length($args) == 1 {
43
43
  $keys: nth($args, 1);
44
-
44
+
45
45
  @if length($keys) == 1 {
46
46
  @return map-get($namespace, $args...);
47
47
  } @else {
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sassy-namespaces
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Clark
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-17 00:00:00.000000000 Z
11
+ date: 2014-07-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass