SassyLists 0.2.0 → 0.2.1

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,5 +1,7 @@
1
1
  # Changelog
2
2
 
3
+ * `0.2.1`: fixing an issue with `random-value()`
4
+ * `0.2.0`: adding `random-value()`
3
5
  * `0.1.4`: fixing an issue with `sort()`, `is-symmetrical()`
4
6
  * `0.1.3`: fixing an issue with `sort()`
5
7
  * `0.1.2`: improving `debug()`
data/lib/SassyLists.rb CHANGED
@@ -4,9 +4,7 @@
4
4
  # extension.
5
5
  require 'compass'
6
6
 
7
- # This tells Compass what your Compass extension is called, and where to find
8
- # its files
9
- # Replace 'ListFunctions' with the name of your extension. Spaces allowed.
7
+ require 'compass'
10
8
  extension_path = File.expand_path(File.join(File.dirname(__FILE__), ".."))
11
9
  Compass::Frameworks.register('SassyLists', :path => extension_path)
12
10
 
@@ -17,7 +15,7 @@ Compass::Frameworks.register('SassyLists', :path => extension_path)
17
15
  # a prerelease version
18
16
  # Date is in the form of YYYY-MM-DD
19
17
  module SassyLists
20
- VERSION = "0.2.0"
18
+ VERSION = "0.2.1"
21
19
  DATE = "2013-10-25"
22
20
  end
23
21
 
@@ -10,5 +10,5 @@
10
10
  * @return [Literal]
11
11
  */
12
12
  @function random-value($list) {
13
- @return nth($list, rand(length($list)));
13
+ @return nth($list, random(length($list)) + 1);
14
14
  }
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.2.0
4
+ version: 0.2.1
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: