sass 3.3.0.alpha.173 → 3.3.0.alpha.174

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 CHANGED
@@ -1 +1 @@
1
- d74a11c40b4dca010ffe13228fa8ddcf1364c1ce
1
+ a4bb6c0f998e8aa02f2834a1e53158a309a51af2
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.3.0.alpha.173
1
+ 3.3.0.alpha.174
@@ -1 +1 @@
1
- 03 June 2013 21:51:16 GMT
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, :args => [:string]
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 identifiers.
1660
- # The unique value returned is only guaranteed to be unique within the scope
1661
- # of a singe CSS file's output.
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] ||= begin
1664
- min = 78364164096 # 10000000 in base 36
1665
- max = 156728328192 # 20000000 in base 36
1666
- range = max - min
1667
- rand(max - min) + min
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
@@ -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
- assert evaluate("unique-id()") != evaluate("unique-id()")
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: 592302679
4
+ hash: 592302673
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 3
8
8
  - 3
9
9
  - 0
10
10
  - alpha
11
- - 173
12
- version: 3.3.0.alpha.173
11
+ - 174
12
+ version: 3.3.0.alpha.174
13
13
  platform: ruby
14
14
  authors:
15
15
  - Nathan Weizenbaum