sass-list-maps 0.9.6 → 0.9.7

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.
Files changed (4) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +1 -0
  3. data/_sass-list-maps.scss +5 -4
  4. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9ce46a31a81da5480c8851bbf97d2f27355dfec9
4
- data.tar.gz: 041ec592adb9c6db306ac6e7adf6df10f42cde24
3
+ metadata.gz: 37158a534d6628064931e501d2fb2be09332b144
4
+ data.tar.gz: 30f387311c340811d032afaf0c57e0687fb3686c
5
5
  SHA512:
6
- metadata.gz: 9cd2555c74e76a17bacfdd8bc426dc97543d295e3df25be143d056867520ea16ab5674d7adf1fca8fe95df84e044983b7e4b6ffc5fefb894a6030f34125d9cbe
7
- data.tar.gz: 4a592d308066c0f83e6c207552157e6d85ab3af9a4e38b4d62ebbeaded1252d19faea2212696ba624405629fe0a5c968a7061caa9787e302fa65f0aaa34ac7bd
6
+ metadata.gz: 8e9af13f1b084f252cd1c5ff84942145920931be9fc2e4f34fce39b2da243afd1da68117263ccf91632baeabce5e49379f2763cce1aea416ee3de5a83ad762f5
7
+ data.tar.gz: 66ce421d60a383cddcc9e2793a1d3bc39c94f9ce94b385d0f8c553a1ad1ecb0cee1d12baece11b436bb5818a5f8b8351225a0e56ea86721f962b1b965552cc8a
data/README.md CHANGED
@@ -6,6 +6,7 @@ Forward-compatible map (hash) functionality for [libsass](https://github.com/hca
6
6
 
7
7
  ###### Latest Updates
8
8
 
9
+ * 0.9.6-0.9.7 -- argument handling enhancements; bugfix due to typo
9
10
  * 0.9.5 -- now handles single-pair lists automatically. This means no more need for `list()` or `zip()` functions, which are now deprecated.
10
11
  * 0.9.3 -- <del>deprecated `list()` function in favor of native `zip()` for creating single-pair list-maps</del>
11
12
  * 0.9.2 -- improved merge performance with rewritten `set-nth()` function
data/_sass-list-maps.scss CHANGED
@@ -24,11 +24,12 @@
24
24
 
25
25
  // list-map helper functions
26
26
  // 0.9.3 -- key() and value() tentatively added as alternatives to 'tuple-' named funcs
27
+ // 0.9.6 -- added better error handling; aliased to single version of each
27
28
 
28
- @function tuple-key($tuple) { @return nth($tuple, 1); }
29
- @function tuple-value($tuple) { @return nth($tuple, 2); }
30
- @function key($tuple) { @return nth($tuple, 1); }
31
- @function value($tuple) { @return nth($tuple, 2); }
29
+ @function tuple-key($tuple) { @if length($tuple) < 1 { @return null; } @else { @return nth($tuple, 1); } }
30
+ @function tuple-value($tuple) { @if length($tuple) < 2 { @return null; } @else { @return nth($tuple, 2); } }
31
+ @function key($tuple) { @return tuple-key($tuple); }
32
+ @function value($tuple) { @return tuple-value($tuple); }
32
33
 
33
34
  // 0.9.5 -- added list-map-check()
34
35
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sass-list-maps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Lu Nelson