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 CHANGED
@@ -1 +1 @@
1
- a4bb6c0f998e8aa02f2834a1e53158a309a51af2
1
+ 208c33a09f66efba11dc9875c529a830aaca2c34
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.3.0.alpha.174
1
+ 3.3.0.alpha.175
@@ -1 +1 @@
1
- 03 June 2013 22:10:20 GMT
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
@@ -1198,8 +1198,13 @@ MSG
1198
1198
  end
1199
1199
 
1200
1200
  def test_unique_id
1201
- assert_match(/u[a-z0-9]{8}/, evaluate("unique-id()"))
1202
- assert_not_equal evaluate("unique-id()"), evaluate("unique-id()")
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: 592302673
4
+ hash: 592302675
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 3
8
8
  - 3
9
9
  - 0
10
10
  - alpha
11
- - 174
12
- version: 3.3.0.alpha.174
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-03 00:00:00 -04:00
22
+ date: 2013-06-04 00:00:00 -04:00
23
23
  default_executable:
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency