sass 3.3.0.alpha.173 → 3.3.0.alpha.174
Sign up to get free protection for your applications and to get access to all the features.
- data/REVISION +1 -1
- data/VERSION +1 -1
- data/VERSION_DATE +1 -1
- data/lib/sass/script/functions.rb +10 -12
- data/test/sass/functions_test.rb +1 -1
- metadata +3 -3
data/REVISION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
a4bb6c0f998e8aa02f2834a1e53158a309a51af2
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.3.0.alpha.
|
1
|
+
3.3.0.alpha.174
|
data/VERSION_DATE
CHANGED
@@ -1 +1 @@
|
|
1
|
-
03 June 2013
|
1
|
+
03 June 2013 22:10:20 GMT
|
@@ -206,7 +206,7 @@ module Sass::Script
|
|
206
206
|
# assert_type string, :String
|
207
207
|
# Sass::Script::Value::String.new(string.value.reverse)
|
208
208
|
# end
|
209
|
-
# declare :reverse,
|
209
|
+
# declare :reverse, [:string]
|
210
210
|
# end
|
211
211
|
#
|
212
212
|
# Calling {declare} tells Sass the argument names for your function.
|
@@ -1656,19 +1656,17 @@ module Sass::Script
|
|
1656
1656
|
end
|
1657
1657
|
declare :if, [:condition, :if_true, :if_false]
|
1658
1658
|
|
1659
|
-
# Returns a unique string that is a legal CSS
|
1660
|
-
#
|
1661
|
-
#
|
1659
|
+
# Returns a unique unquoted string that is a legal CSS identifier. The
|
1660
|
+
# identifier returned is only guaranteed to be unique within the scope of a
|
1661
|
+
# single Sass run.
|
1662
1662
|
def unique_id
|
1663
|
-
Thread.current[:sass_last_unique_id] ||=
|
1664
|
-
|
1665
|
-
|
1666
|
-
|
1667
|
-
|
1668
|
-
end
|
1669
|
-
value = (Thread.current[:sass_last_unique_id] += rand(10)) # avoid the temptation of trying to guess the next unique value.
|
1670
|
-
Sass::Script::String.new("u"+value.to_s(36)) # the u makes this a legal identifier if it starts with a number.
|
1663
|
+
Thread.current[:sass_last_unique_id] ||= rand(36**8)
|
1664
|
+
# avoid the temptation of trying to guess the next unique value.
|
1665
|
+
value = (Thread.current[:sass_last_unique_id] += rand(10))
|
1666
|
+
# the u makes this a legal identifier if it would otherwise start with a number.
|
1667
|
+
Sass::Script::String.new("u" + value.to_s(36).rjust(8, '0'))
|
1671
1668
|
end
|
1669
|
+
declare :unique_id, []
|
1672
1670
|
|
1673
1671
|
# This function only exists as a workaround for IE7's [`content:counter`
|
1674
1672
|
# bug][bug]. It works identically to any other plain-CSS function, except it
|
data/test/sass/functions_test.rb
CHANGED
@@ -1199,7 +1199,7 @@ MSG
|
|
1199
1199
|
|
1200
1200
|
def test_unique_id
|
1201
1201
|
assert_match(/u[a-z0-9]{8}/, evaluate("unique-id()"))
|
1202
|
-
|
1202
|
+
assert_not_equal evaluate("unique-id()"), evaluate("unique-id()")
|
1203
1203
|
end
|
1204
1204
|
|
1205
1205
|
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: 592302673
|
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
|
+
- 174
|
12
|
+
version: 3.3.0.alpha.174
|
13
13
|
platform: ruby
|
14
14
|
authors:
|
15
15
|
- Nathan Weizenbaum
|