sass 3.3.0.alpha.101 → 3.3.0.alpha.102

Sign up to get free protection for your applications and to get access to all the features.
data/REVISION CHANGED
@@ -1 +1 @@
1
- d412ca4d9bd9fca447d84e1fd960268a8419b9f3
1
+ 6ac9536a80c7f14e5aa3d478a36d40d5a7bbbb98
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.3.0.alpha.101
1
+ 3.3.0.alpha.102
@@ -1 +1 @@
1
- 27 February 2013 19:13:18 GMT
1
+ 07 March 2013 21:59:54 GMT
@@ -33,7 +33,7 @@ module Sass::Script
33
33
  # @see Node#to_s
34
34
  def to_s(opts = {})
35
35
  if @type == :identifier
36
- return @value.tr("\n", " ")
36
+ return @value.gsub(/\s+/, " ")
37
37
  end
38
38
 
39
39
  return "\"#{value.gsub('"', "\\\"")}\"" if opts[:quote] == %q{"}
@@ -124,11 +124,9 @@ module Sass
124
124
  STRING1_NOINTERP = /\"((?:[^\n\r\f\\"#]|#(?!\{)|\\#{NL}|#{ESCAPE})*)\"/
125
125
  STRING2_NOINTERP = /\'((?:[^\n\r\f\\'#]|#(?!\{)|\\#{NL}|#{ESCAPE})*)\'/
126
126
  STRING_NOINTERP = /#{STRING1_NOINTERP}|#{STRING2_NOINTERP}/
127
- # Can't use IDENT here, because it seems to take exponential time on 1.8.
128
- # We could use it for 1.9 only, but I don't want to introduce a cross-version
129
- # behavior difference.
130
- # In any case, almost all CSS idents will be matched by this.
131
- STATIC_VALUE = /(-?#{NMSTART}|#{STRING_NOINTERP}|#[a-f0-9]|[,%]|-?#{NUMBER}|\!important)+([;}])/i
127
+
128
+ STATIC_COMPONENT = /#{IDENT}|#{STRING_NOINTERP}|#{HEXCOLOR}|[+-]?#{NUMBER}|\!important/i
129
+ STATIC_VALUE = /#{STATIC_COMPONENT}(\s*[\s,\/]\s*#{STATIC_COMPONENT})*([;}])/i
132
130
  STATIC_SELECTOR = /(#{NMCHAR}|[ \t]|[,>+*]|[:#.]#{NMSTART}){0,50}([{])/i
133
131
  end
134
132
  end
@@ -425,7 +425,7 @@ SCSS
425
425
  assert_equal <<CSS, render(<<SCSS)
426
426
  foo {
427
427
  a: -0.5em;
428
- b: 0.5em;
428
+ b: +0.5em;
429
429
  c: -foo(12px);
430
430
  d: +foo(12px); }
431
431
  CSS
@@ -1011,6 +1011,17 @@ SCSS
1011
1011
 
1012
1012
  ## Regressions
1013
1013
 
1014
+ def test_very_long_number_with_important_doesnt_take_forever
1015
+ assert_equal(<<CSS, render(<<SCSS))
1016
+ .foo {
1017
+ width: 97.916666666666666666666666666667% !important; }
1018
+ CSS
1019
+ .foo {
1020
+ width: 97.916666666666666666666666666667% !important;
1021
+ }
1022
+ SCSS
1023
+ end
1024
+
1014
1025
  def test_selector_without_closing_bracket
1015
1026
  assert_not_parses('"]"', "foo[bar <err>{a: b}")
1016
1027
  end
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: 592303047
4
+ hash: 592303041
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 3
8
8
  - 3
9
9
  - 0
10
10
  - alpha
11
- - 101
12
- version: 3.3.0.alpha.101
11
+ - 102
12
+ version: 3.3.0.alpha.102
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-02-27 00:00:00 -05:00
22
+ date: 2013-03-07 00:00:00 -05:00
23
23
  default_executable:
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency