SassyLists 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (49) hide show
  1. checksums.yaml +4 -4
  2. data/CHANGELOG.md +1 -0
  3. data/README.md +1 -1
  4. data/lib/SassyLists.rb +2 -2
  5. data/stylesheets/SassyLists/_chunk.scss +15 -13
  6. data/stylesheets/SassyLists/_comma-list.scss +7 -5
  7. data/stylesheets/SassyLists/_contain.scss +15 -11
  8. data/stylesheets/SassyLists/_count-values.scss +10 -8
  9. data/stylesheets/SassyLists/_debug.scss +22 -18
  10. data/stylesheets/SassyLists/_every.scss +12 -8
  11. data/stylesheets/SassyLists/_explode.scss +15 -13
  12. data/stylesheets/SassyLists/_first.scss +17 -14
  13. data/stylesheets/SassyLists/_flatten.scss +16 -12
  14. data/stylesheets/SassyLists/_has-multiple-values.scss +10 -8
  15. data/stylesheets/SassyLists/_has-values.scss +9 -8
  16. data/stylesheets/SassyLists/_insert-nth.scss +16 -15
  17. data/stylesheets/SassyLists/_intersection.scss +14 -12
  18. data/stylesheets/SassyLists/_is-empty.scss +14 -10
  19. data/stylesheets/SassyLists/_is-single.scss +10 -8
  20. data/stylesheets/SassyLists/_is-symmetrical.scss +16 -12
  21. data/stylesheets/SassyLists/_last-index.scss +11 -9
  22. data/stylesheets/SassyLists/_last.scss +14 -12
  23. data/stylesheets/SassyLists/_loop.scss +21 -17
  24. data/stylesheets/SassyLists/_prepend.scss +14 -12
  25. data/stylesheets/SassyLists/_purge.scss +16 -13
  26. data/stylesheets/SassyLists/_random-value.scss +22 -16
  27. data/stylesheets/SassyLists/_range.scss +14 -12
  28. data/stylesheets/SassyLists/_remove-duplicates.scss +16 -12
  29. data/stylesheets/SassyLists/_remove-nth.scss +17 -13
  30. data/stylesheets/SassyLists/_remove.scss +18 -14
  31. data/stylesheets/SassyLists/_replace-nth.scss +18 -16
  32. data/stylesheets/SassyLists/_replace.scss +16 -14
  33. data/stylesheets/SassyLists/_reverse.scss +16 -12
  34. data/stylesheets/SassyLists/_shuffle.scss +16 -12
  35. data/stylesheets/SassyLists/_slice.scss +18 -16
  36. data/stylesheets/SassyLists/_some.scss +11 -7
  37. data/stylesheets/SassyLists/_sort.scss +19 -15
  38. data/stylesheets/SassyLists/_sum.scss +16 -14
  39. data/stylesheets/SassyLists/_tail.scss +16 -12
  40. data/stylesheets/SassyLists/_to-list.scss +15 -15
  41. data/stylesheets/SassyLists/_to-map.scss +31 -24
  42. data/stylesheets/SassyLists/_to-string.scss +18 -14
  43. data/stylesheets/SassyLists/_union.scss +17 -12
  44. data/stylesheets/SassyLists/_walk.scss +17 -15
  45. data/stylesheets/SassyLists/helpers/_is-number.scss +10 -8
  46. data/stylesheets/SassyLists/helpers/_missing-dependencies.scss +10 -8
  47. data/stylesheets/SassyLists/helpers/_str-compare.scss +12 -10
  48. data/stylesheets/SassyLists/helpers/_true.scss +10 -8
  49. metadata +2 -2
@@ -1,14 +1,16 @@
1
- // Returns a list of values from `$lists` minus duplicates.
2
- //
3
- // @ignore Documentation: http://sassylists.com/documentation.html#sl-union
4
- //
5
- // @requires sl-flatten
6
- // @requires sl-remove-duplicates
7
- //
8
- // @param {ArgList} $lists - lists to unify
9
- //
10
- // @return {List}
11
-
1
+ /**
2
+ * Returns a list of values from `$lists` minus duplicates.
3
+ *
4
+ * @ignore Documentation: http://sassylists.com/documentation.html#sl-union
5
+ *
6
+ * @requires sl-flatten
7
+ * @requires sl-remove-duplicates
8
+ *
9
+ * @param {ArgList} $lists - lists to unify
10
+ *
11
+ * @return {List}
12
+ */
13
+
12
14
  @function sl-union($lists...) {
13
15
  @if sl-missing-dependencies(sl-flatten, sl-remove-duplicates) == true { @return null; }
14
16
 
@@ -17,7 +19,10 @@
17
19
  @return $result;
18
20
  }
19
21
 
20
- // @alias sl-union
22
+ /**
23
+ * @requires sl-union
24
+ * @alias sl-union
25
+ */
21
26
 
22
27
  @function sl-merge($lists...) {
23
28
  @return sl-union($lists...);
@@ -1,18 +1,20 @@
1
- // Apply `$function` to every item from `$list` passing $args as parameters.
2
- //
3
- // @ignore Documentation: http://sassylists.com/documentation.html#sl-walk
4
- //
5
- // @param {List} $list - list to update
6
- // @param {String} $function - function to call on each value
7
- // @param {ArgList} $args - optional function arguments
8
- //
9
- // @throws There is no `$function` function for `sl-walk`.
10
- //
11
- // @requires sl-to-map
12
- // @requires sl-to-list
13
- //
14
- // @return {List | Null}
15
-
1
+ /**
2
+ * Apply `$function` to every item from `$list` passing $args as parameters.
3
+ *
4
+ * @ignore Documentation: http://sassylists.com/documentation.html#sl-walk
5
+ *
6
+ * @param {List} $list - list to update
7
+ * @param {String} $function - function to call on each value
8
+ * @param {ArgList} $args - optional function arguments
9
+ *
10
+ * @throws There is no `$function` function for `sl-walk`.
11
+ *
12
+ * @requires sl-to-map
13
+ * @requires sl-to-list
14
+ *
15
+ * @return {List | Null}
16
+ */
17
+
16
18
  @function sl-walk($list, $function, $args...) {
17
19
  @if sl-missing-dependencies(sl-to-map, sl-to-list) == true { @return null; }
18
20
 
@@ -1,11 +1,13 @@
1
- // Check whether value is a number
2
- //
3
- // @access private
4
- //
5
- // @param {*} $value - value to run test against
6
- //
7
- // @return {Bool}
8
-
1
+ /**
2
+ * Check whether value is a number
3
+ *
4
+ * @access private
5
+ *
6
+ * @param {*} $value - value to run test against
7
+ *
8
+ * @return {Bool}
9
+ */
10
+
9
11
  @function sl-is-number($value) {
10
12
  @return type-of($value) == "number";
11
13
  }
@@ -1,11 +1,13 @@
1
- // Checks whether `$functions` exist in global scope.
2
- //
3
- // @access private
4
- //
5
- // @param {ArgList} $functions - list of functions to check for
6
- //
7
- // @return {Bool} Whether or not there are missing dependencies
8
-
1
+ /**
2
+ * Checks whether `$functions` exist in global scope.
3
+ *
4
+ * @access private
5
+ *
6
+ * @param {ArgList} $functions - list of functions to check for
7
+ *
8
+ * @return {Bool} Whether or not there are missing dependencies
9
+ */
10
+
9
11
  @function sl-missing-dependencies($functions...) {
10
12
  $missing-dependencies: ();
11
13
 
@@ -1,13 +1,15 @@
1
- // Compares `$a` and `$b` based on `$order`.
2
- //
3
- // @access private
4
- //
5
- // @param {*} $a - first value
6
- // @param {*} $b - second value
7
- // @param {List} $matrix - alphabetical order
8
- //
9
- // @return {Bool}
10
-
1
+ /**
2
+ * Compares `$a` and `$b` based on `$order`.
3
+ *
4
+ * @access private
5
+ *
6
+ * @param {*} $a - first value
7
+ * @param {*} $b - second value
8
+ * @param {List} $matrix - alphabetical order
9
+ *
10
+ * @return {Bool}
11
+ */
12
+
11
13
  @function sl-str-compare($a, $b, $order) {
12
14
  @if type-of($a) == "number" and type-of($b) == "number" {
13
15
  @return $a < $b;
@@ -1,11 +1,13 @@
1
- // Returns truthiness of `$value`.
2
- //
3
- // @access private
4
- //
5
- // @param {*} $value - value to check
6
- //
7
- // @return {Bool}
8
-
1
+ /**
2
+ * Returns truthiness of `$value`.
3
+ *
4
+ * @access private
5
+ *
6
+ * @param {*} $value - value to check
7
+ *
8
+ * @return {Bool}
9
+ */
10
+
9
11
  @function sl-is-true($value) {
10
12
  @return if($value == null, false, $value and $value != null and $value != "" and $value != ());
11
13
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: SassyLists
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.1
4
+ version: 2.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Hugo Giraudel
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-03 00:00:00.000000000 Z
11
+ date: 2014-07-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: sass