haml 2.2.6 → 2.2.8

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.

data/Rakefile CHANGED
@@ -93,6 +93,11 @@ task :release_elpa do
93
93
  next if haml_unchanged && sass_unchanged
94
94
  raise "haml-mode.el and sass-mode.el are out of sync." if haml_unchanged ^ sass_unchanged
95
95
 
96
+ if sass_unchanged && File.read("extra/sass-mode.el").
97
+ include?(";; Package-Requires: ((haml-mode #{sass_unchanged.inspect}))")
98
+ raise "sass-mode.el doesn't require the same version of haml-mode."
99
+ end
100
+
96
101
  rev = File.read('.git/HEAD').strip
97
102
  if rev =~ /^ref: (.*)$/
98
103
  rev = File.read(".git/#{$1}").strip
@@ -154,10 +159,11 @@ end
154
159
  #
155
160
  # @param mode [String, Symbol] The name of the mode
156
161
  # @param version [String] The version number
162
+ # @return [String, nil] The version number if the version has changed
157
163
  def mode_unchanged?(mode, version)
158
164
  mode_version = File.read("extra/#{mode}-mode.el").scan(/^;; Version: (.*)$/).first.first
159
165
  return false if mode_version == version
160
- return true unless changed_since?(mode_version, "extra/#{mode}-mode.el")
166
+ return mode_version unless changed_since?(mode_version, "extra/#{mode}-mode.el")
161
167
  raise "#{mode}-mode.el version is #{version.inspect}, but it has changed as of #{version.inspect}"
162
168
  return false
163
169
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.6
1
+ 2.2.8
@@ -4,7 +4,7 @@
4
4
 
5
5
  ;; Author: Nathan Weizenbaum
6
6
  ;; URL: http://github.com/nex3/haml/tree/master
7
- ;; Version: 2.2.6
7
+ ;; Version: 2.2.7
8
8
  ;; Created: 2007-03-08
9
9
  ;; By: Nathan Weizenbaum
10
10
  ;; Keywords: markup, language, html
@@ -4,10 +4,11 @@
4
4
 
5
5
  ;; Author: Nathan Weizenbaum
6
6
  ;; URL: http://github.com/nex3/haml/tree/master
7
- ;; Version: 2.2.6
7
+ ;; Version: 2.2.7
8
8
  ;; Created: 2007-03-15
9
9
  ;; By: Nathan Weizenbaum
10
10
  ;; Keywords: markup, language, css
11
+ ;; Package-Requires: ((haml-mode "2.2.7"))
11
12
 
12
13
  ;;; Commentary:
13
14
 
@@ -72,9 +72,10 @@ module Haml
72
72
  :suppress_eval => false,
73
73
  :attr_wrapper => "'",
74
74
 
75
- # Don't forget to update the docs in lib/haml.rb if you update these
75
+ # Don't forget to update the docs in doc-src/HAML_REFERENCE.md
76
+ # if you update these
76
77
  :autoclose => %w[meta img link br hr input area param col base],
77
- :preserve => %w[textarea pre],
78
+ :preserve => %w[textarea pre code],
78
79
 
79
80
  :filename => '(haml)',
80
81
  :line => 1,
@@ -473,7 +473,7 @@ END
473
473
  # @param text [String] The string to sanitize
474
474
  # @return [String] The sanitized string
475
475
  def html_escape(text)
476
- text.to_s.gsub(/[\"><&]/) { |s| HTML_ESCAPE[s] }
476
+ text.to_s.gsub(/[\"><&]/n) {|s| HTML_ESCAPE[s]}
477
477
  end
478
478
 
479
479
  # Escapes HTML entities in `text`, but without escaping an ampersand
@@ -482,7 +482,7 @@ END
482
482
  # @param text [String] The string to sanitize
483
483
  # @return [String] The sanitized string
484
484
  def escape_once(text)
485
- text.to_s.gsub(/[\"><]|&(?!([a-zA-Z]+|(#\d+));)/) { |s| HTML_ESCAPE[s] }
485
+ text.to_s.gsub(/[\"><]|&(?!(?:[a-zA-Z]+|(#\d+));)/n) {|s| HTML_ESCAPE[s]}
486
486
  end
487
487
 
488
488
  # Returns whether or not the current template is a Haml template.
@@ -25,6 +25,7 @@ module Haml
25
25
 
26
26
  def parse_text(text, tabs)
27
27
  text.strip!
28
+ text.gsub!('#{', '\#{') #'
28
29
  if text.empty?
29
30
  String.new
30
31
  else
@@ -202,7 +203,7 @@ module Haml
202
203
  full_match = nil
203
204
  ruby_value = value.gsub(%r{<haml:loud>\s*(.+?)\s*</haml:loud>}) do
204
205
  full_match = $`.empty? && $'.empty?
205
- full_match ? $1: "\#{#{$1}}"
206
+ CGI.unescapeHTML(full_match ? $1: "\#{#{$1}}")
206
207
  end
207
208
  next if ruby_value == value
208
209
  [name, full_match ? ruby_value : %("#{ruby_value}")]
@@ -186,7 +186,7 @@ END
186
186
  return unless line.tabs <= @template_tabs && @template_tabs > 0
187
187
 
188
188
  to_close = @template_tabs - line.tabs
189
- to_close.times { |i| close unless to_close - 1 - i == 0 && mid_block_keyword?(line.text) }
189
+ to_close.times {|i| close unless to_close - 1 - i == 0 && mid_block_keyword?(line.text)}
190
190
  end
191
191
 
192
192
  # Processes a single line of Haml.
@@ -228,12 +228,27 @@ END
228
228
  newline_now
229
229
 
230
230
  # Handle stuff like - end.join("|")
231
- @to_close_stack.first << false if text =~ /^-\s*end\b/ && !block_opened?
231
+ @to_close_stack.last << false if text =~ /^-\s*end\b/ && !block_opened?
232
232
 
233
233
  case_stmt = text =~ /^-\s*case\b/
234
- block = block_opened? && !mid_block_keyword?(text)
235
- push_and_tabulate([:script]) if block || case_stmt
236
- push_and_tabulate(:nil) if block && case_stmt
234
+ keyword = mid_block_keyword?(text)
235
+ block = block_opened? && !keyword
236
+
237
+ # It's important to preserve tabulation modification for keywords
238
+ # that involve choosing between posible blocks of code.
239
+ if %w[else elsif when].include?(keyword)
240
+ @dont_indent_next_line, @dont_tab_up_next_text = @to_close_stack.last[1..2]
241
+
242
+ # when is unusual in that either it will be indented twice,
243
+ # or the case won't have created its own indentation
244
+ if keyword == "when"
245
+ push_and_tabulate([:script, @dont_indent_next_line, @dont_tab_up_next_text, false])
246
+ end
247
+ elsif block || case_stmt
248
+ push_and_tabulate([:script, @dont_indent_next_line, @dont_tab_up_next_text])
249
+ elsif block && case_stmt
250
+ push_and_tabulate([:script, @dont_indent_next_line, @dont_tab_up_next_text])
251
+ end
237
252
  when FILTER; start_filtered(text[1..-1].downcase)
238
253
  when DOCTYPE
239
254
  return render_doctype(text) if text[0...3] == '!!!'
@@ -247,10 +262,11 @@ END
247
262
  end
248
263
  end
249
264
 
250
- # Returns whether or not the text is a silent script text with one
251
- # of Ruby's mid-block keywords.
265
+ # If the text is a silent script text with one of Ruby's mid-block keywords,
266
+ # returns the name of that keyword.
267
+ # Otherwise, returns nil.
252
268
  def mid_block_keyword?(text)
253
- MID_BLOCK_KEYWORD_REGEX =~ text
269
+ text[MID_BLOCK_KEYWORD_REGEX, 1]
254
270
  end
255
271
 
256
272
  # Evaluates <tt>text</tt> in the context of the scope object, but
@@ -398,7 +414,7 @@ END
398
414
  end
399
415
 
400
416
  # Closes a Ruby block.
401
- def close_script(push_end = true)
417
+ def close_script(_1, _2, push_end = true)
402
418
  push_silent("end", true) if push_end
403
419
  @template_tabs -= 1
404
420
  end
@@ -433,7 +449,7 @@ END
433
449
  @template_tabs -= 1
434
450
  end
435
451
 
436
- def close_nil
452
+ def close_nil(*args)
437
453
  @template_tabs -= 1
438
454
  end
439
455
 
@@ -227,6 +227,19 @@ HAML
227
227
  SOURCE
228
228
  end
229
229
 
230
+ def test_pre_code
231
+ assert_equal(<<HTML, render(<<HAML))
232
+ <pre><code>Foo&#x000A; bar&#x000A; baz</code></pre>
233
+ HTML
234
+ %pre
235
+ %code
236
+ :preserve
237
+ Foo
238
+ bar
239
+ baz
240
+ HAML
241
+ end
242
+
230
243
  def test_boolean_attributes
231
244
  assert_equal("<p bar baz='true' foo='bar'></p>\n",
232
245
  render("%p{:foo => 'bar', :bar => true, :baz => 'true'}", :format => :html4))
@@ -263,6 +276,36 @@ HTML
263
276
  HAML
264
277
  end
265
278
 
279
+ def test_whitespace_nuke_with_tags_and_else
280
+ assert_equal(<<HTML, render(<<HAML))
281
+ <a>
282
+ <b>foo</b>
283
+ </a>
284
+ HTML
285
+ %a
286
+ %b<
287
+ - if false
288
+ = "foo"
289
+ - else
290
+ foo
291
+ HAML
292
+
293
+ assert_equal(<<HTML, render(<<HAML))
294
+ <a>
295
+ <b>
296
+ foo
297
+ </b>
298
+ </a>
299
+ HTML
300
+ %a
301
+ %b
302
+ - if false
303
+ = "foo"
304
+ - else
305
+ foo
306
+ HAML
307
+ end
308
+
266
309
  def test_both_case_indentation_work_with_deeply_nested_code
267
310
  result = <<RESULT
268
311
  <h2>
@@ -329,6 +372,24 @@ HTML
329
372
  HAML
330
373
  end
331
374
 
375
+ def test_nested_end_with_method_call
376
+ assert_equal(<<HTML, render(<<HAML))
377
+ <p>
378
+ 2|3|4
379
+ b-a-r
380
+ </p>
381
+ HTML
382
+ %p
383
+ = [1, 2, 3].map do |i|
384
+ - i + 1
385
+ - end.join("|")
386
+ = "bar".gsub(/./) do |s|
387
+ - s + "-"
388
+ - end.gsub(/-$/) do |s|
389
+ - ''
390
+ HAML
391
+ end
392
+
332
393
  def test_silent_end_with_stuff
333
394
  assert_equal(<<HTML, render(<<HAML))
334
395
  e
@@ -32,6 +32,14 @@ class Html2HamlTest < Test::Unit::TestCase
32
32
  assert_equal "/\n IE sucks", render('<!-- IE sucks -->')
33
33
  end
34
34
 
35
+ def test_interpolation
36
+ assert_equal('Foo \#{bar} baz', render('Foo #{bar} baz'))
37
+ end
38
+
39
+ def test_interpolation_in_attrs
40
+ assert_equal('%p{ :foo => "\#{bar} baz" }', render('<p foo="#{bar} baz"></p>'))
41
+ end
42
+
35
43
  def test_rhtml
36
44
  assert_equal '- foo = bar', render_rhtml('<% foo = bar %>')
37
45
  assert_equal '- foo = bar', render_rhtml('<% foo = bar -%>')
@@ -64,6 +72,11 @@ class Html2HamlTest < Test::Unit::TestCase
64
72
  render_rhtml(%Q{<div class="<%= 12 %>!">Bang!</div>})
65
73
  end
66
74
 
75
+ def test_rhtml_in_html_escaped_attribute
76
+ assert_equal %(%div{ :class => "foo" }\n Bang!),
77
+ render_rhtml(%Q{<div class="<%= "foo" %>">Bang!</div>})
78
+ end
79
+
67
80
  def test_rhtml_in_attribute_to_multiple_interpolations
68
81
  assert_equal %(%div{ :class => "\#{12} + \#{13}" }\n Math is super),
69
82
  render_rhtml(%Q{<div class="<%= 12 %> + <%= 13 %>">Math is super</div>})
@@ -90,6 +103,15 @@ HAML
90
103
  HTML
91
104
  end
92
105
 
106
+ def test_interpolation_in_rhtml
107
+ assert_equal('= "Foo #{bar} baz"', render_rhtml('<%= "Foo #{bar} baz" %>'))
108
+ end
109
+
110
+ def test_interpolation_in_rhtml_attrs
111
+ assert_equal('%p{ :foo => "#{bar} baz" }',
112
+ render_rhtml('<p foo="<%= "#{bar} baz" %>"></p>'))
113
+ end
114
+
93
115
  protected
94
116
 
95
117
  def render(text, options = {})
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.6
4
+ version: 2.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nathan Weizenbaum
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2009-09-27 00:00:00 -07:00
13
+ date: 2009-10-11 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
@@ -43,199 +43,199 @@ executables:
43
43
  extensions: []
44
44
 
45
45
  extra_rdoc_files:
46
- - VERSION
47
- - MIT-LICENSE
48
- - README.md
49
46
  - VERSION_NAME
50
- - REVISION
51
47
  - CONTRIBUTING
48
+ - README.md
49
+ - MIT-LICENSE
50
+ - VERSION
51
+ - REVISION
52
52
  files:
53
53
  - rails/init.rb
54
54
  - lib/sass.rb
55
- - lib/sass/plugin/rails.rb
56
- - lib/sass/plugin/merb.rb
55
+ - lib/sass/css.rb
56
+ - lib/sass/script/node.rb
57
+ - lib/sass/script/number.rb
58
+ - lib/sass/script/operation.rb
59
+ - lib/sass/script/literal.rb
60
+ - lib/sass/script/functions.rb
61
+ - lib/sass/script/bool.rb
62
+ - lib/sass/script/color.rb
63
+ - lib/sass/script/lexer.rb
64
+ - lib/sass/script/parser.rb
65
+ - lib/sass/script/variable.rb
66
+ - lib/sass/script/string.rb
67
+ - lib/sass/script/funcall.rb
68
+ - lib/sass/script/unary_operation.rb
57
69
  - lib/sass/script.rb
58
70
  - lib/sass/error.rb
71
+ - lib/sass/repl.rb
72
+ - lib/sass/tree/comment_node.rb
73
+ - lib/sass/tree/node.rb
59
74
  - lib/sass/tree/for_node.rb
60
- - lib/sass/tree/mixin_node.rb
61
- - lib/sass/tree/if_node.rb
62
- - lib/sass/tree/prop_node.rb
63
- - lib/sass/tree/mixin_def_node.rb
64
- - lib/sass/tree/variable_node.rb
65
75
  - lib/sass/tree/debug_node.rb
66
- - lib/sass/tree/directive_node.rb
67
- - lib/sass/tree/node.rb
68
- - lib/sass/tree/comment_node.rb
69
- - lib/sass/tree/rule_node.rb
70
76
  - lib/sass/tree/import_node.rb
71
77
  - lib/sass/tree/while_node.rb
78
+ - lib/sass/tree/mixin_def_node.rb
79
+ - lib/sass/tree/if_node.rb
80
+ - lib/sass/tree/mixin_node.rb
81
+ - lib/sass/tree/directive_node.rb
82
+ - lib/sass/tree/rule_node.rb
83
+ - lib/sass/tree/prop_node.rb
84
+ - lib/sass/tree/variable_node.rb
85
+ - lib/sass/plugin/rails.rb
86
+ - lib/sass/plugin/merb.rb
87
+ - lib/sass/environment.rb
72
88
  - lib/sass/files.rb
73
- - lib/sass/plugin.rb
74
- - lib/sass/script/parser.rb
75
- - lib/sass/script/color.rb
76
- - lib/sass/script/string.rb
77
- - lib/sass/script/unary_operation.rb
78
- - lib/sass/script/number.rb
79
- - lib/sass/script/funcall.rb
80
- - lib/sass/script/variable.rb
81
- - lib/sass/script/functions.rb
82
- - lib/sass/script/bool.rb
83
- - lib/sass/script/lexer.rb
84
- - lib/sass/script/operation.rb
85
- - lib/sass/script/node.rb
86
- - lib/sass/script/literal.rb
87
- - lib/sass/css.rb
88
89
  - lib/sass/engine.rb
89
- - lib/sass/repl.rb
90
- - lib/sass/environment.rb
91
- - lib/haml/util.rb
90
+ - lib/sass/plugin.rb
91
+ - lib/haml/filters.rb
92
92
  - lib/haml/exec.rb
93
- - lib/haml/html.rb
94
93
  - lib/haml/error.rb
95
- - lib/haml/buffer.rb
96
94
  - lib/haml/template.rb
97
- - lib/haml/template/plugin.rb
95
+ - lib/haml/shared.rb
96
+ - lib/haml/engine.rb
97
+ - lib/haml/version.rb
98
98
  - lib/haml/template/patch.rb
99
+ - lib/haml/template/plugin.rb
99
100
  - lib/haml/helpers.rb
100
- - lib/haml/version.rb
101
- - lib/haml/filters.rb
102
- - lib/haml/engine.rb
101
+ - lib/haml/buffer.rb
102
+ - lib/haml/html.rb
103
103
  - lib/haml/precompiler.rb
104
- - lib/haml/shared.rb
105
- - lib/haml/helpers/action_view_extensions.rb
104
+ - lib/haml/util.rb
106
105
  - lib/haml/helpers/action_view_mods.rb
106
+ - lib/haml/helpers/action_view_extensions.rb
107
107
  - lib/haml.rb
108
- - bin/css2sass
109
108
  - bin/sass
110
- - bin/haml
109
+ - bin/css2sass
111
110
  - bin/html2haml
111
+ - bin/haml
112
+ - test/linked_rails.rb
113
+ - test/benchmark.rb
112
114
  - test/sass/script_test.rb
115
+ - test/sass/css2sass_test.rb
116
+ - test/sass/results/units.css
117
+ - test/sass/results/parent_ref.css
118
+ - test/sass/results/compressed.css
119
+ - test/sass/results/complex.css
120
+ - test/sass/results/compact.css
121
+ - test/sass/results/mixins.css
122
+ - test/sass/results/line_numbers.css
123
+ - test/sass/results/alt.css
124
+ - test/sass/results/subdir/subdir.css
125
+ - test/sass/results/subdir/nested_subdir/nested_subdir.css
126
+ - test/sass/results/nested.css
127
+ - test/sass/results/import.css
128
+ - test/sass/results/multiline.css
129
+ - test/sass/results/script.css
130
+ - test/sass/results/basic.css
131
+ - test/sass/results/expanded.css
132
+ - test/sass/more_results/more_import.css
113
133
  - test/sass/more_results/more1_with_line_comments.css
114
134
  - test/sass/more_results/more1.css
115
- - test/sass/more_results/more_import.css
116
- - test/sass/templates/bork2.sass
135
+ - test/sass/templates/basic.sass
136
+ - test/sass/templates/bork.sass
117
137
  - test/sass/templates/compressed.sass
118
- - test/sass/templates/expanded.sass
119
138
  - test/sass/templates/import.sass
120
- - test/sass/templates/subdir/subdir.sass
121
- - test/sass/templates/subdir/nested_subdir/_nested_partial.sass
122
- - test/sass/templates/subdir/nested_subdir/nested_subdir.sass
123
- - test/sass/templates/basic.sass
139
+ - test/sass/templates/script.sass
140
+ - test/sass/templates/expanded.sass
141
+ - test/sass/templates/nested.sass
124
142
  - test/sass/templates/_partial.sass
125
- - test/sass/templates/units.sass
126
- - test/sass/templates/mixins.sass
127
- - test/sass/templates/multiline.sass
128
143
  - test/sass/templates/line_numbers.sass
129
- - test/sass/templates/nested.sass
130
144
  - test/sass/templates/compact.sass
145
+ - test/sass/templates/subdir/subdir.sass
146
+ - test/sass/templates/subdir/nested_subdir/nested_subdir.sass
147
+ - test/sass/templates/subdir/nested_subdir/_nested_partial.sass
148
+ - test/sass/templates/parent_ref.sass
131
149
  - test/sass/templates/alt.sass
132
- - test/sass/templates/script.sass
133
150
  - test/sass/templates/importee.sass
134
- - test/sass/templates/parent_ref.sass
135
- - test/sass/templates/bork.sass
151
+ - test/sass/templates/mixins.sass
152
+ - test/sass/templates/multiline.sass
153
+ - test/sass/templates/units.sass
136
154
  - test/sass/templates/complex.sass
137
- - test/sass/css2sass_test.rb
138
- - test/sass/plugin_test.rb
155
+ - test/sass/templates/bork2.sass
156
+ - test/sass/more_templates/_more_partial.sass
139
157
  - test/sass/more_templates/more1.sass
140
158
  - test/sass/more_templates/more_import.sass
141
- - test/sass/more_templates/_more_partial.sass
142
159
  - test/sass/functions_test.rb
143
- - test/sass/results/nested.css
144
- - test/sass/results/units.css
145
- - test/sass/results/script.css
146
- - test/sass/results/subdir/nested_subdir/nested_subdir.css
147
- - test/sass/results/subdir/subdir.css
148
- - test/sass/results/import.css
149
- - test/sass/results/compact.css
150
- - test/sass/results/expanded.css
151
- - test/sass/results/alt.css
152
- - test/sass/results/mixins.css
153
- - test/sass/results/complex.css
154
- - test/sass/results/compressed.css
155
- - test/sass/results/parent_ref.css
156
- - test/sass/results/line_numbers.css
157
- - test/sass/results/multiline.css
158
- - test/sass/results/basic.css
159
160
  - test/sass/engine_test.rb
161
+ - test/sass/plugin_test.rb
160
162
  - test/haml/mocks/article.rb
161
- - test/haml/util_test.rb
162
- - test/haml/template_test.rb
163
- - test/haml/html2haml_test.rb
164
- - test/haml/rhtml/_av_partial_1.rhtml
163
+ - test/haml/rhtml/_av_partial_2.rhtml
165
164
  - test/haml/rhtml/standard.rhtml
165
+ - test/haml/rhtml/_av_partial_1.rhtml
166
166
  - test/haml/rhtml/action_view.rhtml
167
- - test/haml/rhtml/_av_partial_2.rhtml
168
- - test/haml/helper_test.rb
169
- - test/haml/templates/action_view_ugly.haml
170
- - test/haml/templates/list.haml
171
- - test/haml/templates/_text_area.haml
172
- - test/haml/templates/_partial.haml
173
- - test/haml/templates/nuke_outer_whitespace.haml
174
- - test/haml/templates/render_layout.haml
175
- - test/haml/templates/_av_partial_2.haml
176
- - test/haml/templates/partial_layout.haml
177
- - test/haml/templates/helpful.haml
178
- - test/haml/templates/_av_partial_1_ugly.haml
179
- - test/haml/templates/just_stuff.haml
180
- - test/haml/templates/standard_ugly.haml
181
- - test/haml/templates/silent_script.haml
182
- - test/haml/templates/very_basic.haml
183
- - test/haml/templates/nuke_inner_whitespace.haml
184
- - test/haml/templates/eval_suppressed.haml
185
- - test/haml/templates/tag_parsing.haml
186
- - test/haml/templates/whitespace_handling.haml
187
- - test/haml/templates/partials.haml
188
- - test/haml/templates/standard.haml
189
- - test/haml/templates/partialize.haml
190
- - test/haml/templates/_layout_for_partial.haml
191
- - test/haml/templates/_av_partial_1.haml
192
- - test/haml/templates/filters.haml
193
- - test/haml/templates/_layout.erb
194
- - test/haml/templates/content_for_layout.haml
195
- - test/haml/templates/_av_partial_2_ugly.haml
196
- - test/haml/templates/helpers.haml
197
- - test/haml/templates/original_engine.haml
198
- - test/haml/templates/breakage.haml
199
- - test/haml/templates/action_view.haml
200
- - test/haml/spec/tests.json
201
- - test/haml/spec/lua_haml_spec.lua
167
+ - test/haml/util_test.rb
202
168
  - test/haml/spec/ruby_haml_test.rb
203
169
  - test/haml/spec/README.md
170
+ - test/haml/spec/lua_haml_spec.lua
171
+ - test/haml/spec/tests.json
172
+ - test/haml/html2haml_test.rb
173
+ - test/haml/template_test.rb
174
+ - test/haml/helper_test.rb
175
+ - test/haml/results/tag_parsing.xhtml
204
176
  - test/haml/results/content_for_layout.xhtml
205
- - test/haml/results/just_stuff.xhtml
206
- - test/haml/results/whitespace_handling.xhtml
207
- - test/haml/results/nuke_outer_whitespace.xhtml
208
- - test/haml/results/silent_script.xhtml
209
- - test/haml/results/filters.xhtml
210
- - test/haml/results/standard.xhtml
211
- - test/haml/results/nuke_inner_whitespace.xhtml
212
- - test/haml/results/helpful.xhtml
177
+ - test/haml/results/helpers.xhtml
178
+ - test/haml/results/original_engine.xhtml
213
179
  - test/haml/results/very_basic.xhtml
214
- - test/haml/results/eval_suppressed.xhtml
180
+ - test/haml/results/helpful.xhtml
181
+ - test/haml/results/list.xhtml
215
182
  - test/haml/results/partials.xhtml
183
+ - test/haml/results/eval_suppressed.xhtml
184
+ - test/haml/results/nuke_inner_whitespace.xhtml
185
+ - test/haml/results/whitespace_handling.xhtml
216
186
  - test/haml/results/render_layout.xhtml
217
- - test/haml/results/original_engine.xhtml
218
- - test/haml/results/helpers.xhtml
219
- - test/haml/results/list.xhtml
187
+ - test/haml/results/silent_script.xhtml
188
+ - test/haml/results/standard.xhtml
189
+ - test/haml/results/just_stuff.xhtml
220
190
  - test/haml/results/partial_layout.xhtml
221
- - test/haml/results/tag_parsing.xhtml
191
+ - test/haml/results/filters.xhtml
192
+ - test/haml/results/nuke_outer_whitespace.xhtml
222
193
  - test/haml/markaby/standard.mab
194
+ - test/haml/templates/tag_parsing.haml
195
+ - test/haml/templates/nuke_inner_whitespace.haml
196
+ - test/haml/templates/partial_layout.haml
197
+ - test/haml/templates/_av_partial_2_ugly.haml
198
+ - test/haml/templates/partials.haml
199
+ - test/haml/templates/_layout_for_partial.haml
200
+ - test/haml/templates/original_engine.haml
201
+ - test/haml/templates/helpers.haml
202
+ - test/haml/templates/_layout.erb
203
+ - test/haml/templates/action_view_ugly.haml
204
+ - test/haml/templates/content_for_layout.haml
205
+ - test/haml/templates/silent_script.haml
206
+ - test/haml/templates/very_basic.haml
207
+ - test/haml/templates/render_layout.haml
208
+ - test/haml/templates/filters.haml
209
+ - test/haml/templates/_av_partial_1.haml
210
+ - test/haml/templates/standard_ugly.haml
211
+ - test/haml/templates/_partial.haml
212
+ - test/haml/templates/nuke_outer_whitespace.haml
213
+ - test/haml/templates/breakage.haml
214
+ - test/haml/templates/list.haml
215
+ - test/haml/templates/standard.haml
216
+ - test/haml/templates/whitespace_handling.haml
217
+ - test/haml/templates/eval_suppressed.haml
218
+ - test/haml/templates/action_view.haml
219
+ - test/haml/templates/_av_partial_2.haml
220
+ - test/haml/templates/partialize.haml
221
+ - test/haml/templates/just_stuff.haml
222
+ - test/haml/templates/helpful.haml
223
+ - test/haml/templates/_av_partial_1_ugly.haml
224
+ - test/haml/templates/_text_area.haml
223
225
  - test/haml/engine_test.rb
224
- - test/linked_rails.rb
225
- - test/benchmark.rb
226
226
  - test/test_helper.rb
227
- - extra/sass-mode.el
228
227
  - extra/haml-mode.el
228
+ - extra/sass-mode.el
229
229
  - extra/update_watch.rb
230
230
  - Rakefile
231
231
  - init.rb
232
232
  - .yardopts
233
- - VERSION
234
- - MIT-LICENSE
235
- - README.md
236
233
  - VERSION_NAME
237
- - REVISION
238
234
  - CONTRIBUTING
235
+ - README.md
236
+ - MIT-LICENSE
237
+ - VERSION
238
+ - REVISION
239
239
  has_rdoc: true
240
240
  homepage: http://haml.hamptoncatlin.com/
241
241
  licenses: []
@@ -267,19 +267,19 @@ required_rubygems_version: !ruby/object:Gem::Requirement
267
267
  requirements: []
268
268
 
269
269
  rubyforge_project: haml
270
- rubygems_version: 1.3.5
270
+ rubygems_version: 1.3.4
271
271
  signing_key:
272
272
  specification_version: 3
273
273
  summary: An elegant, structured XHTML/XML templating engine. Comes with Sass, a similar CSS templating engine.
274
274
  test_files:
275
275
  - test/sass/script_test.rb
276
276
  - test/sass/css2sass_test.rb
277
- - test/sass/plugin_test.rb
278
277
  - test/sass/functions_test.rb
279
278
  - test/sass/engine_test.rb
279
+ - test/sass/plugin_test.rb
280
280
  - test/haml/util_test.rb
281
- - test/haml/template_test.rb
281
+ - test/haml/spec/ruby_haml_test.rb
282
282
  - test/haml/html2haml_test.rb
283
+ - test/haml/template_test.rb
283
284
  - test/haml/helper_test.rb
284
- - test/haml/spec/ruby_haml_test.rb
285
285
  - test/haml/engine_test.rb