ListFunctions 0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/lib/ListFunctions.rb +30 -0
- data/stylesheets/ListFunctions/_chunk.scss +32 -0
- data/stylesheets/ListFunctions/_count-values.scss +33 -0
- data/stylesheets/ListFunctions/_debug.scss +34 -0
- data/stylesheets/ListFunctions/_first.scss +13 -0
- data/stylesheets/ListFunctions/_insert-nth.scss +52 -0
- data/stylesheets/ListFunctions/_is-symmetrical.scss +23 -0
- data/stylesheets/ListFunctions/_last-index.scss +24 -0
- data/stylesheets/ListFunctions/_last.scss +13 -0
- data/stylesheets/ListFunctions/_loop.scss +21 -0
- data/stylesheets/ListFunctions/_prepend.scss +16 -0
- data/stylesheets/ListFunctions/_purge.scss +21 -0
- data/stylesheets/ListFunctions/_remove-duplicates.scss +30 -0
- data/stylesheets/ListFunctions/_remove-nth.scss +23 -0
- data/stylesheets/ListFunctions/_remove.scss +19 -0
- data/stylesheets/ListFunctions/_replace-nth.scss +50 -0
- data/stylesheets/ListFunctions/_replace.scss +32 -0
- data/stylesheets/ListFunctions/_reverse.scss +30 -0
- data/stylesheets/ListFunctions/_slice.scss +60 -0
- data/stylesheets/ListFunctions/_sum.scss +32 -0
- data/stylesheets/ListFunctions/_to-string.scss +29 -0
- data/stylesheets/_ListFunctions.scss +90 -0
- data/templates/project/css/ListFunctions.css +351 -0
- data/templates/project/sass/ListFunctions/_chunk.scss +32 -0
- data/templates/project/sass/ListFunctions/_count-values.scss +33 -0
- data/templates/project/sass/ListFunctions/_debug.scss +34 -0
- data/templates/project/sass/ListFunctions/_first.scss +13 -0
- data/templates/project/sass/ListFunctions/_insert-nth.scss +52 -0
- data/templates/project/sass/ListFunctions/_is-symmetrical.scss +23 -0
- data/templates/project/sass/ListFunctions/_last-index.scss +24 -0
- data/templates/project/sass/ListFunctions/_last.scss +13 -0
- data/templates/project/sass/ListFunctions/_loop.scss +21 -0
- data/templates/project/sass/ListFunctions/_prepend.scss +16 -0
- data/templates/project/sass/ListFunctions/_purge.scss +21 -0
- data/templates/project/sass/ListFunctions/_remove-duplicates.scss +30 -0
- data/templates/project/sass/ListFunctions/_remove-nth.scss +23 -0
- data/templates/project/sass/ListFunctions/_remove.scss +19 -0
- data/templates/project/sass/ListFunctions/_replace-nth.scss +50 -0
- data/templates/project/sass/ListFunctions/_replace.scss +32 -0
- data/templates/project/sass/ListFunctions/_reverse.scss +30 -0
- data/templates/project/sass/ListFunctions/_slice.scss +60 -0
- data/templates/project/sass/ListFunctions/_sum.scss +32 -0
- data/templates/project/sass/ListFunctions/_to-string.scss +29 -0
- data/templates/project/sass/_ListFunctions.scss +90 -0
- metadata +115 -0
@@ -0,0 +1,21 @@
|
|
1
|
+
/**
|
2
|
+
* Shift indexes from $list of $value
|
3
|
+
* -------------------------------------------------------------------------------
|
4
|
+
* @example loop( (a, b, c, d, e) ) => e, a, b, c, d
|
5
|
+
* @example loop( (a, b, c, d, e), 2 ) => d, e, a, b, c
|
6
|
+
* @example loop( (a, b, c, d, e), -2 ) => c, d, e, a, b
|
7
|
+
* -------------------------------------------------------------------------------
|
8
|
+
* @param $list [List] : list
|
9
|
+
* @param $value [Number] : number of position between old and new indexes
|
10
|
+
* -------------------------------------------------------------------------------
|
11
|
+
* @return [List]
|
12
|
+
*/
|
13
|
+
@function loop($list, $value: 1) {
|
14
|
+
$result: ();
|
15
|
+
|
16
|
+
@for $i from 0 to length($list) {
|
17
|
+
$result: append($result, nth($list, ($i - $value) % length($list) + 1));
|
18
|
+
}
|
19
|
+
|
20
|
+
@return $result;
|
21
|
+
}
|
@@ -0,0 +1,16 @@
|
|
1
|
+
/**
|
2
|
+
* Add $value as first index of $list
|
3
|
+
* -------------------------------------------------------------------------------
|
4
|
+
* @dependence `purge()`
|
5
|
+
* -------------------------------------------------------------------------------
|
6
|
+
* @example prepend( (a, b, c), z ) => z, a, b, c
|
7
|
+
* @example prepend( (a, b, c), y z ) => y z, a, b, c
|
8
|
+
* -------------------------------------------------------------------------------
|
9
|
+
* @param $list [List] : list
|
10
|
+
* @param $value [Literal] : value to prepend to the list
|
11
|
+
* -------------------------------------------------------------------------------
|
12
|
+
* @return [List]
|
13
|
+
*/
|
14
|
+
@function prepend($list, $value) {
|
15
|
+
@return purge(join($value, $list));
|
16
|
+
}
|
@@ -0,0 +1,21 @@
|
|
1
|
+
/**
|
2
|
+
* Remove all false and null values from $list
|
3
|
+
* -------------------------------------------------------------------------------
|
4
|
+
* @example purge( (a, null, b, false, c, null) ) => a, b, c
|
5
|
+
* @example purge( (a, b, c) ) => a, b, c
|
6
|
+
* -------------------------------------------------------------------------------
|
7
|
+
* @param $list [List] : list
|
8
|
+
* -------------------------------------------------------------------------------
|
9
|
+
* @return [List]
|
10
|
+
*/
|
11
|
+
@function purge($list) {
|
12
|
+
$result: ();
|
13
|
+
|
14
|
+
@each $item in $list {
|
15
|
+
@if $item != null and $item != false and $item != "" {
|
16
|
+
$result: append($result, $item);
|
17
|
+
}
|
18
|
+
}
|
19
|
+
|
20
|
+
@return $result;
|
21
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
/**
|
2
|
+
* Remove duplicate values from $list
|
3
|
+
* -------------------------------------------------------------------------------
|
4
|
+
* @example remove-duplicates( (a, b, a, c, b, d, c, e) ) => a, b, c, d, e
|
5
|
+
* @example remove-duplicates( (a, b, (c, c, c)) ) => a, b, c
|
6
|
+
* -------------------------------------------------------------------------------
|
7
|
+
* @param $list [List] : list
|
8
|
+
* @param $recursive [Boolean] : enable / disable recursivity
|
9
|
+
* -------------------------------------------------------------------------------
|
10
|
+
* @return [List]
|
11
|
+
*/
|
12
|
+
@function remove-duplicates($list, $recursive: false) {
|
13
|
+
$result: ();
|
14
|
+
|
15
|
+
@each $item in $list {
|
16
|
+
|
17
|
+
@if not index($result, $item) {
|
18
|
+
@if length($item) > 1 and $recursive {
|
19
|
+
$result: append($result, remove-duplicates($item, $recursive));
|
20
|
+
}
|
21
|
+
|
22
|
+
@else {
|
23
|
+
$result: append($result, $item);
|
24
|
+
}
|
25
|
+
}
|
26
|
+
|
27
|
+
}
|
28
|
+
|
29
|
+
@return $result;
|
30
|
+
}
|
@@ -0,0 +1,23 @@
|
|
1
|
+
/**
|
2
|
+
* Remove value from $list at index $index
|
3
|
+
* -------------------------------------------------------------------------------
|
4
|
+
* @dependence `replace-nth()`
|
5
|
+
* -------------------------------------------------------------------------------
|
6
|
+
* @example remove-nth( (a, b, c), 2 ) => a, c
|
7
|
+
* @example remove-nth( (a, b, c), 0 ) => error
|
8
|
+
* @example remove-nth( (a, b, c), -1 ) => a, b
|
9
|
+
* @example remove-nth( (a, b, c), 10 ) => error
|
10
|
+
* @example remove-nth( (a, b, c), -10 ) => error
|
11
|
+
* -------------------------------------------------------------------------------
|
12
|
+
* @param $list [List] : list
|
13
|
+
* @param $index [Number] : index to remove
|
14
|
+
* -------------------------------------------------------------------------------
|
15
|
+
* @raise [Error] if $index isn't an integer
|
16
|
+
* @raise [Error] if $index is 0
|
17
|
+
* @raise [Error] if abs value of $index is strictly greater then length of $list
|
18
|
+
* -------------------------------------------------------------------------------
|
19
|
+
* @return [List] | false
|
20
|
+
*/
|
21
|
+
@function remove-nth($list, $index) {
|
22
|
+
@return replace-nth($list, $index, "");
|
23
|
+
}
|
@@ -0,0 +1,19 @@
|
|
1
|
+
/**
|
2
|
+
* Remove value(s) $value from $list
|
3
|
+
* -------------------------------------------------------------------------------
|
4
|
+
* @dependence `replace()`
|
5
|
+
* -------------------------------------------------------------------------------
|
6
|
+
* @example remove( (a, b, c), b ) => a, c
|
7
|
+
* @example remove( (a, b, c), z ) => a, b, c
|
8
|
+
* @example remove( (a, b, c b), b ) => a, c b
|
9
|
+
* @example remove( (a, b, c b), b, true ) => a, c
|
10
|
+
* -------------------------------------------------------------------------------
|
11
|
+
* @param $list [List] : list
|
12
|
+
* @param $value [Literal] : value to remove
|
13
|
+
* @param $recursive [Boolean] : enable / disable recursivity
|
14
|
+
* -------------------------------------------------------------------------------
|
15
|
+
* @return [List]
|
16
|
+
*/
|
17
|
+
@function remove($list, $value, $recursive: false) {
|
18
|
+
@return replace($list, $value, "", $recursive);
|
19
|
+
}
|
@@ -0,0 +1,50 @@
|
|
1
|
+
/**
|
2
|
+
* Replace value at $index from $list by $value
|
3
|
+
* -------------------------------------------------------------------------------
|
4
|
+
* @dependence `purge()`
|
5
|
+
* -------------------------------------------------------------------------------
|
6
|
+
* @example replace-nth( (a, b, c), 2, z ) => a, z, c
|
7
|
+
* @example replace-nth( (a, b, c), 0, z ) => error
|
8
|
+
* @example replace-nth( (a, b, c), -1, z ) => a, b, z
|
9
|
+
* @example replace-nth( (a, b, c), 10, z ) => error
|
10
|
+
* @example replace-nth( (a, b, c), -10, z ) => error
|
11
|
+
* -------------------------------------------------------------------------------
|
12
|
+
* @param $list [List] : list
|
13
|
+
* @param $index [Number] : index to update
|
14
|
+
* @param $value [Literal] : new value for index $index
|
15
|
+
* -------------------------------------------------------------------------------
|
16
|
+
* @raise [Error] if $index isn't an integer
|
17
|
+
* @raise [Error] if $index is 0
|
18
|
+
* @raise [Error] if abs value of $index is strictly greater than length of $list
|
19
|
+
* -------------------------------------------------------------------------------
|
20
|
+
* @return [List] | false
|
21
|
+
*/
|
22
|
+
@function replace-nth($list, $index, $value) {
|
23
|
+
$result: false;
|
24
|
+
|
25
|
+
@if type-of($index) != number {
|
26
|
+
@warn "$index: #{quote($index)} is not a number for `replace-nth`/`remove-nth`.";
|
27
|
+
@return $result;
|
28
|
+
}
|
29
|
+
|
30
|
+
@else if $index == 0 {
|
31
|
+
@warn "List index 0 must be a non-zero integer for `replace-nth`/`remove-nth`.";
|
32
|
+
@return $result;
|
33
|
+
}
|
34
|
+
|
35
|
+
@else if abs($index) > length($list) {
|
36
|
+
@warn "List index is #{$index} but list is only #{length($list)} item long for `replace-nth`/`remove-nth`.";
|
37
|
+
@return $result;
|
38
|
+
}
|
39
|
+
|
40
|
+
@else {
|
41
|
+
$result: ();
|
42
|
+
$index: if($index < 0, length($list) + $index + 1, $index);
|
43
|
+
|
44
|
+
@for $i from 1 through length($list) {
|
45
|
+
$result: append($result, if($i == $index, $value, nth($list, $i)));
|
46
|
+
}
|
47
|
+
}
|
48
|
+
|
49
|
+
@return purge($result);
|
50
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
/**
|
2
|
+
* Replace $old-value by $new-value in $list
|
3
|
+
* -------------------------------------------------------------------------------
|
4
|
+
* @dependence `purge()`
|
5
|
+
* -------------------------------------------------------------------------------
|
6
|
+
* @example replace( (a, b, c), b, z ) => a, z, c
|
7
|
+
* @example replace( (a, b, c), y, z ) => a, b, c
|
8
|
+
* @example replace( (a, b, c a), a, z ) => z, b, c z
|
9
|
+
* @example replace( (a, b, c a), a, z, true ) => z, b, c z
|
10
|
+
* -------------------------------------------------------------------------------
|
11
|
+
* @param $list [List] : list
|
12
|
+
* @param $old-value [Literal] : value to replace
|
13
|
+
* @param $new-value [Literal] : new value for $old-value
|
14
|
+
* @param $recursive [Boolean] : enable / disable recursivity
|
15
|
+
* -------------------------------------------------------------------------------
|
16
|
+
* @return [List]
|
17
|
+
*/
|
18
|
+
@function replace($list, $old-value, $new-value, $recursive: false) {
|
19
|
+
$result: ();
|
20
|
+
|
21
|
+
@each $item in $list {
|
22
|
+
@if length($item) > 1 and $recursive {
|
23
|
+
$result: append($result, replace($item, $old-value, $new-value, $recursive));
|
24
|
+
}
|
25
|
+
|
26
|
+
@else {
|
27
|
+
$result: append($result, if($item == $old-value, $new-value, $item));
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
@return purge($result);
|
32
|
+
}
|
@@ -0,0 +1,30 @@
|
|
1
|
+
/**
|
2
|
+
* Reverses the order of $list
|
3
|
+
* -------------------------------------------------------------------------------
|
4
|
+
* @example reverse( (a, b, c) ) => c, b, a
|
5
|
+
* @example reverse( (a, b, c a) ) => c a, b, a
|
6
|
+
* @example reverse( (a, b, c a), true ) => a c, b, a
|
7
|
+
* @example reverse( a ) => a
|
8
|
+
* -------------------------------------------------------------------------------
|
9
|
+
* @param $list [List] : list
|
10
|
+
* @param $recursive [Boolean] : enable / disable recursivity
|
11
|
+
* -------------------------------------------------------------------------------
|
12
|
+
* @return [List]
|
13
|
+
*/
|
14
|
+
@function reverse($list, $recursive: false) {
|
15
|
+
$result: ();
|
16
|
+
|
17
|
+
@for $i from length($list) * -1 through -1 {
|
18
|
+
$item: nth($list, abs($i));
|
19
|
+
|
20
|
+
@if length($item) > 1 and $recursive {
|
21
|
+
$result: append($result, reverse($item, $recursive));
|
22
|
+
}
|
23
|
+
|
24
|
+
@else {
|
25
|
+
$result: append($result, $item);
|
26
|
+
}
|
27
|
+
}
|
28
|
+
|
29
|
+
@return $result;
|
30
|
+
}
|
@@ -0,0 +1,60 @@
|
|
1
|
+
/**
|
2
|
+
* Slices $list between $start and $end
|
3
|
+
* -------------------------------------------------------------------------------
|
4
|
+
* @example slice( (a, b, c, d), 2, 3 ) => b, c
|
5
|
+
* @example slice( (a, b, c, d), 3, 2 ) => error
|
6
|
+
* @example slice( (a, b, c, d), 3, 5 ) => error
|
7
|
+
* @example slice( (a, b, c, d), -1, 3 ) => error
|
8
|
+
* @example slice( (a, b, c, d), 0, 3 ) => error
|
9
|
+
* @example slice( (a, b, c, d), 3, 3 ) => c
|
10
|
+
* -------------------------------------------------------------------------------
|
11
|
+
* @param $list [List] : list
|
12
|
+
* @param $start [Number] : start index
|
13
|
+
* @param $end [Number] : end index
|
14
|
+
* -------------------------------------------------------------------------------
|
15
|
+
* @raise [Error] if $start or $end aren't integers
|
16
|
+
* @raise [Error] if $start is greater than $end
|
17
|
+
* @raise [Error] if $start or $end is strictly lesser than 1
|
18
|
+
* @raise [Error] if $start is strictly greater than length of $list
|
19
|
+
* @raise [Error] if $end is strictly greater than length of $list
|
20
|
+
* -------------------------------------------------------------------------------
|
21
|
+
* @return [List] | false
|
22
|
+
*/
|
23
|
+
@function slice($list, $start: 1, $end: length($list)) {
|
24
|
+
$result: false;
|
25
|
+
|
26
|
+
@if type-of($start) != number or type-of($end) != number {
|
27
|
+
@warn "Either $start or $end are not a number for `slice`.";
|
28
|
+
@return $result;
|
29
|
+
}
|
30
|
+
|
31
|
+
@else if $start > $end {
|
32
|
+
@warn "The start index has to be lesser than or equals to the end index for `slice`.";
|
33
|
+
@return $result;
|
34
|
+
}
|
35
|
+
|
36
|
+
@else if $start < 1 or $end < 1 {
|
37
|
+
@warn "List indexes must be non-zero integers for `slice`.";
|
38
|
+
@return $result;
|
39
|
+
}
|
40
|
+
|
41
|
+
@else if $start > length($list) {
|
42
|
+
@warn "List index is #{$start} but list is only #{length($list)} item long for `slice`.";
|
43
|
+
@return $result;
|
44
|
+
}
|
45
|
+
|
46
|
+
@else if $end > length($list) {
|
47
|
+
@warn "List index is #{$end} but list is only #{length($list)} item long for `slice`.";
|
48
|
+
@return $result;
|
49
|
+
}
|
50
|
+
|
51
|
+
@else {
|
52
|
+
$result: ();
|
53
|
+
|
54
|
+
@for $i from $start through $end {
|
55
|
+
$result: append($result, nth($list, $i));
|
56
|
+
}
|
57
|
+
}
|
58
|
+
|
59
|
+
@return $result;
|
60
|
+
}
|
@@ -0,0 +1,32 @@
|
|
1
|
+
/**
|
2
|
+
* Sum up all unitless values in $list
|
3
|
+
* -------------------------------------------------------------------------------
|
4
|
+
* @example sum( (1 2 3 4 5) ) => 15
|
5
|
+
* @example sum( (1 a 2 b 3) ) => 6
|
6
|
+
* @example sum( (10px 3em 5%) ) => 0
|
7
|
+
* @example sum( (10px 3em 5%, true) ) => 18
|
8
|
+
* -------------------------------------------------------------------------------
|
9
|
+
* @param $list [List] : list
|
10
|
+
* @param $force [Boolean] : enable / disable parseInt
|
11
|
+
* -------------------------------------------------------------------------------
|
12
|
+
* @return [Number]
|
13
|
+
*/
|
14
|
+
@function sum($list, $force: false) {
|
15
|
+
$result: 0;
|
16
|
+
|
17
|
+
@each $item in $list {
|
18
|
+
@if type-of($item) == number {
|
19
|
+
|
20
|
+
@if $force and unit($item) {
|
21
|
+
$item: $item / ($item * 0 + 1);
|
22
|
+
}
|
23
|
+
|
24
|
+
@if unitless($item) {
|
25
|
+
$result: $result + $item;
|
26
|
+
}
|
27
|
+
|
28
|
+
}
|
29
|
+
}
|
30
|
+
|
31
|
+
@return $result;
|
32
|
+
}
|
@@ -0,0 +1,29 @@
|
|
1
|
+
/**
|
2
|
+
* Joins all elements of $list with $glue
|
3
|
+
* -------------------------------------------------------------------------------
|
4
|
+
* @example to-string( (a, b, c) ) => abc
|
5
|
+
* @example to-string( (a, b, c), '-' ) => a-b-c
|
6
|
+
* @example to-string( (a, b c, d) ) => abcd
|
7
|
+
* -------------------------------------------------------------------------------
|
8
|
+
* @param $list [List] : list
|
9
|
+
* @param $glue [String] : value to use as a join string
|
10
|
+
* @param $is-nested [Boolean] : strictly internal boolean for recursivity
|
11
|
+
* -------------------------------------------------------------------------------
|
12
|
+
* @return [String]
|
13
|
+
*/
|
14
|
+
@function to-string($list, $glue: '', $is-nested: false) {
|
15
|
+
$result: null;
|
16
|
+
|
17
|
+
@each $item in $list {
|
18
|
+
@if length($item) > 1 {
|
19
|
+
$result: $result#{to-string($item, $glue, true)};
|
20
|
+
}
|
21
|
+
|
22
|
+
@else {
|
23
|
+
$condition: index($list, item) != length($list) or $is-nested;
|
24
|
+
$result: if($condition, $result#{$item}#{$glue}, $result#{$item});
|
25
|
+
}
|
26
|
+
}
|
27
|
+
|
28
|
+
@return $result;
|
29
|
+
}
|
@@ -0,0 +1,90 @@
|
|
1
|
+
/* ------------------------------------------------------------------------------- *
|
2
|
+
* A couple of advanced Sass list functions
|
3
|
+
* ------------------------------------------------------------------------------- *
|
4
|
+
*
|
5
|
+
* chunk($list, $size)
|
6
|
+
* Chunk $list into $size large lists
|
7
|
+
*
|
8
|
+
* count-values($list)
|
9
|
+
* Count the number of occurrences of each value of $list
|
10
|
+
*
|
11
|
+
* debug($list)
|
12
|
+
* Returns $list as a string
|
13
|
+
*
|
14
|
+
* first($list)
|
15
|
+
* Return first element of $list
|
16
|
+
*
|
17
|
+
* insert-nth($list, $index, $value)
|
18
|
+
* Add $value at $index in $list
|
19
|
+
*
|
20
|
+
* is-symmetrical($list)
|
21
|
+
* Check if $list is symmetrical
|
22
|
+
*
|
23
|
+
* last($list)
|
24
|
+
* Return last element of $list
|
25
|
+
*
|
26
|
+
* last-index($list, $value)
|
27
|
+
* Return last index of $value in $list
|
28
|
+
*
|
29
|
+
* loop($list, $value: 1)
|
30
|
+
* Shift indexes from $list of $value
|
31
|
+
*
|
32
|
+
* prepend($list, $value)
|
33
|
+
* Add $value as first index of $list
|
34
|
+
*
|
35
|
+
* purge($list)
|
36
|
+
* Remove all false and null values from $list
|
37
|
+
*
|
38
|
+
* remove($list, $value, $recursive: false)
|
39
|
+
* Remove value(s) $value from $list
|
40
|
+
*
|
41
|
+
* remove-duplicates($list, $recursive: false)
|
42
|
+
* Remove duplicate values from $list
|
43
|
+
*
|
44
|
+
* remove-nth($list, $index)
|
45
|
+
* Remove value from $list at index $index
|
46
|
+
*
|
47
|
+
* replace($list, $old-value, $new-value, $recursive: false)
|
48
|
+
* Replace $old-value by $new-value in $list
|
49
|
+
*
|
50
|
+
* replace-nth($list, $index, $value)
|
51
|
+
* Replace value at $index from $list by $value
|
52
|
+
*
|
53
|
+
* reverse($list, $recursive: false)
|
54
|
+
* Reverse the order of $list
|
55
|
+
*
|
56
|
+
* slice($list, $start: 1, $end: length($list))
|
57
|
+
* Slice $list between $start and $end
|
58
|
+
*
|
59
|
+
* sum($list, $force: false)
|
60
|
+
* Sum up all unitless values in $list
|
61
|
+
*
|
62
|
+
* to-string($list, $glue: '', $is-nested: false)
|
63
|
+
* Join all elements of $list with $glue
|
64
|
+
*
|
65
|
+
* ------------------------------------------------------------------------------- *
|
66
|
+
* CodePen (SCSS): http://codepen.io/HugoGiraudel/pen/loAgq
|
67
|
+
* CodePen (Sass): http://codepen.io/HugoGiraudel/pen/BskrE
|
68
|
+
* Repository: https://github.com/Team-Sass/Sass-ListFunctions/
|
69
|
+
* ------------------------------------------------------------------------------- */
|
70
|
+
|
71
|
+
@import "ListFunctions/chunk";
|
72
|
+
@import "ListFunctions/count-values";
|
73
|
+
@import "ListFunctions/debug";
|
74
|
+
@import "ListFunctions/first";
|
75
|
+
@import "ListFunctions/insert-nth";
|
76
|
+
@import "ListFunctions/is-symmetrical";
|
77
|
+
@import "ListFunctions/last";
|
78
|
+
@import "ListFunctions/last-index";
|
79
|
+
@import "ListFunctions/loop";
|
80
|
+
@import "ListFunctions/prepend";
|
81
|
+
@import "ListFunctions/purge";
|
82
|
+
@import "ListFunctions/remove";
|
83
|
+
@import "ListFunctions/remove-duplicates";
|
84
|
+
@import "ListFunctions/remove-nth";
|
85
|
+
@import "ListFunctions/replace";
|
86
|
+
@import "ListFunctions/replace-nth";
|
87
|
+
@import "ListFunctions/reverse";
|
88
|
+
@import "ListFunctions/slice";
|
89
|
+
@import "ListFunctions/sum";
|
90
|
+
@import "ListFunctions/to-string";
|
metadata
ADDED
@@ -0,0 +1,115 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: ListFunctions
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: '0.1'
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Hugo Giraudel
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2013-10-06 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: sass
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - '>='
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 3.2.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.2.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: compass
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '>='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 0.12.1
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 0.12.1
|
41
|
+
description: Advanced Sass list functions
|
42
|
+
email:
|
43
|
+
- hugo.giraudel@gmail.com
|
44
|
+
executables: []
|
45
|
+
extensions: []
|
46
|
+
extra_rdoc_files: []
|
47
|
+
files:
|
48
|
+
- lib/ListFunctions.rb
|
49
|
+
- stylesheets/ListFunctions/_chunk.scss
|
50
|
+
- stylesheets/ListFunctions/_count-values.scss
|
51
|
+
- stylesheets/ListFunctions/_debug.scss
|
52
|
+
- stylesheets/ListFunctions/_first.scss
|
53
|
+
- stylesheets/ListFunctions/_insert-nth.scss
|
54
|
+
- stylesheets/ListFunctions/_is-symmetrical.scss
|
55
|
+
- stylesheets/ListFunctions/_last-index.scss
|
56
|
+
- stylesheets/ListFunctions/_last.scss
|
57
|
+
- stylesheets/ListFunctions/_loop.scss
|
58
|
+
- stylesheets/ListFunctions/_prepend.scss
|
59
|
+
- stylesheets/ListFunctions/_purge.scss
|
60
|
+
- stylesheets/ListFunctions/_remove-duplicates.scss
|
61
|
+
- stylesheets/ListFunctions/_remove-nth.scss
|
62
|
+
- stylesheets/ListFunctions/_remove.scss
|
63
|
+
- stylesheets/ListFunctions/_replace-nth.scss
|
64
|
+
- stylesheets/ListFunctions/_replace.scss
|
65
|
+
- stylesheets/ListFunctions/_reverse.scss
|
66
|
+
- stylesheets/ListFunctions/_slice.scss
|
67
|
+
- stylesheets/ListFunctions/_sum.scss
|
68
|
+
- stylesheets/ListFunctions/_to-string.scss
|
69
|
+
- stylesheets/_ListFunctions.scss
|
70
|
+
- templates/project/css/ListFunctions.css
|
71
|
+
- templates/project/sass/ListFunctions/_chunk.scss
|
72
|
+
- templates/project/sass/ListFunctions/_count-values.scss
|
73
|
+
- templates/project/sass/ListFunctions/_debug.scss
|
74
|
+
- templates/project/sass/ListFunctions/_first.scss
|
75
|
+
- templates/project/sass/ListFunctions/_insert-nth.scss
|
76
|
+
- templates/project/sass/ListFunctions/_is-symmetrical.scss
|
77
|
+
- templates/project/sass/ListFunctions/_last-index.scss
|
78
|
+
- templates/project/sass/ListFunctions/_last.scss
|
79
|
+
- templates/project/sass/ListFunctions/_loop.scss
|
80
|
+
- templates/project/sass/ListFunctions/_prepend.scss
|
81
|
+
- templates/project/sass/ListFunctions/_purge.scss
|
82
|
+
- templates/project/sass/ListFunctions/_remove-duplicates.scss
|
83
|
+
- templates/project/sass/ListFunctions/_remove-nth.scss
|
84
|
+
- templates/project/sass/ListFunctions/_remove.scss
|
85
|
+
- templates/project/sass/ListFunctions/_replace-nth.scss
|
86
|
+
- templates/project/sass/ListFunctions/_replace.scss
|
87
|
+
- templates/project/sass/ListFunctions/_reverse.scss
|
88
|
+
- templates/project/sass/ListFunctions/_slice.scss
|
89
|
+
- templates/project/sass/ListFunctions/_sum.scss
|
90
|
+
- templates/project/sass/ListFunctions/_to-string.scss
|
91
|
+
- templates/project/sass/_ListFunctions.scss
|
92
|
+
homepage: http://hugogiraudel.com/
|
93
|
+
licenses: []
|
94
|
+
metadata: {}
|
95
|
+
post_install_message:
|
96
|
+
rdoc_options: []
|
97
|
+
require_paths:
|
98
|
+
- lib
|
99
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - '>='
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - '>='
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: 1.3.6
|
109
|
+
requirements: []
|
110
|
+
rubyforge_project: ListFunctions
|
111
|
+
rubygems_version: 2.0.3
|
112
|
+
signing_key:
|
113
|
+
specification_version: 4
|
114
|
+
summary: Advanced Sass list functions
|
115
|
+
test_files: []
|