sass 3.2.0.alpha.94 → 3.2.0.alpha.95

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/REVISION +1 -1
  2. data/VERSION +1 -1
  3. data/lib/sass/engine.rb +17 -16
  4. metadata +6 -6
data/REVISION CHANGED
@@ -1 +1 @@
1
- 8f4869e608e70d7f468bb463ebfe7a939d834e27
1
+ 86bea8daaaa4b261d7c850276314d62b798fe053
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.0.alpha.94
1
+ 3.2.0.alpha.95
@@ -640,59 +640,60 @@ WARNING
640
640
 
641
641
  # If value begins with url( or ",
642
642
  # it's a CSS @import rule and we don't want to touch it.
643
- if directive == "import"
643
+ case directive
644
+ when 'import'
644
645
  parse_import(line, value, offset)
645
- elsif directive == "mixin"
646
+ when 'mixin'
646
647
  parse_mixin_definition(line)
647
- elsif directive == "content"
648
+ when 'content'
648
649
  parse_content_directive(line)
649
- elsif directive == "include"
650
+ when 'include'
650
651
  parse_mixin_include(line, root)
651
- elsif directive == "function"
652
+ when 'function'
652
653
  parse_function(line, root)
653
- elsif directive == "for"
654
+ when 'for'
654
655
  parse_for(line, root, value)
655
- elsif directive == "each"
656
+ when 'each'
656
657
  parse_each(line, root, value)
657
- elsif directive == "else"
658
+ when 'else'
658
659
  parse_else(parent, line, value)
659
- elsif directive == "while"
660
+ when 'while'
660
661
  raise SyntaxError.new("Invalid while directive '@while': expected expression.") unless value
661
662
  Tree::WhileNode.new(parse_script(value, :offset => offset))
662
- elsif directive == "if"
663
+ when 'if'
663
664
  raise SyntaxError.new("Invalid if directive '@if': expected expression.") unless value
664
665
  Tree::IfNode.new(parse_script(value, :offset => offset))
665
- elsif directive == "debug"
666
+ when 'debug'
666
667
  raise SyntaxError.new("Invalid debug directive '@debug': expected expression.") unless value
667
668
  raise SyntaxError.new("Illegal nesting: Nothing may be nested beneath debug directives.",
668
669
  :line => @line + 1) unless line.children.empty?
669
670
  offset = line.offset + line.text.index(value).to_i
670
671
  Tree::DebugNode.new(parse_script(value, :offset => offset))
671
- elsif directive == "extend"
672
+ when 'extend'
672
673
  raise SyntaxError.new("Invalid extend directive '@extend': expected expression.") unless value
673
674
  raise SyntaxError.new("Illegal nesting: Nothing may be nested beneath extend directives.",
674
675
  :line => @line + 1) unless line.children.empty?
675
676
  offset = line.offset + line.text.index(value).to_i
676
677
  Tree::ExtendNode.new(parse_interp(value, offset))
677
- elsif directive == "warn"
678
+ when 'warn'
678
679
  raise SyntaxError.new("Invalid warn directive '@warn': expected expression.") unless value
679
680
  raise SyntaxError.new("Illegal nesting: Nothing may be nested beneath warn directives.",
680
681
  :line => @line + 1) unless line.children.empty?
681
682
  offset = line.offset + line.text.index(value).to_i
682
683
  Tree::WarnNode.new(parse_script(value, :offset => offset))
683
- elsif directive == "return"
684
+ when 'return'
684
685
  raise SyntaxError.new("Invalid @return: expected expression.") unless value
685
686
  raise SyntaxError.new("Illegal nesting: Nothing may be nested beneath return directives.",
686
687
  :line => @line + 1) unless line.children.empty?
687
688
  offset = line.offset + line.text.index(value).to_i
688
689
  Tree::ReturnNode.new(parse_script(value, :offset => offset))
689
- elsif directive == "charset"
690
+ when 'charset'
690
691
  name = value && value[/\A(["'])(.*)\1\Z/, 2] #"
691
692
  raise SyntaxError.new("Invalid charset directive '@charset': expected string.") unless name
692
693
  raise SyntaxError.new("Illegal nesting: Nothing may be nested beneath charset directives.",
693
694
  :line => @line + 1) unless line.children.empty?
694
695
  Tree::CharsetNode.new(name)
695
- elsif directive == "media"
696
+ when 'media'
696
697
  parser = Sass::SCSS::Parser.new(value, @options[:filename], @line)
697
698
  Tree::MediaNode.new(parser.parse_media_query_list)
698
699
  else
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: 592303009
4
+ hash: 592303011
5
5
  prerelease: 6
6
6
  segments:
7
7
  - 3
8
8
  - 2
9
9
  - 0
10
10
  - alpha
11
- - 94
12
- version: 3.2.0.alpha.94
11
+ - 95
12
+ version: 3.2.0.alpha.95
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-03-14 00:00:00 -04:00
22
+ date: 2012-03-21 00:00:00 -04:00
23
23
  default_executable:
24
24
  dependencies:
25
25
  - !ruby/object:Gem::Dependency
@@ -150,7 +150,9 @@ files:
150
150
  - lib/sass/tree/return_node.rb
151
151
  - lib/sass/tree/root_node.rb
152
152
  - lib/sass/tree/content_node.rb
153
+ - lib/sass/tree/css_import_node.rb
153
154
  - lib/sass/tree/variable_node.rb
155
+ - lib/sass/tree/warn_node.rb
154
156
  - lib/sass/tree/visitors/base.rb
155
157
  - lib/sass/tree/visitors/check_nesting.rb
156
158
  - lib/sass/tree/visitors/convert.rb
@@ -159,9 +161,7 @@ files:
159
161
  - lib/sass/tree/visitors/perform.rb
160
162
  - lib/sass/tree/visitors/set_options.rb
161
163
  - lib/sass/tree/visitors/to_css.rb
162
- - lib/sass/tree/warn_node.rb
163
164
  - lib/sass/tree/while_node.rb
164
- - lib/sass/tree/css_import_node.rb
165
165
  - lib/sass/tree/trace_node.rb
166
166
  - lib/sass/media.rb
167
167
  - lib/sass/util/multibyte_string_scanner.rb