haml 3.0.14 → 3.0.15

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of haml might be problematic. Click here for more details.

Files changed (89) hide show
  1. data/VERSION +1 -1
  2. data/lib/haml/exec.rb +1 -4
  3. data/lib/sass/engine.rb +28 -15
  4. data/test/haml/helper_test.rb +2 -2
  5. data/test/haml/results/helpers.xhtml +0 -23
  6. data/test/haml/template_test.rb +2 -2
  7. data/test/haml/templates/helpers.haml +0 -66
  8. data/test/sass/engine_test.rb +14 -0
  9. data/test/test_helper.rb +10 -0
  10. metadata +224 -318
  11. data/lib/haml.rbc +0 -581
  12. data/lib/haml/buffer.rbc +0 -3992
  13. data/lib/haml/engine.rbc +0 -3753
  14. data/lib/haml/error.rbc +0 -363
  15. data/lib/haml/filters.rbc +0 -5719
  16. data/lib/haml/helpers.rbc +0 -7017
  17. data/lib/haml/precompiler.rbc +0 -21418
  18. data/lib/haml/railtie.rbc +0 -508
  19. data/lib/haml/root.rbc +0 -157
  20. data/lib/haml/shared.rbc +0 -1103
  21. data/lib/haml/util.rbc +0 -9071
  22. data/lib/haml/util/subset_map.rbc +0 -1336
  23. data/lib/haml/version.rbc +0 -1639
  24. data/lib/sass.rbc +0 -496
  25. data/lib/sass/callbacks.rbc +0 -407
  26. data/lib/sass/engine.rbc +0 -15109
  27. data/lib/sass/environment.rbc +0 -1485
  28. data/lib/sass/error.rbc +0 -2641
  29. data/lib/sass/files.rbc +0 -3013
  30. data/lib/sass/less.rbc +0 -11077
  31. data/lib/sass/plugin.rbc +0 -4347
  32. data/lib/sass/plugin/configuration.rbc +0 -1410
  33. data/lib/sass/plugin/staleness_checker.rbc +0 -2041
  34. data/lib/sass/script.rbc +0 -1175
  35. data/lib/sass/script/bool.rbc +0 -386
  36. data/lib/sass/script/color.rbc +0 -7998
  37. data/lib/sass/script/css_lexer.rbc +0 -828
  38. data/lib/sass/script/css_parser.rbc +0 -649
  39. data/lib/sass/script/funcall.rbc +0 -1880
  40. data/lib/sass/script/functions.rbc +0 -8329
  41. data/lib/sass/script/interpolation.rbc +0 -1140
  42. data/lib/sass/script/lexer.rbc +0 -7110
  43. data/lib/sass/script/literal.rbc +0 -3275
  44. data/lib/sass/script/node.rbc +0 -1352
  45. data/lib/sass/script/number.rbc +0 -5850
  46. data/lib/sass/script/operation.rbc +0 -1762
  47. data/lib/sass/script/parser.rbc +0 -7386
  48. data/lib/sass/script/string.rbc +0 -1342
  49. data/lib/sass/script/string_interpolation.rbc +0 -1625
  50. data/lib/sass/script/unary_operation.rbc +0 -1141
  51. data/lib/sass/script/variable.rbc +0 -871
  52. data/lib/sass/scss.rbc +0 -256
  53. data/lib/sass/scss/css_parser.rbc +0 -1118
  54. data/lib/sass/scss/parser.rbc +0 -18391
  55. data/lib/sass/scss/rx.rbc +0 -2866
  56. data/lib/sass/scss/sass_parser.rbc +0 -311
  57. data/lib/sass/scss/script_lexer.rbc +0 -466
  58. data/lib/sass/scss/script_parser.rbc +0 -512
  59. data/lib/sass/scss/static_parser.rbc +0 -1295
  60. data/lib/sass/selector.rbc +0 -4208
  61. data/lib/sass/selector/abstract_sequence.rbc +0 -832
  62. data/lib/sass/selector/comma_sequence.rbc +0 -1644
  63. data/lib/sass/selector/sequence.rbc +0 -4772
  64. data/lib/sass/selector/simple.rbc +0 -1561
  65. data/lib/sass/selector/simple_sequence.rbc +0 -2321
  66. data/lib/sass/tree/comment_node.rbc +0 -2418
  67. data/lib/sass/tree/debug_node.rbc +0 -778
  68. data/lib/sass/tree/directive_node.rbc +0 -1281
  69. data/lib/sass/tree/extend_node.rbc +0 -1266
  70. data/lib/sass/tree/for_node.rbc +0 -1150
  71. data/lib/sass/tree/if_node.rbc +0 -1114
  72. data/lib/sass/tree/import_node.rbc +0 -2203
  73. data/lib/sass/tree/mixin_def_node.rbc +0 -1022
  74. data/lib/sass/tree/mixin_node.rbc +0 -2671
  75. data/lib/sass/tree/node.rbc +0 -5410
  76. data/lib/sass/tree/prop_node.rbc +0 -3883
  77. data/lib/sass/tree/root_node.rbc +0 -2391
  78. data/lib/sass/tree/rule_node.rbc +0 -5507
  79. data/lib/sass/tree/variable_node.rbc +0 -858
  80. data/lib/sass/tree/warn_node.rbc +0 -1051
  81. data/lib/sass/tree/while_node.rbc +0 -740
  82. data/test/haml/engine_test.rbc +0 -30038
  83. data/test/linked_rails.rbc +0 -638
  84. data/test/sass/engine_test.rbc +0 -24953
  85. data/test/sass/extend_test.rbc +0 -8941
  86. data/test/sass/less_conversion_test.rbc +0 -5292
  87. data/test/sass/plugin_test.rbc +0 -10726
  88. data/test/sass/templates/basic.sass +0 -23
  89. data/test/test_helper.rbc +0 -1973
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.0.14
1
+ 3.0.15
@@ -388,9 +388,6 @@ END
388
388
  ::Sass::Plugin.options.merge! @options[:for_engine]
389
389
  ::Sass::Plugin.options[:unix_newlines] = @options[:unix_newlines]
390
390
 
391
- p [colon_path?(@args[0]), split_colon_path(@args[0])]
392
- exit
393
-
394
391
  if @args[1] && !colon_path?(@args[0])
395
392
  flag = @options[:update] ? "--update" : "--watch"
396
393
  err =
@@ -446,7 +443,7 @@ MSG
446
443
 
447
444
  def split_colon_path(path)
448
445
  one, two = path.split(':', 2)
449
- if one && two && #::Haml::Util.windows? &&
446
+ if one && two && ::Haml::Util.windows? &&
450
447
  one =~ /\A[A-Za-z]\Z/ && two =~ /\A[\/\\]/
451
448
  # If we're on Windows and we were passed a drive letter path,
452
449
  # don't split on that colon.
@@ -592,25 +592,38 @@ WARNING
592
592
  raise SyntaxError.new("Illegal nesting: Nothing may be nested beneath import directives.",
593
593
  :line => @line + 1) unless line.children.empty?
594
594
 
595
- if (match = value.match(Sass::SCSS::RX::STRING) || value.match(Sass::SCSS::RX::URI)) &&
596
- match.offset(0).first == 0 && !match.post_match.strip.empty? &&
597
- match.post_match.strip[0] != ?,
598
- # @import "filename" media-type
599
- return Tree::DirectiveNode.new("@import #{value}")
600
- end
595
+ scanner = StringScanner.new(value)
596
+ values = []
601
597
 
602
- value.split(/,\s*/).map do |f|
603
- if f =~ Sass::SCSS::RX::URI
604
- # All url()s are literal CSS @imports
605
- next Tree::DirectiveNode.new("@import #{f}")
606
- elsif f =~ Sass::SCSS::RX::STRING
607
- f = $1 || $2
598
+ loop do
599
+ unless node = parse_import_arg(scanner)
600
+ raise SyntaxError.new("Invalid @import: expected file to import, was #{scanner.rest.inspect}",
601
+ :line => @line)
608
602
  end
603
+ values << node
604
+ break unless scanner.scan(/,\s*/)
605
+ end
606
+
607
+ return values
608
+ end
609
609
 
610
- # http:// URLs are always literal CSS imports
611
- next Tree::DirectiveNode.new("@import url(#{f})") if f =~ /^http:\/\//
610
+ def parse_import_arg(scanner)
611
+ return if scanner.eos?
612
+ unless (str = scanner.scan(Sass::SCSS::RX::STRING)) ||
613
+ (uri = scanner.scan(Sass::SCSS::RX::URI))
614
+ return Tree::ImportNode.new(scanner.scan(/[^,]+/))
615
+ end
612
616
 
613
- Tree::ImportNode.new(f)
617
+ val = scanner[1] || scanner[2]
618
+ scanner.scan(/\s*/)
619
+ if media = scanner.scan(/[^,].*/)
620
+ Tree::DirectiveNode.new("@import #{str || uri} #{media}")
621
+ elsif uri
622
+ Tree::DirectiveNode.new("@import #{uri}")
623
+ elsif val =~ /^http:\/\//
624
+ Tree::DirectiveNode.new("@import url(#{val})")
625
+ else
626
+ Tree::ImportNode.new(val)
614
627
  end
615
628
  end
616
629
 
@@ -118,7 +118,7 @@ HAML
118
118
  # This is usually provided by ActionController::Base.
119
119
  def @base.protect_against_forgery?; false; end
120
120
  assert_equal(<<HTML, render(<<HAML, :action_view))
121
- <form action="foo" method="post">
121
+ <form #{rails_form_attr}action="foo" method="post">#{rails_form_opener}
122
122
  <p>bar</p>
123
123
  <strong>baz</strong>
124
124
  </form>
@@ -167,7 +167,7 @@ HAML
167
167
  def @base.protect_against_forgery?; false; end
168
168
  error_class = Haml::Util.ap_geq_3? ? "field_with_errors" : "fieldWithErrors"
169
169
  assert_equal(<<HTML, render(<<HAML, :action_view))
170
- <form action="" method="post">
170
+ <form #{rails_form_attr}action="" method="post">#{rails_form_opener}
171
171
  <div class="#{error_class}"><label for="post_error_field">Error field</label></div>
172
172
  </form>
173
173
  HTML
@@ -45,29 +45,6 @@ click
45
45
  <p>baz</p>
46
46
  <p>boom</p>
47
47
  foo
48
- <p>
49
- <form action="" method="post">
50
- </p>
51
- <div>
52
- <form action="" method="post">
53
- <div><input name="commit" type="submit" value="save" /></div>
54
- <p>
55
- @foo =
56
- value one
57
- </p>
58
- Toplevel? false
59
- <p>
60
- @foo =
61
- value three
62
- </p>
63
- </form>
64
- <form action="" method="post">
65
- Title:
66
- <input id="article_title" name="article[title]" size="30" type="text" value="Hello" />
67
- Body:
68
- <input id="article_body" name="article[body]" size="30" type="text" value="World" />
69
- </form>
70
- </div>
71
48
  <li><a href='http://www.google.com'>google</a></li>
72
49
  <p>
73
50
  foo
@@ -280,7 +280,7 @@ END
280
280
  def test_av_block_deprecation_warning
281
281
  assert_warning(/^DEPRECATION WARNING: - style block helpers are deprecated\. Please use =\./) do
282
282
  assert_equal <<HTML, render(<<HAML, :action_view)
283
- <form action="" method="post">
283
+ <form #{rails_form_attr}action="" method="post">#{rails_form_opener}
284
284
  Title:
285
285
  <input id="article_title" name="article[title]" size="30" type="text" value="Hello" />
286
286
  Body:
@@ -379,7 +379,7 @@ HAML
379
379
 
380
380
  def test_xss_protection_with_form_for
381
381
  assert_equal(<<HTML, render(<<HAML, :action_view))
382
- <form action="" method="post">
382
+ <form #{rails_form_attr}action="" method="post">#{rails_form_opener}
383
383
  Title:
384
384
  <input id="article_title" name="article[title]" size="30" type="text" value="Hello" />
385
385
  Body:
@@ -35,72 +35,6 @@ click
35
35
  %p boom
36
36
  - concat "foo\n"
37
37
  - haml_buffer.tabulation = 0
38
- -#
39
- -# ActionPack pre-2.0 has weird url_for issues here.
40
- - if ActionPack::VERSION::MAJOR < 2
41
- :plain
42
- <p>
43
- <form action="" method="post">
44
- </p>
45
- <div>
46
- <form action="" method="post">
47
- <div><input name="commit" type="submit" value="save" /></div>
48
- <p>
49
- @foo =
50
- value one
51
- </p>
52
- Toplevel? false
53
- <p>
54
- @foo =
55
- value three
56
- </p>
57
- </form>
58
- <form action="" method="post">
59
- Title:
60
- <input id="article_title" name="article[title]" size="30" type="text" value="Hello" />
61
- Body:
62
- <input id="article_body" name="article[body]" size="30" type="text" value="World" />
63
- </form>
64
- </div>
65
- - elsif Haml::Util.ap_geq?("3.0.0.beta3")
66
- %p
67
- = form_tag ''
68
- %div
69
- = form_tag '' do
70
- %div= submit_tag 'save'
71
- - @foo = 'value one'
72
- = test_partial 'partial'
73
- = form_for @article, :as => :article, :url => '', :html => {:class => nil, :id => nil} do |f|
74
- Title:
75
- = f.text_field :title
76
- Body:
77
- = f.text_field :body
78
- - elsif Haml::Util.ap_geq_3?
79
- %p
80
- = form_tag ''
81
- %div
82
- = form_tag '' do
83
- %div= submit_tag 'save'
84
- - @foo = 'value one'
85
- = test_partial 'partial'
86
- = form_for :article, @article, :url => '' do |f|
87
- Title:
88
- = f.text_field :title
89
- Body:
90
- = f.text_field :body
91
- - else
92
- %p
93
- = form_tag ''
94
- %div
95
- - form_tag '' do
96
- %div= submit_tag 'save'
97
- - @foo = 'value one'
98
- = test_partial 'partial'
99
- - form_for :article, @article, :url => '' do |f|
100
- Title:
101
- = f.text_field :title
102
- Body:
103
- = f.text_field :body
104
38
  = list_of({:google => 'http://www.google.com'}) do |name, link|
105
39
  %a{ :href => link }= name
106
40
  %p
@@ -493,6 +493,12 @@ CSS
493
493
  def test_media_import
494
494
  assert_equal("@import \"./fonts.sass\" all;\n",
495
495
  render("@import \"./fonts.sass\" all"))
496
+ assert_equal(<<CSS, render(<<SASS))
497
+ @import "./fonts.sass" all;
498
+ @import url(./fonts.scss);
499
+ CSS
500
+ @import "./fonts.sass" all, url(./fonts.scss)
501
+ SASS
496
502
  end
497
503
 
498
504
  def test_http_import
@@ -2044,6 +2050,14 @@ SASS
2044
2050
  end
2045
2051
  end
2046
2052
 
2053
+ def test_import_with_commas_in_url
2054
+ assert_equal <<CSS, render(<<SASS)
2055
+ @import url(foo.css?bar,baz);
2056
+ CSS
2057
+ @import url(foo.css?bar,baz)
2058
+ SASS
2059
+ end
2060
+
2047
2061
  # Encodings
2048
2062
 
2049
2063
  unless Haml::Util.ruby1_8?
@@ -68,4 +68,14 @@ class Test::Unit::TestCase
68
68
  return "@#{name}, :as => :#{name}, :html => {:class => nil, :id => nil}" if Haml::Util.ap_geq_3?
69
69
  return ":#{name}, @#{name}"
70
70
  end
71
+
72
+ def rails_form_attr
73
+ return 'accept-charset="UTF-8" ' if Haml::Util.ap_geq?("3.0.0.rc")
74
+ return ''
75
+ end
76
+
77
+ def rails_form_opener
78
+ return '' unless Haml::Util.ap_geq?("3.0.0.rc")
79
+ return '<div style="margin:0;padding:0;display:inline"><input name="_snowman" type="hidden" value="&#9731;" /></div>'
80
+ end
71
81
  end
metadata CHANGED
@@ -1,12 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 3
7
- - 0
8
- - 14
9
- version: 3.0.14
4
+ version: 3.0.15
10
5
  platform: ruby
11
6
  authors:
12
7
  - Nathan Weizenbaum
@@ -16,37 +11,29 @@ autorequire:
16
11
  bindir: bin
17
12
  cert_chain: []
18
13
 
19
- date: 2010-07-26 00:00:00 -07:00
14
+ date: 2010-07-28 00:00:00 -07:00
20
15
  default_executable:
21
16
  dependencies:
22
17
  - !ruby/object:Gem::Dependency
23
18
  name: yard
24
- prerelease: false
25
- requirement: &id001 !ruby/object:Gem::Requirement
19
+ type: :development
20
+ version_requirement:
21
+ version_requirements: !ruby/object:Gem::Requirement
26
22
  requirements:
27
23
  - - ">="
28
24
  - !ruby/object:Gem::Version
29
- segments:
30
- - 0
31
- - 5
32
- - 3
33
25
  version: 0.5.3
34
- type: :development
35
- version_requirements: *id001
26
+ version:
36
27
  - !ruby/object:Gem::Dependency
37
28
  name: maruku
38
- prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
29
+ type: :development
30
+ version_requirement:
31
+ version_requirements: !ruby/object:Gem::Requirement
40
32
  requirements:
41
33
  - - ">="
42
34
  - !ruby/object:Gem::Version
43
- segments:
44
- - 0
45
- - 5
46
- - 9
47
35
  version: 0.5.9
48
- type: :development
49
- version_requirements: *id002
36
+ version:
50
37
  description: " Haml (HTML Abstraction Markup Language) is a layer on top of XHTML or XML\n that's designed to express the structure of XHTML or XML documents\n in a non-repetitive, elegant, easy way,\n using indentation rather than closing tags\n and allowing Ruby to be embedded with ease.\n It was originally envisioned as a plugin for Ruby on Rails,\n but it can function as a stand-alone templating engine.\n"
51
38
  email: haml@googlegroups.com
52
39
  executables:
@@ -58,373 +45,294 @@ executables:
58
45
  extensions: []
59
46
 
60
47
  extra_rdoc_files:
61
- - VERSION_NAME
62
- - CONTRIBUTING
63
- - README.md
64
- - MIT-LICENSE
65
48
  - VERSION
49
+ - MIT-LICENSE
50
+ - README.md
51
+ - VERSION_NAME
66
52
  - REVISION
53
+ - CONTRIBUTING
67
54
  files:
68
55
  - rails/init.rb
69
- - lib/haml.rbc
70
56
  - lib/sass.rb
71
- - lib/sass/css.rb
72
- - lib/sass/script/node.rbc
73
- - lib/sass/script/node.rb
74
- - lib/sass/script/funcall.rbc
75
- - lib/sass/script/operation.rbc
76
- - lib/sass/script/interpolation.rb
77
- - lib/sass/script/number.rb
78
- - lib/sass/script/css_lexer.rbc
79
- - lib/sass/script/bool.rbc
80
- - lib/sass/script/lexer.rbc
81
- - lib/sass/script/css_lexer.rb
82
- - lib/sass/script/operation.rb
83
- - lib/sass/script/literal.rb
84
- - lib/sass/script/interpolation.rbc
85
- - lib/sass/script/functions.rb
86
- - lib/sass/script/string_interpolation.rb
87
- - lib/sass/script/functions.rbc
88
- - lib/sass/script/bool.rb
89
- - lib/sass/script/string_interpolation.rbc
90
- - lib/sass/script/color.rbc
91
- - lib/sass/script/literal.rbc
92
- - lib/sass/script/string.rbc
93
- - lib/sass/script/color.rb
94
- - lib/sass/script/lexer.rb
95
- - lib/sass/script/unary_operation.rbc
96
- - lib/sass/script/variable.rbc
97
- - lib/sass/script/number.rbc
98
- - lib/sass/script/parser.rb
99
- - lib/sass/script/css_parser.rb
100
- - lib/sass/script/variable.rb
101
- - lib/sass/script/string.rb
102
- - lib/sass/script/funcall.rb
103
- - lib/sass/script/unary_operation.rb
104
- - lib/sass/script/parser.rbc
105
- - lib/sass/script/css_parser.rbc
57
+ - lib/sass/plugin/generic.rb
58
+ - lib/sass/plugin/configuration.rb
59
+ - lib/sass/plugin/staleness_checker.rb
60
+ - lib/sass/plugin/rails.rb
61
+ - lib/sass/plugin/rack.rb
62
+ - lib/sass/plugin/merb.rb
106
63
  - lib/sass/script.rb
64
+ - lib/sass/selector/simple_sequence.rb
65
+ - lib/sass/selector/sequence.rb
66
+ - lib/sass/selector/simple.rb
67
+ - lib/sass/selector/abstract_sequence.rb
68
+ - lib/sass/selector/comma_sequence.rb
107
69
  - lib/sass/error.rb
108
- - lib/sass/repl.rb
109
- - lib/sass/error.rbc
110
- - lib/sass/tree/node.rbc
111
- - lib/sass/tree/comment_node.rb
112
- - lib/sass/tree/variable_node.rbc
113
- - lib/sass/tree/node.rb
114
- - lib/sass/tree/extend_node.rb
115
- - lib/sass/tree/directive_node.rbc
116
- - lib/sass/tree/comment_node.rbc
117
70
  - lib/sass/tree/for_node.rb
118
- - lib/sass/tree/mixin_node.rbc
71
+ - lib/sass/tree/mixin_node.rb
119
72
  - lib/sass/tree/warn_node.rb
120
- - lib/sass/tree/debug_node.rb
121
- - lib/sass/tree/import_node.rb
122
- - lib/sass/tree/warn_node.rbc
123
- - lib/sass/tree/extend_node.rbc
124
- - lib/sass/tree/while_node.rb
73
+ - lib/sass/tree/extend_node.rb
74
+ - lib/sass/tree/if_node.rb
75
+ - lib/sass/tree/prop_node.rb
125
76
  - lib/sass/tree/mixin_def_node.rb
126
- - lib/sass/tree/if_node.rbc
127
77
  - lib/sass/tree/root_node.rb
128
- - lib/sass/tree/while_node.rbc
129
- - lib/sass/tree/if_node.rb
130
- - lib/sass/tree/mixin_node.rb
131
- - lib/sass/tree/prop_node.rbc
78
+ - lib/sass/tree/variable_node.rb
79
+ - lib/sass/tree/debug_node.rb
132
80
  - lib/sass/tree/directive_node.rb
133
- - lib/sass/tree/mixin_def_node.rbc
134
- - lib/sass/tree/rule_node.rbc
135
- - lib/sass/tree/root_node.rbc
81
+ - lib/sass/tree/node.rb
82
+ - lib/sass/tree/comment_node.rb
136
83
  - lib/sass/tree/rule_node.rb
137
- - lib/sass/tree/for_node.rbc
138
- - lib/sass/tree/debug_node.rbc
139
- - lib/sass/tree/prop_node.rb
140
- - lib/sass/tree/import_node.rbc
141
- - lib/sass/tree/variable_node.rb
142
- - lib/sass/plugin/rails.rb
143
- - lib/sass/plugin/rack.rb
144
- - lib/sass/plugin/configuration.rb
145
- - lib/sass/plugin/merb.rb
146
- - lib/sass/plugin/staleness_checker.rbc
147
- - lib/sass/plugin/staleness_checker.rb
148
- - lib/sass/plugin/configuration.rbc
149
- - lib/sass/plugin/generic.rb
150
- - lib/sass/environment.rb
84
+ - lib/sass/tree/import_node.rb
85
+ - lib/sass/tree/while_node.rb
151
86
  - lib/sass/callbacks.rb
152
- - lib/sass/selector/simple_sequence.rb
153
- - lib/sass/selector/comma_sequence.rbc
154
- - lib/sass/selector/sequence.rbc
155
- - lib/sass/selector/simple.rbc
156
- - lib/sass/selector/abstract_sequence.rbc
157
- - lib/sass/selector/simple_sequence.rbc
158
- - lib/sass/selector/abstract_sequence.rb
159
- - lib/sass/selector/comma_sequence.rb
160
- - lib/sass/selector/sequence.rb
161
- - lib/sass/selector/simple.rb
162
- - lib/sass/selector.rb
163
87
  - lib/sass/files.rb
164
- - lib/sass/script.rbc
165
88
  - lib/sass/scss.rb
166
- - lib/sass/engine.rb
167
- - lib/sass/scss.rbc
168
- - lib/sass/callbacks.rbc
169
89
  - lib/sass/plugin.rb
170
- - lib/sass/less.rbc
171
- - lib/sass/selector.rbc
172
- - lib/sass/scss/static_parser.rb
173
- - lib/sass/scss/script_parser.rbc
174
- - lib/sass/scss/sass_parser.rb
175
- - lib/sass/scss/static_parser.rbc
90
+ - lib/sass/script/parser.rb
91
+ - lib/sass/script/color.rb
92
+ - lib/sass/script/string.rb
93
+ - lib/sass/script/unary_operation.rb
94
+ - lib/sass/script/number.rb
95
+ - lib/sass/script/funcall.rb
96
+ - lib/sass/script/variable.rb
97
+ - lib/sass/script/css_parser.rb
98
+ - lib/sass/script/functions.rb
99
+ - lib/sass/script/bool.rb
100
+ - lib/sass/script/css_lexer.rb
101
+ - lib/sass/script/lexer.rb
102
+ - lib/sass/script/string_interpolation.rb
103
+ - lib/sass/script/operation.rb
104
+ - lib/sass/script/node.rb
105
+ - lib/sass/script/literal.rb
106
+ - lib/sass/script/interpolation.rb
107
+ - lib/sass/css.rb
108
+ - lib/sass/engine.rb
109
+ - lib/sass/less.rb
110
+ - lib/sass/selector.rb
111
+ - lib/sass/scss/parser.rb
112
+ - lib/sass/scss/script_parser.rb
176
113
  - lib/sass/scss/rx.rb
177
114
  - lib/sass/scss/script_lexer.rb
178
- - lib/sass/scss/sass_parser.rbc
179
- - lib/sass/scss/parser.rb
180
115
  - lib/sass/scss/css_parser.rb
181
- - lib/sass/scss/rx.rbc
182
- - lib/sass/scss/script_lexer.rbc
183
- - lib/sass/scss/parser.rbc
184
- - lib/sass/scss/css_parser.rbc
185
- - lib/sass/scss/script_parser.rb
186
- - lib/sass/less.rb
187
- - lib/sass/environment.rbc
188
- - lib/sass/files.rbc
189
- - lib/sass/engine.rbc
190
- - lib/sass/plugin.rbc
191
- - lib/sass.rbc
192
- - lib/haml/filters.rb
116
+ - lib/sass/scss/sass_parser.rb
117
+ - lib/sass/scss/static_parser.rb
118
+ - lib/sass/repl.rb
119
+ - lib/sass/environment.rb
120
+ - lib/haml/util.rb
193
121
  - lib/haml/exec.rb
194
- - lib/haml/util.rbc
195
122
  - lib/haml/railtie.rb
123
+ - lib/haml/html.rb
196
124
  - lib/haml/error.rb
197
- - lib/haml/version.rbc
198
- - lib/haml/error.rbc
199
- - lib/haml/helpers.rbc
200
- - lib/haml/util/subset_map.rbc
125
+ - lib/haml/buffer.rb
201
126
  - lib/haml/util/subset_map.rb
202
- - lib/haml/html/erb.rb
203
127
  - lib/haml/template.rb
204
- - lib/haml/root.rbc
205
- - lib/haml/filters.rbc
206
- - lib/haml/shared.rb
207
- - lib/haml/shared.rbc
208
- - lib/haml/engine.rb
209
- - lib/haml/version.rb
210
- - lib/haml/template/patch.rb
211
128
  - lib/haml/template/plugin.rb
129
+ - lib/haml/template/patch.rb
212
130
  - lib/haml/template/options.rb
213
131
  - lib/haml/helpers.rb
214
- - lib/haml/buffer.rbc
215
- - lib/haml/buffer.rb
216
- - lib/haml/html.rb
217
- - lib/haml/engine.rbc
218
132
  - lib/haml/root.rb
219
- - lib/haml/railtie.rbc
220
- - lib/haml/precompiler.rbc
133
+ - lib/haml/version.rb
134
+ - lib/haml/filters.rb
135
+ - lib/haml/engine.rb
136
+ - lib/haml/html/erb.rb
221
137
  - lib/haml/precompiler.rb
222
- - lib/haml/util.rb
138
+ - lib/haml/shared.rb
139
+ - lib/haml/helpers/action_view_extensions.rb
223
140
  - lib/haml/helpers/action_view_mods.rb
224
141
  - lib/haml/helpers/xss_mods.rb
225
- - lib/haml/helpers/action_view_extensions.rb
226
142
  - lib/haml.rb
227
- - vendor/fssm/Rakefile
228
- - vendor/fssm/profile/prof-pathname.rb
229
- - vendor/fssm/profile/prof-plain-pathname.html
230
- - vendor/fssm/profile/prof-cache.rb
231
- - vendor/fssm/profile/prof-fssm-pathname.html
232
- - vendor/fssm/profile/prof.html
233
- - vendor/fssm/example.rb
234
- - vendor/fssm/spec/spec_helper.rb
235
- - vendor/fssm/spec/path_spec.rb
236
- - vendor/fssm/spec/root/file.css
237
- - vendor/fssm/spec/root/file.yml
238
- - vendor/fssm/spec/root/moo/cow.txt
239
- - vendor/fssm/spec/root/file.rb
240
- - vendor/fssm/spec/root/duck/quack.txt
143
+ - vendor/fssm/README.markdown
241
144
  - vendor/fssm/lib/fssm.rb
242
- - vendor/fssm/lib/fssm/path.rb
243
145
  - vendor/fssm/lib/fssm/support.rb
244
- - vendor/fssm/lib/fssm/pathname.rb
245
146
  - vendor/fssm/lib/fssm/monitor.rb
246
- - vendor/fssm/lib/fssm/tree.rb
247
- - vendor/fssm/lib/fssm/state/directory.rb
248
- - vendor/fssm/lib/fssm/state/file.rb
249
- - vendor/fssm/lib/fssm/backends/polling.rb
147
+ - vendor/fssm/lib/fssm/pathname.rb
148
+ - vendor/fssm/lib/fssm/backends/inotify.rb
250
149
  - vendor/fssm/lib/fssm/backends/rubycocoa/fsevents.rb
251
150
  - vendor/fssm/lib/fssm/backends/fsevents.rb
252
- - vendor/fssm/lib/fssm/backends/inotify.rb
151
+ - vendor/fssm/lib/fssm/backends/polling.rb
152
+ - vendor/fssm/lib/fssm/path.rb
153
+ - vendor/fssm/lib/fssm/tree.rb
154
+ - vendor/fssm/lib/fssm/state/file.rb
155
+ - vendor/fssm/lib/fssm/state/directory.rb
156
+ - vendor/fssm/spec/spec_helper.rb
157
+ - vendor/fssm/spec/path_spec.rb
158
+ - vendor/fssm/spec/root/file.rb
159
+ - vendor/fssm/spec/root/file.yml
160
+ - vendor/fssm/spec/root/duck/quack.txt
161
+ - vendor/fssm/spec/root/file.css
162
+ - vendor/fssm/spec/root/moo/cow.txt
163
+ - vendor/fssm/profile/prof-plain-pathname.html
164
+ - vendor/fssm/profile/prof.html
165
+ - vendor/fssm/profile/prof-cache.rb
166
+ - vendor/fssm/profile/prof-fssm-pathname.html
167
+ - vendor/fssm/profile/prof-pathname.rb
168
+ - vendor/fssm/fssm.gemspec
253
169
  - vendor/fssm/VERSION.yml
170
+ - vendor/fssm/example.rb
171
+ - vendor/fssm/Rakefile
254
172
  - vendor/fssm/LICENSE
255
- - vendor/fssm/README.markdown
256
- - vendor/fssm/fssm.gemspec
257
- - bin/sass-convert
258
- - bin/sass
259
173
  - bin/css2sass
260
- - bin/html2haml
174
+ - bin/sass
261
175
  - bin/haml
262
- - test/test_helper.rbc
263
- - test/linked_rails.rb
264
- - test/benchmark.rb
265
- - test/linked_rails.rbc
266
- - test/sass/script_test.rb
267
- - test/sass/engine_test.rbc
268
- - test/sass/less_conversion_test.rb
269
- - test/sass/plugin_test.rbc
270
- - test/sass/css2sass_test.rb
271
- - test/sass/extend_test.rbc
272
- - test/sass/script_conversion_test.rb
176
+ - bin/sass-convert
177
+ - bin/html2haml
178
+ - test/sass/conversion_test.rb
273
179
  - test/sass/extend_test.rb
274
- - test/sass/data/hsl-rgb.txt
275
- - test/sass/less_conversion_test.rbc
276
- - test/sass/results/warn_imported.css
277
- - test/sass/results/units.css
278
- - test/sass/results/parent_ref.css
279
- - test/sass/results/compressed.css
280
- - test/sass/results/warn.css
281
- - test/sass/results/complex.css
282
- - test/sass/results/compact.css
283
- - test/sass/results/mixins.css
284
- - test/sass/results/line_numbers.css
285
- - test/sass/results/alt.css
286
- - test/sass/results/subdir/subdir.css
287
- - test/sass/results/subdir/nested_subdir/nested_subdir.css
288
- - test/sass/results/options.css
289
- - test/sass/results/nested.css
290
- - test/sass/results/import.css
291
- - test/sass/results/multiline.css
292
- - test/sass/results/script.css
293
- - test/sass/results/basic.css
294
- - test/sass/results/scss_import.css
295
- - test/sass/results/expanded.css
296
- - test/sass/results/scss_importee.css
297
- - test/sass/more_results/more_import.css
180
+ - test/sass/less_conversion_test.rb
181
+ - test/sass/script_test.rb
298
182
  - test/sass/more_results/more1_with_line_comments.css
299
183
  - test/sass/more_results/more1.css
300
- - test/sass/conversion_test.rb
301
- - test/sass/templates/basic.sass
302
- - test/sass/templates/nested_mixin_bork.sass
303
- - test/sass/templates/nested_bork4.sass
184
+ - test/sass/more_results/more_import.css
185
+ - test/sass/script_conversion_test.rb
186
+ - test/sass/templates/bork2.sass
304
187
  - test/sass/templates/compressed.sass
305
- - test/sass/templates/nested_bork2.sass
306
- - test/sass/templates/importee.less
307
- - test/sass/templates/import.sass
308
- - test/sass/templates/script.sass
309
188
  - test/sass/templates/expanded.sass
310
- - test/sass/templates/nested.sass
311
- - test/sass/templates/_partial.sass
312
- - test/sass/templates/line_numbers.sass
313
- - test/sass/templates/compact.sass
189
+ - test/sass/templates/bork4.sass
190
+ - test/sass/templates/nested_bork1.sass
191
+ - test/sass/templates/import.sass
314
192
  - test/sass/templates/subdir/subdir.sass
315
- - test/sass/templates/subdir/nested_subdir/nested_subdir.sass
316
193
  - test/sass/templates/subdir/nested_subdir/_nested_partial.sass
194
+ - test/sass/templates/subdir/nested_subdir/nested_subdir.sass
195
+ - test/sass/templates/_partial.sass
317
196
  - test/sass/templates/options.sass
197
+ - test/sass/templates/units.sass
198
+ - test/sass/templates/nested_bork4.sass
199
+ - test/sass/templates/mixins.sass
200
+ - test/sass/templates/nested_mixin_bork.sass
201
+ - test/sass/templates/multiline.sass
202
+ - test/sass/templates/line_numbers.sass
203
+ - test/sass/templates/nested.sass
204
+ - test/sass/templates/compact.sass
205
+ - test/sass/templates/nested_bork2.sass
206
+ - test/sass/templates/alt.sass
207
+ - test/sass/templates/bork3.sass
208
+ - test/sass/templates/mixin_bork.sass
318
209
  - test/sass/templates/warn.sass
319
210
  - test/sass/templates/nested_bork3.sass
320
- - test/sass/templates/nested_bork1.sass
321
- - test/sass/templates/scss_import.scss
322
- - test/sass/templates/bork4.sass
323
- - test/sass/templates/warn_imported.sass
324
- - test/sass/templates/parent_ref.sass
325
- - test/sass/templates/alt.sass
211
+ - test/sass/templates/script.sass
326
212
  - test/sass/templates/importee.sass
327
- - test/sass/templates/mixin_bork.sass
328
- - test/sass/templates/mixins.sass
329
- - test/sass/templates/multiline.sass
213
+ - test/sass/templates/warn_imported.sass
330
214
  - test/sass/templates/scss_importee.scss
331
- - test/sass/templates/units.sass
215
+ - test/sass/templates/parent_ref.sass
216
+ - test/sass/templates/scss_import.scss
332
217
  - test/sass/templates/bork1.sass
218
+ - test/sass/templates/importee.less
333
219
  - test/sass/templates/complex.sass
334
- - test/sass/templates/bork3.sass
335
- - test/sass/templates/bork2.sass
220
+ - test/sass/css2sass_test.rb
221
+ - test/sass/plugin_test.rb
336
222
  - test/sass/callbacks_test.rb
337
- - test/sass/more_templates/_more_partial.sass
338
223
  - test/sass/more_templates/more1.sass
339
224
  - test/sass/more_templates/more_import.sass
225
+ - test/sass/more_templates/_more_partial.sass
340
226
  - test/sass/functions_test.rb
341
- - test/sass/engine_test.rb
342
227
  - test/sass/scss/css_test.rb
343
- - test/sass/scss/scss_test.rb
344
228
  - test/sass/scss/test_helper.rb
229
+ - test/sass/scss/scss_test.rb
345
230
  - test/sass/scss/rx_test.rb
346
- - test/sass/plugin_test.rb
347
- - test/haml/engine_test.rbc
231
+ - test/sass/data/hsl-rgb.txt
232
+ - test/sass/results/nested.css
233
+ - test/sass/results/warn.css
234
+ - test/sass/results/units.css
235
+ - test/sass/results/scss_importee.css
236
+ - test/sass/results/script.css
237
+ - test/sass/results/subdir/nested_subdir/nested_subdir.css
238
+ - test/sass/results/subdir/subdir.css
239
+ - test/sass/results/import.css
240
+ - test/sass/results/options.css
241
+ - test/sass/results/warn_imported.css
242
+ - test/sass/results/compact.css
243
+ - test/sass/results/expanded.css
244
+ - test/sass/results/alt.css
245
+ - test/sass/results/mixins.css
246
+ - test/sass/results/scss_import.css
247
+ - test/sass/results/complex.css
248
+ - test/sass/results/compressed.css
249
+ - test/sass/results/parent_ref.css
250
+ - test/sass/results/line_numbers.css
251
+ - test/sass/results/multiline.css
252
+ - test/sass/results/basic.css
253
+ - test/sass/engine_test.rb
348
254
  - test/haml/mocks/article.rb
349
255
  - test/haml/util_test.rb
350
256
  - test/haml/spec_test.rb
351
- - test/haml/spec/ruby_haml_test.rb
352
- - test/haml/spec/README.md
353
- - test/haml/spec/lua_haml_spec.lua
354
- - test/haml/spec/tests.json
355
- - test/haml/html2haml_test.rb
356
257
  - test/haml/template_test.rb
357
- - test/haml/util/subset_map_test.rb
258
+ - test/haml/html2haml_test.rb
358
259
  - test/haml/helper_test.rb
359
- - test/haml/results/tag_parsing.xhtml
360
- - test/haml/results/content_for_layout.xhtml
361
- - test/haml/results/helpers.xhtml
362
- - test/haml/results/original_engine.xhtml
363
- - test/haml/results/very_basic.xhtml
364
- - test/haml/results/helpful.xhtml
365
- - test/haml/results/list.xhtml
366
- - test/haml/results/partials.xhtml
367
- - test/haml/results/eval_suppressed.xhtml
368
- - test/haml/results/nuke_inner_whitespace.xhtml
369
- - test/haml/results/whitespace_handling.xhtml
370
- - test/haml/results/render_layout.xhtml
371
- - test/haml/results/silent_script.xhtml
372
- - test/haml/results/standard.xhtml
373
- - test/haml/results/just_stuff.xhtml
374
- - test/haml/results/partial_layout.xhtml
375
- - test/haml/results/filters.xhtml
376
- - test/haml/results/nuke_outer_whitespace.xhtml
377
- - test/haml/markaby/standard.mab
378
- - test/haml/templates/tag_parsing.haml
379
- - test/haml/templates/nuke_inner_whitespace.haml
260
+ - test/haml/util/subset_map_test.rb
261
+ - test/haml/templates/action_view_ugly.haml
262
+ - test/haml/templates/list.haml
263
+ - test/haml/templates/_text_area.haml
264
+ - test/haml/templates/_partial.haml
265
+ - test/haml/templates/nuke_outer_whitespace.haml
266
+ - test/haml/templates/render_layout.haml
267
+ - test/haml/templates/_av_partial_2.haml
380
268
  - test/haml/templates/partial_layout.haml
381
- - test/haml/templates/_av_partial_2_ugly.haml
269
+ - test/haml/templates/helpful.haml
270
+ - test/haml/templates/_av_partial_1_ugly.haml
271
+ - test/haml/templates/just_stuff.haml
272
+ - test/haml/templates/standard_ugly.haml
273
+ - test/haml/templates/silent_script.haml
274
+ - test/haml/templates/very_basic.haml
275
+ - test/haml/templates/nuke_inner_whitespace.haml
276
+ - test/haml/templates/eval_suppressed.haml
277
+ - test/haml/templates/tag_parsing.haml
278
+ - test/haml/templates/whitespace_handling.haml
382
279
  - test/haml/templates/partials.haml
280
+ - test/haml/templates/standard.haml
281
+ - test/haml/templates/partialize.haml
383
282
  - test/haml/templates/_layout_for_partial.haml
384
- - test/haml/templates/original_engine.haml
385
- - test/haml/templates/helpers.haml
283
+ - test/haml/templates/_av_partial_1.haml
284
+ - test/haml/templates/filters.haml
386
285
  - test/haml/templates/_layout.erb
387
- - test/haml/templates/action_view_ugly.haml
388
286
  - test/haml/templates/content_for_layout.haml
389
- - test/haml/templates/silent_script.haml
390
- - test/haml/templates/very_basic.haml
391
- - test/haml/templates/render_layout.haml
392
- - test/haml/templates/filters.haml
393
- - test/haml/templates/_av_partial_1.haml
394
- - test/haml/templates/standard_ugly.haml
395
- - test/haml/templates/_partial.haml
396
- - test/haml/templates/nuke_outer_whitespace.haml
287
+ - test/haml/templates/_av_partial_2_ugly.haml
288
+ - test/haml/templates/helpers.haml
289
+ - test/haml/templates/original_engine.haml
397
290
  - test/haml/templates/breakage.haml
398
- - test/haml/templates/list.haml
399
- - test/haml/templates/standard.haml
400
- - test/haml/templates/whitespace_handling.haml
401
- - test/haml/templates/eval_suppressed.haml
402
291
  - test/haml/templates/action_view.haml
403
- - test/haml/templates/_av_partial_2.haml
404
- - test/haml/templates/partialize.haml
405
- - test/haml/templates/just_stuff.haml
406
- - test/haml/templates/helpful.haml
407
- - test/haml/templates/_av_partial_1_ugly.haml
408
- - test/haml/templates/_text_area.haml
409
- - test/haml/html2haml/erb_tests.rb
410
- - test/haml/engine_test.rb
411
- - test/haml/erb/_av_partial_2.erb
292
+ - test/haml/spec/tests.json
293
+ - test/haml/spec/lua_haml_spec.lua
294
+ - test/haml/spec/ruby_haml_test.rb
295
+ - test/haml/spec/README.md
412
296
  - test/haml/erb/action_view.erb
297
+ - test/haml/erb/_av_partial_2.erb
413
298
  - test/haml/erb/_av_partial_1.erb
414
299
  - test/haml/erb/standard.erb
300
+ - test/haml/html2haml/erb_tests.rb
301
+ - test/haml/results/content_for_layout.xhtml
302
+ - test/haml/results/just_stuff.xhtml
303
+ - test/haml/results/whitespace_handling.xhtml
304
+ - test/haml/results/nuke_outer_whitespace.xhtml
305
+ - test/haml/results/silent_script.xhtml
306
+ - test/haml/results/filters.xhtml
307
+ - test/haml/results/standard.xhtml
308
+ - test/haml/results/nuke_inner_whitespace.xhtml
309
+ - test/haml/results/helpful.xhtml
310
+ - test/haml/results/very_basic.xhtml
311
+ - test/haml/results/eval_suppressed.xhtml
312
+ - test/haml/results/partials.xhtml
313
+ - test/haml/results/render_layout.xhtml
314
+ - test/haml/results/original_engine.xhtml
315
+ - test/haml/results/helpers.xhtml
316
+ - test/haml/results/list.xhtml
317
+ - test/haml/results/partial_layout.xhtml
318
+ - test/haml/results/tag_parsing.xhtml
319
+ - test/haml/markaby/standard.mab
320
+ - test/haml/engine_test.rb
321
+ - test/linked_rails.rb
322
+ - test/benchmark.rb
415
323
  - test/test_helper.rb
416
- - extra/haml-mode.el
417
324
  - extra/sass-mode.el
325
+ - extra/haml-mode.el
418
326
  - extra/update_watch.rb
419
327
  - Rakefile
420
328
  - init.rb
421
329
  - .yardopts
422
- - VERSION_NAME
423
- - CONTRIBUTING
424
- - README.md
425
- - MIT-LICENSE
426
330
  - VERSION
331
+ - MIT-LICENSE
332
+ - README.md
333
+ - VERSION_NAME
427
334
  - REVISION
335
+ - CONTRIBUTING
428
336
  has_rdoc: true
429
337
  homepage: http://haml-lang.com/
430
338
  licenses: []
@@ -445,42 +353,40 @@ required_ruby_version: !ruby/object:Gem::Requirement
445
353
  requirements:
446
354
  - - ">="
447
355
  - !ruby/object:Gem::Version
448
- segments:
449
- - 0
450
356
  version: "0"
357
+ version:
451
358
  required_rubygems_version: !ruby/object:Gem::Requirement
452
359
  requirements:
453
360
  - - ">="
454
361
  - !ruby/object:Gem::Version
455
- segments:
456
- - 0
457
362
  version: "0"
363
+ version:
458
364
  requirements: []
459
365
 
460
366
  rubyforge_project: haml
461
- rubygems_version: 1.3.6
367
+ rubygems_version: 1.3.5
462
368
  signing_key:
463
369
  specification_version: 3
464
370
  summary: An elegant, structured XHTML/XML templating engine. Comes with Sass, a similar CSS templating engine.
465
371
  test_files:
466
- - test/sass/script_test.rb
372
+ - test/sass/conversion_test.rb
373
+ - test/sass/extend_test.rb
467
374
  - test/sass/less_conversion_test.rb
468
- - test/sass/css2sass_test.rb
375
+ - test/sass/script_test.rb
469
376
  - test/sass/script_conversion_test.rb
470
- - test/sass/extend_test.rb
471
- - test/sass/conversion_test.rb
377
+ - test/sass/css2sass_test.rb
378
+ - test/sass/plugin_test.rb
472
379
  - test/sass/callbacks_test.rb
473
380
  - test/sass/functions_test.rb
474
- - test/sass/engine_test.rb
475
381
  - test/sass/scss/css_test.rb
476
382
  - test/sass/scss/scss_test.rb
477
383
  - test/sass/scss/rx_test.rb
478
- - test/sass/plugin_test.rb
384
+ - test/sass/engine_test.rb
479
385
  - test/haml/util_test.rb
480
386
  - test/haml/spec_test.rb
481
- - test/haml/spec/ruby_haml_test.rb
482
- - test/haml/html2haml_test.rb
483
387
  - test/haml/template_test.rb
484
- - test/haml/util/subset_map_test.rb
388
+ - test/haml/html2haml_test.rb
485
389
  - test/haml/helper_test.rb
390
+ - test/haml/util/subset_map_test.rb
391
+ - test/haml/spec/ruby_haml_test.rb
486
392
  - test/haml/engine_test.rb