SassyLists 0.3.3 → 0.3.4

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.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,6 @@
1
1
  # Changelog
2
2
 
3
+ * `0.3.4`: fixing a minor issue in `insert-nth()`, `replace-nth()` and `prepend()`
3
4
  * `0.3.3`: removed dependence to `purge()` from all functions; fixed an issue with `sort()`; fixed an issue with error messages
4
5
  * `0.3.2`: removed dependence to `purge()` from `replace()`
5
6
  * `0.3.1`: added aliases and cleaned `to-string()`
data/lib/SassyLists.rb CHANGED
@@ -5,7 +5,7 @@ Compass::Frameworks.register('SassyLists', :path => extension_path)
5
5
  # Version is a number. If a version contains alphas, it will be created as a prerelease version
6
6
  # Date is in the form of YYYY-MM-DD
7
7
  module SassyLists
8
- VERSION = "0.3.3"
8
+ VERSION = "0.3.4"
9
9
  DATE = "2013-11-06"
10
10
  end
11
11
 
@@ -2,8 +2,6 @@
2
2
  // -------------------------------------------------------------------------------
3
3
  // @documentation http://sassylists.com/documentation/#insert-nth
4
4
  // -------------------------------------------------------------------------------
5
- // @dependence `purge()`
6
- // -------------------------------------------------------------------------------
7
5
  // @example insert-nth(a b c, 2, z) => a, z, b, c
8
6
  // @example insert-nth(a b c, 0, z) => error
9
7
  // @example insert-nth(a b c, -1, z) => error
@@ -51,5 +49,5 @@
51
49
  }
52
50
  }
53
51
 
54
- @return purge($result);
55
- }
52
+ @return $result;
53
+ }
@@ -2,8 +2,6 @@
2
2
  // -------------------------------------------------------------------------------
3
3
  // @documentation http://sassylists.com/documentation/#prepend
4
4
  // -------------------------------------------------------------------------------
5
- // @dependence `purge()`
6
- // -------------------------------------------------------------------------------
7
5
  // @example prepend(a b c, z) => z, a, b, c
8
6
  // @example prepend(a b c, y z) => y z, a, b, c
9
7
  // -------------------------------------------------------------------------------
@@ -13,11 +11,11 @@
13
11
  // @return [List]
14
12
 
15
13
  @function prepend($list, $value) {
16
- @if $value != null and $value != "" {
17
- @return purge(join($value, $list));
14
+ @if $value != null and $value != "" {
15
+ @return join($value, $list);
18
16
  }
19
17
 
20
18
  @else {
21
19
  @return $list;
22
20
  }
23
- }
21
+ }
@@ -2,8 +2,6 @@
2
2
  // -------------------------------------------------------------------------------
3
3
  // @documentation http://sassylists.com/documentation/#replace-nth
4
4
  // -------------------------------------------------------------------------------
5
- // @dependence `purge()`
6
- // -------------------------------------------------------------------------------
7
5
  // @example replace-nth(a b c, 2, z) => a, z, c
8
6
  // @example replace-nth(a b c, 0, z) => error
9
7
  // @example replace-nth(a b c, 10, z) => error
@@ -49,5 +47,5 @@
49
47
  }
50
48
  }
51
49
 
52
- @return purge($result);
53
- }
50
+ @return $result;
51
+ }
@@ -1,4 +1,4 @@
1
- // Returns a list of shared values from $lists
1
+ // Returns a list of values from $lists minus duplicates
2
2
  // -------------------------------------------------------------------------------
3
3
  // @documentation http://sassylists.com/documentation/#union
4
4
  // -------------------------------------------------------------------------------
@@ -20,4 +20,4 @@
20
20
  // Alias
21
21
  @function merge($lists...) {
22
22
  @return union($lists...);
23
- }
23
+ }
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: 0.3.3
4
+ version: 0.3.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: