SassyLists 2.2.0 → 2.2.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 3bc911e8854740e20b09b1b091700972ff4f048d
4
- data.tar.gz: 051110d6e5cce8ce43953e29f12e1c5922e3a949
3
+ metadata.gz: 517028d6e6e009c274b66b1025e78467ddd59045
4
+ data.tar.gz: cca96bd52567ec62d864f1f78093c7f217fff3a6
5
5
  SHA512:
6
- metadata.gz: b2baf6768c31fa2a54b5d339ccd43e9a1d0907277dc03a4a1ba265abf8d6623298699b7ab964ef1236f76a59085807613fa34871ab802202e505fef782b387cb
7
- data.tar.gz: e3ad19705d8548916c12456c1312e93496d7a1963d265fa1cf54efb7b41799aa0abc016ea9d3c5d6494d4a7d2ef561822162acc29a8f07650e03d2e391b382d1
6
+ metadata.gz: e0d5ba9d1579e6c7751c41753ef8b22dc4a6124f4e2d8366cc1e073daa44125e0ed258514c75bef632d80a0598bcfbcaad33ebfb83e000de9f86ebded255c08c
7
+ data.tar.gz: ca85f49704ffbe05778e41570060078915c9cf75c353f04d5866c7255e5d134d765476d5afb6a67f8246876b0f77da896bc4d825bc37d0c0f0d82953f8bad4ef
data/CHANGELOG.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # Changelog
2
2
 
3
+ * `2.2.1`: improving `sl-to-list()`'s performance
3
4
  * `2.2.0`:
4
5
  * adding `sl-range()`, `sl-is-single()`, `sl-has-values()`, `sl-has-multiple-values()`
5
6
  * updating `sl-sum()` and `sl-to-map()`
data/lib/SassyLists.rb CHANGED
@@ -15,7 +15,7 @@ end
15
15
  # Version is a number. If a version contains alphas, it will be created as a prerelease version
16
16
  # Date is in the form of YYYY-MM-DD
17
17
  module SassyLists
18
- VERSION = "2.2.0"
18
+ VERSION = "2.2.1"
19
19
  DATE = "2014-07-03"
20
20
  end
21
21
 
@@ -9,13 +9,7 @@
9
9
 
10
10
  @function sl-to-list($value, $separator: list-separator($value)) {
11
11
  @if type-of($value) != "list" or list-separator($value) != $separator {
12
- $new-list: if($separator == "comma", sl-comma-list(), ());
13
-
14
- @each $item in $value {
15
- $new-list: append($new-list, $item, $separator);
16
- }
17
-
18
- @return $new-list;
12
+ @return join((), $value, $separator);
19
13
  }
20
14
 
21
15
  @return $value;
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: SassyLists
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hugo Giraudel