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 +1 -1
- data/VERSION +1 -1
- data/VERSION_DATE +1 -1
- data/lib/sass/script/string.rb +1 -1
- data/lib/sass/scss/rx.rb +3 -5
- data/test/sass/scss/css_test.rb +12 -1
- metadata +4 -4
data/REVISION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
6ac9536a80c7f14e5aa3d478a36d40d5a7bbbb98
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.3.0.alpha.
|
1
|
+
3.3.0.alpha.102
|
data/VERSION_DATE
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
07 March 2013 21:59:54 GMT
|
data/lib/sass/script/string.rb
CHANGED
data/lib/sass/scss/rx.rb
CHANGED
@@ -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
|
-
|
128
|
-
|
129
|
-
|
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
|
data/test/sass/scss/css_test.rb
CHANGED
@@ -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:
|
4
|
+
hash: 592303041
|
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
|
+
- 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-
|
22
|
+
date: 2013-03-07 00:00:00 -05:00
|
23
23
|
default_executable:
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|