haml-edge 3.1.59 → 3.1.60

Sign up to get free protection for your applications and to get access to all the features.
data/EDGE_GEM_VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.59
1
+ 3.1.60
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.1.59
1
+ 3.1.60
@@ -644,11 +644,10 @@ MESSAGE
644
644
  unless e = tok(NUMBER) ||
645
645
  tok(URI) ||
646
646
  function ||
647
- interp_string ||
647
+ tok(STRING) ||
648
648
  tok(UNICODERANGE) ||
649
649
  tok(IDENT) ||
650
- tok(HEXCOLOR) ||
651
- interpolation
650
+ tok(HEXCOLOR)
652
651
 
653
652
  return unless op = unary_operator
654
653
  @expected = "number or function"
@@ -1003,6 +1003,16 @@ flim {
1003
1003
  SCSS
1004
1004
  end
1005
1005
 
1006
+ def test_no_interpolation_in_media_queries
1007
+ assert_raise(Sass::SyntaxError, <<MESSAGE) {render <<SCSS}
1008
+ Invalid CSS after "...nd (min-width: ": expected expression (e.g. 1px, bold), was "\#{100}px) {
1009
+ MESSAGE
1010
+ @media screen and (min-width: \#{100}px) {
1011
+ foo {bar: baz}
1012
+ }
1013
+ SCSS
1014
+ end
1015
+
1006
1016
  # Regression
1007
1017
 
1008
1018
  def test_weird_added_space
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml-edge
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.59
4
+ version: 3.1.60
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum