sass 3.3.0.alpha.8 → 3.3.0.alpha.9
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/README.md +5 -4
- data/REVISION +1 -1
- data/VERSION +1 -1
- data/VERSION_DATE +1 -1
- data/lib/sass/exec.rb +1 -0
- data/lib/sass/script/functions.rb +2 -2
- data/lib/sass/scss/parser.rb +2 -1
- data/test/sass/scss/css_test.rb +12 -0
- metadata +4 -4
data/README.md
CHANGED
@@ -173,10 +173,11 @@ See `sass-convert --help` for further information and options.
|
|
173
173
|
|
174
174
|
## Authors
|
175
175
|
|
176
|
-
Sass was envisioned by [Hampton Catlin](http://hamptoncatlin.com)
|
177
|
-
However, Hampton doesn't even know his way around the code anymore
|
178
|
-
occasionally consults on the language issues. Hampton lives in
|
179
|
-
|
176
|
+
Sass was envisioned by [Hampton Catlin](http://www.hamptoncatlin.com)
|
177
|
+
(@hcatlin). However, Hampton doesn't even know his way around the code anymore
|
178
|
+
and now occasionally consults on the language issues. Hampton lives in San
|
179
|
+
Francisco, California and works as VP of Technology
|
180
|
+
at [Moovweb](http://www.moovweb.com/).
|
180
181
|
|
181
182
|
[Nathan Weizenbaum](http://nex-3.com) is the primary developer and architect of
|
182
183
|
Sass. His hard work has kept the project alive by endlessly answering forum
|
data/REVISION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
86b12c98ecd0fa693a80ffb679dbb14fdfe30ce3
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
3.3.0.alpha.
|
1
|
+
3.3.0.alpha.9
|
data/VERSION_DATE
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
03 November 2012 01:08:14 GMT
|
data/lib/sass/exec.rb
CHANGED
@@ -125,6 +125,7 @@ module Sass
|
|
125
125
|
def puts_action(name, color, arg)
|
126
126
|
return if @options[:for_engine][:quiet]
|
127
127
|
printf color(color, "%11s %s\n"), name, arg
|
128
|
+
STDOUT.flush
|
128
129
|
end
|
129
130
|
|
130
131
|
# Same as \{Kernel.puts}, but doesn't print anything if the `--quiet` option is set.
|
@@ -1235,8 +1235,8 @@ module Sass::Script
|
|
1235
1235
|
# arguments.
|
1236
1236
|
#
|
1237
1237
|
# @example
|
1238
|
-
# max(1px, 4px) =>
|
1239
|
-
# max(5em, 3em, 4em) =>
|
1238
|
+
# max(1px, 4px) => 4px
|
1239
|
+
# max(5em, 3em, 4em) => 5em
|
1240
1240
|
# @return [Number] The maximum value
|
1241
1241
|
# @raise [ArgumentError] if any argument isn't a number, or if not all of
|
1242
1242
|
# the arguments have comparable units
|
data/lib/sass/scss/parser.rb
CHANGED
@@ -332,7 +332,7 @@ module Sass
|
|
332
332
|
def use_css_import?; false; end
|
333
333
|
|
334
334
|
def media_directive
|
335
|
-
block(node(Sass::Tree::MediaNode.new(media_query_list.to_a)), :directive)
|
335
|
+
block(node(Sass::Tree::MediaNode.new(expr!(:media_query_list).to_a)), :directive)
|
336
336
|
end
|
337
337
|
|
338
338
|
# http://www.w3.org/TR/css3-mediaqueries/#syntax
|
@@ -1024,6 +1024,7 @@ MESSAGE
|
|
1024
1024
|
|
1025
1025
|
EXPR_NAMES = {
|
1026
1026
|
:media_query => "media query (e.g. print, screen, print and screen)",
|
1027
|
+
:media_query_list => "media query (e.g. print, screen, print and screen)",
|
1027
1028
|
:media_expr => "media expression (e.g. (min-device-width: 800px))",
|
1028
1029
|
:pseudo_arg => "expression (e.g. fr, 2n+1)",
|
1029
1030
|
:interp_ident => "identifier",
|
data/test/sass/scss/css_test.rb
CHANGED
@@ -1042,6 +1042,18 @@ body {
|
|
1042
1042
|
SCSS
|
1043
1043
|
end
|
1044
1044
|
|
1045
|
+
def test_malformed_media
|
1046
|
+
render <<SCSS
|
1047
|
+
@media {
|
1048
|
+
margin: 0;
|
1049
|
+
}
|
1050
|
+
SCSS
|
1051
|
+
assert(false, "Expected syntax error")
|
1052
|
+
rescue Sass::SyntaxError => e
|
1053
|
+
assert_equal 'Invalid CSS after "@media ": expected media query (e.g. print, screen, print and screen), was "{"', e.message
|
1054
|
+
assert_equal 1, e.sass_line
|
1055
|
+
end
|
1056
|
+
|
1045
1057
|
private
|
1046
1058
|
|
1047
1059
|
def assert_selector_parses(selector)
|
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: 592302879
|
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
|
+
- 9
|
12
|
+
version: 3.3.0.alpha.9
|
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: 2012-11-
|
22
|
+
date: 2012-11-02 00:00:00 -04:00
|
23
23
|
default_executable:
|
24
24
|
dependencies:
|
25
25
|
- !ruby/object:Gem::Dependency
|