sass 3.3.0.alpha.174 → 3.3.0.alpha.175
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/REVISION +1 -1
- data/VERSION +1 -1
- data/VERSION_DATE +1 -1
- data/lib/sass/script/functions.rb +1 -1
- data/test/sass/functions_test.rb +7 -2
- metadata +4 -4
data/REVISION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
208c33a09f66efba11dc9875c529a830aaca2c34
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.3.0.alpha.
|
1
|
+
3.3.0.alpha.175
|
data/VERSION_DATE
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
04 June 2013 17:33:23 GMT
|
@@ -1662,7 +1662,7 @@ module Sass::Script
|
|
1662
1662
|
def unique_id
|
1663
1663
|
Thread.current[:sass_last_unique_id] ||= rand(36**8)
|
1664
1664
|
# avoid the temptation of trying to guess the next unique value.
|
1665
|
-
value = (Thread.current[:sass_last_unique_id] += rand(10))
|
1665
|
+
value = (Thread.current[:sass_last_unique_id] += (rand(10) + 1))
|
1666
1666
|
# the u makes this a legal identifier if it would otherwise start with a number.
|
1667
1667
|
Sass::Script::String.new("u" + value.to_s(36).rjust(8, '0'))
|
1668
1668
|
end
|
data/test/sass/functions_test.rb
CHANGED
@@ -1198,8 +1198,13 @@ MSG
|
|
1198
1198
|
end
|
1199
1199
|
|
1200
1200
|
def test_unique_id
|
1201
|
-
|
1202
|
-
|
1201
|
+
last_id, current_id = nil, evaluate("unique-id()")
|
1202
|
+
|
1203
|
+
50.times do
|
1204
|
+
last_id, current_id = current_id, evaluate("unique-id()")
|
1205
|
+
assert_match(/u[a-z0-9]{8}/, current_id)
|
1206
|
+
assert_not_equal last_id, current_id
|
1207
|
+
end
|
1203
1208
|
end
|
1204
1209
|
|
1205
1210
|
def test_assert_unit
|
metadata
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sass
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 592302675
|
5
5
|
prerelease: 6
|
6
6
|
segments:
|
7
7
|
- 3
|
8
8
|
- 3
|
9
9
|
- 0
|
10
10
|
- alpha
|
11
|
-
-
|
12
|
-
version: 3.3.0.alpha.
|
11
|
+
- 175
|
12
|
+
version: 3.3.0.alpha.175
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Nathan Weizenbaum
|
@@ -19,7 +19,7 @@ autorequire:
|
|
19
19
|
bindir: bin
|
20
20
|
cert_chain: []
|
21
21
|
|
22
|
-
date: 2013-06-
|
22
|
+
date: 2013-06-04 00:00:00 -04:00
|
23
23
|
default_executable:
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|