haml 2.2.21 → 2.2.22

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
@@ -78,7 +78,7 @@ task :install => [:package] do
78
78
  end
79
79
 
80
80
  desc "Release a new Haml package to Rubyforge."
81
- task :release => [:check_release, :package] do
81
+ task :release => [:check_release, :release_elpa, :package] do
82
82
  name = File.read(scope("VERSION_NAME")).strip
83
83
  version = File.read(scope("VERSION")).strip
84
84
  sh %{rubyforge add_release haml haml "#{name} (v#{version})" pkg/haml-#{version}.gem}
@@ -130,7 +130,7 @@ end
130
130
  # Ensures that the version have been updated for a new release.
131
131
  task :check_release do
132
132
  version = File.read(scope("VERSION")).strip
133
- #raise "There have been changes since current version (#{version})" if changed_since?(version)
133
+ raise "There have been changes since current version (#{version})" if changed_since?(version)
134
134
  raise "VERSION_NAME must not be 'Bleeding Edge'" if File.read(scope("VERSION_NAME")) == "Bleeding Edge"
135
135
  end
136
136
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.2.21
1
+ 2.2.22
@@ -38,3 +38,4 @@ end
38
38
 
39
39
  require 'haml/util'
40
40
  require 'haml/engine'
41
+ require 'haml/railtie'
@@ -100,8 +100,10 @@ module Haml
100
100
  if contains_interpolation?(text)
101
101
  return if options[:suppress_eval]
102
102
 
103
- push_script <<RUBY, :escape_html => false
104
- find_and_preserve(#{filter.inspect}.render_with_options(#{unescape_interpolation(text)}, _hamlout.options))
103
+ text = unescape_interpolation(text).gsub("\\n", "\n")
104
+ newline if text.gsub!(/\n"\Z/, "\\n\"")
105
+ push_script <<RUBY.strip, :escape_html => false
106
+ find_and_preserve(#{filter.inspect}.render_with_options(#{text}, _hamlout.options))
105
107
  RUBY
106
108
  return
107
109
  end
@@ -113,6 +115,10 @@ RUBY
113
115
  else
114
116
  push_text(rendered.rstrip)
115
117
  end
118
+
119
+ (text.count("\n") - 1).times {newline}
120
+ resolve_newlines
121
+ newline
116
122
  end
117
123
  end
118
124
 
@@ -252,7 +252,7 @@ MESSAGE
252
252
  #
253
253
  #
254
254
  # @param i [Fixnum] The number of tabs to use
255
- # @yield [] A block in which the indentation will be `i` spaces
255
+ # @yield A block in which the indentation will be `i` spaces
256
256
  def with_tabs(i)
257
257
  old_tabs = haml_buffer.tabulation
258
258
  haml_buffer.tabulation = i
@@ -99,7 +99,12 @@ module ActionView
99
99
  module Helpers
100
100
  module CaptureHelper
101
101
  def with_output_buffer_with_haml_xss(*args, &block)
102
- Haml::Util.html_safe(with_output_buffer_without_haml_xss(*args, &block))
102
+ res = with_output_buffer_without_haml_xss(*args, &block)
103
+ case res
104
+ when Array; res.map {|s| Haml::Util.html_safe(s)}
105
+ when String; Haml::Util.html_safe(res)
106
+ else; res
107
+ end
103
108
  end
104
109
  alias_method :with_output_buffer_without_haml_xss, :with_output_buffer
105
110
  alias_method :with_output_buffer, :with_output_buffer_with_haml_xss
@@ -189,7 +189,6 @@ END
189
189
  if flat?
190
190
  push_flat(@line)
191
191
  @line = @next_line
192
- newline
193
192
  next
194
193
  end
195
194
 
@@ -0,0 +1,14 @@
1
+ # This file is here to integrate with Rails 3,
2
+ # since there's no better way to do so as of 14 March 2010.
3
+ # Yehuda promises there will be soon,
4
+ # and once there is we should switch to that.
5
+
6
+ if defined?(Rails::Railtie)
7
+ module Haml
8
+ class Railtie < Rails::Railtie
9
+ initializer :haml do
10
+ Haml.init_rails(binding)
11
+ end
12
+ end
13
+ end
14
+ end
@@ -33,6 +33,38 @@ module Haml
33
33
  end
34
34
  end
35
35
  end
36
+
37
+ # Rails 3.0 prints a deprecation warning when block helpers
38
+ # return strings that go unused.
39
+ # We want to print the same deprecation warning,
40
+ # so we have to compile in a method call to check for it.
41
+ #
42
+ # I don't like having this in the precompiler pipeline,
43
+ # and I'd like to get rid of it once Rails 3.1 is well-established.
44
+ if defined?(ActionView::OutputBuffer) &&
45
+ Haml::Util.has?(:instance_method, ActionView::OutputBuffer, :append_if_string=)
46
+ module Precompiler
47
+ def push_silent_with_haml_block_deprecation(text, can_suppress = false)
48
+ unless can_suppress && block_opened? && !mid_block_keyword?("- #{text}") &&
49
+ text =~ ActionView::Template::Handlers::Erubis::BLOCK_EXPR
50
+ return push_silent_without_haml_block_deprecation(text, can_suppress)
51
+ end
52
+
53
+ push_silent_without_haml_block_deprecation("_hamlout.append_if_string= #{text}", can_suppress)
54
+ end
55
+ alias_method :push_silent_without_haml_block_deprecation, :push_silent
56
+ alias_method :push_silent, :push_silent_with_haml_block_deprecation
57
+ end
58
+
59
+ class Buffer
60
+ def append_if_string=(value)
61
+ if value.is_a?(String) && !value.is_a?(ActionView::NonConcattingString)
62
+ ActiveSupport::Deprecation.warn("- style block helpers are deprecated. Please use =", caller)
63
+ buffer << value
64
+ end
65
+ end
66
+ end
67
+ end
36
68
  end
37
69
 
38
70
  if defined? ActionView::Template and ActionView::Template.respond_to? :register_template_handler
@@ -210,9 +210,10 @@ module Haml
210
210
  # With older versions of the Rails XSS-safety mechanism,
211
211
  # this destructively modifies the HTML-safety of `text`.
212
212
  #
213
- # @param text [String]
214
- # @return [String] `text`, marked as HTML-safe
213
+ # @param text [String, nil]
214
+ # @return [String, nil] `text`, marked as HTML-safe
215
215
  def html_safe(text)
216
+ return unless text
216
217
  return text.html_safe if defined?(ActiveSupport::SafeBuffer)
217
218
  text.html_safe!
218
219
  end
@@ -80,6 +80,11 @@ MESSAGE
80
80
  "!!!\n\n bar" => ["Illegal nesting: nesting within a header command is illegal.", 3],
81
81
  "foo\n:ruby\n 1\n 2\n 3\n- raise 'foo'" => ["foo", 6],
82
82
  "foo\n:erb\n 1\n 2\n 3\n- raise 'foo'" => ["foo", 6],
83
+ "foo\n:plain\n 1\n 2\n 3\n- raise 'foo'" => ["foo", 6],
84
+ "foo\n:plain\n 1\n 2\n 3\n4\n- raise 'foo'" => ["foo", 7],
85
+ "foo\n:plain\n 1\n 2\n 3\#{''}\n- raise 'foo'" => ["foo", 6],
86
+ "foo\n:plain\n 1\n 2\n 3\#{''}\n4\n- raise 'foo'" => ["foo", 7],
87
+ "foo\n:plain\n 1\n 2\n \#{raise 'foo'}" => ["foo", 5],
83
88
  "= raise 'foo'\nfoo\nbar\nbaz\nbang" => ["foo", 1],
84
89
  }
85
90
 
@@ -599,8 +604,9 @@ HAML
599
604
  <p>foo-end</p>
600
605
  <p>bar-end</p>
601
606
  HTML
602
- - "foo-end-bar-end".gsub(/\\w+-end/) do |s|
607
+ - ("foo-end-bar-end".gsub(/\\w+-end/) do |s|
603
608
  %p= s
609
+ - end; nil)
604
610
  HAML
605
611
  end
606
612
 
@@ -131,7 +131,14 @@ HAML
131
131
  end
132
132
 
133
133
  def test_capture_haml
134
- assert_equal("\"<p>13</p>\\n\"\n", render("- foo = capture_haml(13) do |a|\n %p= a\n= foo.dump"))
134
+ assert_equal(<<HTML, render(<<HAML))
135
+ "<p>13</p>\\n"
136
+ HTML
137
+ - (foo = capture_haml(13) do |a|
138
+ %p= a
139
+ - end; nil)
140
+ = foo.dump
141
+ HAML
135
142
  end
136
143
 
137
144
  def test_content_tag_block
@@ -77,6 +77,9 @@ class TemplateTest < Test::Unit::TestCase
77
77
  base.send(:_evaluate_assigns_and_ivars)
78
78
  end
79
79
 
80
+ # This is needed by RJS in (at least) Rails 3
81
+ base.instance_variable_set('@template', base)
82
+
80
83
  # This is used by form_for.
81
84
  # It's usually provided by ActionController::Base.
82
85
  def base.protect_against_forgery?; false; end
@@ -211,10 +214,13 @@ baz
211
214
  HTML
212
215
  %p
213
216
  foo
214
- - with_output_buffer do
217
+ -# Parenthesis required due to Rails 3.0 deprecation of block helpers
218
+ -# that return strings.
219
+ - (with_output_buffer do
215
220
  bar
216
221
  = "foo".gsub(/./) do |s|
217
222
  - "flup"
223
+ - end; nil)
218
224
  baz
219
225
  HAML
220
226
  end
@@ -250,6 +256,28 @@ END
250
256
  end
251
257
  end
252
258
 
259
+ if defined?(ActionView::OutputBuffer) &&
260
+ Haml::Util.has?(:instance_method, ActionView::OutputBuffer, :append_if_string=)
261
+ def test_av_block_deprecation_warning
262
+ assert_warning(/^DEPRECATION WARNING: - style block helpers are deprecated\. Please use =\./) do
263
+ assert_equal <<HTML, render(<<HAML, :action_view)
264
+ <form action="" method="post">
265
+ Title:
266
+ <input id="article_title" name="article[title]" size="30" type="text" value="Hello" />
267
+ Body:
268
+ <input id="article_body" name="article[body]" size="30" type="text" value="World" />
269
+ </form>
270
+ HTML
271
+ - form_for :article, @article, :url => '' do |f|
272
+ Title:
273
+ = f.text_field :title
274
+ Body:
275
+ = f.text_field :body
276
+ HAML
277
+ end
278
+ end
279
+ end
280
+
253
281
  ## XSS Protection Tests
254
282
 
255
283
  # In order to enable these, either test against Rails 3.0
@@ -344,6 +372,15 @@ HTML
344
372
  = f.text_field :title
345
373
  Body:
346
374
  = f.text_field :body
375
+ HAML
376
+ end
377
+
378
+ def test_rjs
379
+ assert_equal(<<HTML, render(<<HAML, :action_view))
380
+ window.location.reload();
381
+ HTML
382
+ = update_page do |p|
383
+ - p.reload
347
384
  HAML
348
385
  end
349
386
  end
@@ -1,3 +1,7 @@
1
1
  %h1 Partial layout used with for block:
2
- - render :layout => 'layout_for_partial.haml' do
3
- %p Some content within a layout
2
+ - if Haml::Util.ap_geq_3?
3
+ = render :layout => 'layout_for_partial.haml' do
4
+ %p Some content within a layout
5
+ - else
6
+ - render :layout => 'layout_for_partial.haml' do
7
+ %p Some content within a layout
@@ -24,7 +24,12 @@ class Test::Unit::TestCase
24
24
  def assert_warning(message)
25
25
  the_real_stderr, $stderr = $stderr, StringIO.new
26
26
  yield
27
- assert_equal message.strip, $stderr.string.strip
27
+
28
+ if message.is_a?(Regexp)
29
+ assert_match message, $stderr.string.strip
30
+ else
31
+ assert_equal message.strip, $stderr.string.strip
32
+ end
28
33
  ensure
29
34
  $stderr = the_real_stderr
30
35
  end
metadata CHANGED
@@ -1,7 +1,12 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haml
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.21
4
+ prerelease: false
5
+ segments:
6
+ - 2
7
+ - 2
8
+ - 22
9
+ version: 2.2.22
5
10
  platform: ruby
6
11
  authors:
7
12
  - Nathan Weizenbaum
@@ -10,29 +15,37 @@ autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
17
 
13
- date: 2010-03-12 00:00:00 -08:00
18
+ date: 2010-03-22 00:00:00 -07:00
14
19
  default_executable:
15
20
  dependencies:
16
21
  - !ruby/object:Gem::Dependency
17
22
  name: yard
18
- type: :development
19
- version_requirement:
20
- version_requirements: !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
21
25
  requirements:
22
26
  - - ">="
23
27
  - !ruby/object:Gem::Version
28
+ segments:
29
+ - 0
30
+ - 5
31
+ - 3
24
32
  version: 0.5.3
25
- version:
33
+ type: :development
34
+ version_requirements: *id001
26
35
  - !ruby/object:Gem::Dependency
27
36
  name: maruku
28
- type: :development
29
- version_requirement:
30
- version_requirements: !ruby/object:Gem::Requirement
37
+ prerelease: false
38
+ requirement: &id002 !ruby/object:Gem::Requirement
31
39
  requirements:
32
40
  - - ">="
33
41
  - !ruby/object:Gem::Version
42
+ segments:
43
+ - 0
44
+ - 5
45
+ - 9
34
46
  version: 0.5.9
35
- version:
47
+ type: :development
48
+ version_requirements: *id002
36
49
  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"
37
50
  email: haml@googlegroups.com
38
51
  executables:
@@ -43,203 +56,204 @@ executables:
43
56
  extensions: []
44
57
 
45
58
  extra_rdoc_files:
46
- - VERSION
47
- - MIT-LICENSE
48
- - README.md
49
59
  - VERSION_NAME
50
- - REVISION
51
60
  - CONTRIBUTING
61
+ - README.md
52
62
  - REMEMBER
63
+ - MIT-LICENSE
64
+ - VERSION
65
+ - REVISION
53
66
  files:
54
67
  - rails/init.rb
55
68
  - lib/sass.rb
56
- - lib/sass/plugin/rails.rb
57
- - lib/sass/plugin/rack.rb
58
- - lib/sass/plugin/merb.rb
69
+ - lib/sass/css.rb
70
+ - lib/sass/script/node.rb
71
+ - lib/sass/script/number.rb
72
+ - lib/sass/script/operation.rb
73
+ - lib/sass/script/literal.rb
74
+ - lib/sass/script/functions.rb
75
+ - lib/sass/script/bool.rb
76
+ - lib/sass/script/color.rb
77
+ - lib/sass/script/lexer.rb
78
+ - lib/sass/script/parser.rb
79
+ - lib/sass/script/variable.rb
80
+ - lib/sass/script/string.rb
81
+ - lib/sass/script/funcall.rb
82
+ - lib/sass/script/unary_operation.rb
59
83
  - lib/sass/script.rb
60
84
  - lib/sass/error.rb
85
+ - lib/sass/repl.rb
86
+ - lib/sass/tree/comment_node.rb
87
+ - lib/sass/tree/node.rb
61
88
  - lib/sass/tree/for_node.rb
62
- - lib/sass/tree/mixin_node.rb
63
- - lib/sass/tree/if_node.rb
64
- - lib/sass/tree/prop_node.rb
65
- - lib/sass/tree/mixin_def_node.rb
66
- - lib/sass/tree/variable_node.rb
67
89
  - lib/sass/tree/debug_node.rb
68
- - lib/sass/tree/directive_node.rb
69
- - lib/sass/tree/node.rb
70
- - lib/sass/tree/comment_node.rb
71
- - lib/sass/tree/rule_node.rb
72
90
  - lib/sass/tree/import_node.rb
73
91
  - lib/sass/tree/while_node.rb
92
+ - lib/sass/tree/mixin_def_node.rb
93
+ - lib/sass/tree/if_node.rb
94
+ - lib/sass/tree/mixin_node.rb
95
+ - lib/sass/tree/directive_node.rb
96
+ - lib/sass/tree/rule_node.rb
97
+ - lib/sass/tree/prop_node.rb
98
+ - lib/sass/tree/variable_node.rb
99
+ - lib/sass/plugin/rails.rb
100
+ - lib/sass/plugin/rack.rb
101
+ - lib/sass/plugin/merb.rb
102
+ - lib/sass/environment.rb
74
103
  - lib/sass/files.rb
75
- - lib/sass/plugin.rb
76
- - lib/sass/script/parser.rb
77
- - lib/sass/script/color.rb
78
- - lib/sass/script/string.rb
79
- - lib/sass/script/unary_operation.rb
80
- - lib/sass/script/number.rb
81
- - lib/sass/script/funcall.rb
82
- - lib/sass/script/variable.rb
83
- - lib/sass/script/functions.rb
84
- - lib/sass/script/bool.rb
85
- - lib/sass/script/lexer.rb
86
- - lib/sass/script/operation.rb
87
- - lib/sass/script/node.rb
88
- - lib/sass/script/literal.rb
89
- - lib/sass/css.rb
90
104
  - lib/sass/engine.rb
91
- - lib/sass/repl.rb
92
- - lib/sass/environment.rb
93
- - lib/haml/util.rb
105
+ - lib/sass/plugin.rb
106
+ - lib/haml/filters.rb
94
107
  - lib/haml/exec.rb
95
- - lib/haml/html.rb
108
+ - lib/haml/railtie.rb
96
109
  - lib/haml/error.rb
97
- - lib/haml/buffer.rb
98
110
  - lib/haml/template.rb
99
- - lib/haml/template/plugin.rb
111
+ - lib/haml/shared.rb
112
+ - lib/haml/engine.rb
113
+ - lib/haml/version.rb
100
114
  - lib/haml/template/patch.rb
115
+ - lib/haml/template/plugin.rb
101
116
  - lib/haml/helpers.rb
102
- - lib/haml/version.rb
103
- - lib/haml/filters.rb
104
- - lib/haml/engine.rb
117
+ - lib/haml/buffer.rb
118
+ - lib/haml/html.rb
105
119
  - lib/haml/precompiler.rb
106
- - lib/haml/shared.rb
107
- - lib/haml/helpers/action_view_extensions.rb
120
+ - lib/haml/util.rb
108
121
  - lib/haml/helpers/action_view_mods.rb
109
122
  - lib/haml/helpers/xss_mods.rb
123
+ - lib/haml/helpers/action_view_extensions.rb
110
124
  - lib/haml.rb
111
- - bin/css2sass
112
125
  - bin/sass
113
- - bin/haml
126
+ - bin/css2sass
114
127
  - bin/html2haml
128
+ - bin/haml
129
+ - test/linked_rails.rb
130
+ - test/benchmark.rb
115
131
  - test/sass/script_test.rb
132
+ - test/sass/css2sass_test.rb
133
+ - test/sass/results/units.css
134
+ - test/sass/results/parent_ref.css
135
+ - test/sass/results/compressed.css
136
+ - test/sass/results/complex.css
137
+ - test/sass/results/compact.css
138
+ - test/sass/results/mixins.css
139
+ - test/sass/results/line_numbers.css
140
+ - test/sass/results/alt.css
141
+ - test/sass/results/subdir/subdir.css
142
+ - test/sass/results/subdir/nested_subdir/nested_subdir.css
143
+ - test/sass/results/nested.css
144
+ - test/sass/results/import.css
145
+ - test/sass/results/multiline.css
146
+ - test/sass/results/script.css
147
+ - test/sass/results/basic.css
148
+ - test/sass/results/expanded.css
149
+ - test/sass/more_results/more_import.css
116
150
  - test/sass/more_results/more1_with_line_comments.css
117
151
  - test/sass/more_results/more1.css
118
- - test/sass/more_results/more_import.css
119
- - test/sass/templates/bork2.sass
152
+ - test/sass/templates/basic.sass
153
+ - test/sass/templates/bork.sass
120
154
  - test/sass/templates/compressed.sass
121
- - test/sass/templates/expanded.sass
122
155
  - test/sass/templates/import.sass
123
- - test/sass/templates/subdir/subdir.sass
124
- - test/sass/templates/subdir/nested_subdir/_nested_partial.sass
125
- - test/sass/templates/subdir/nested_subdir/nested_subdir.sass
126
- - test/sass/templates/basic.sass
156
+ - test/sass/templates/script.sass
157
+ - test/sass/templates/expanded.sass
158
+ - test/sass/templates/nested.sass
127
159
  - test/sass/templates/_partial.sass
128
- - test/sass/templates/units.sass
129
- - test/sass/templates/mixins.sass
130
- - test/sass/templates/multiline.sass
131
160
  - test/sass/templates/line_numbers.sass
132
- - test/sass/templates/nested.sass
133
161
  - test/sass/templates/compact.sass
162
+ - test/sass/templates/subdir/subdir.sass
163
+ - test/sass/templates/subdir/nested_subdir/nested_subdir.sass
164
+ - test/sass/templates/subdir/nested_subdir/_nested_partial.sass
165
+ - test/sass/templates/parent_ref.sass
134
166
  - test/sass/templates/alt.sass
135
- - test/sass/templates/script.sass
136
167
  - test/sass/templates/importee.sass
137
- - test/sass/templates/parent_ref.sass
138
- - test/sass/templates/bork.sass
168
+ - test/sass/templates/mixins.sass
169
+ - test/sass/templates/multiline.sass
170
+ - test/sass/templates/units.sass
139
171
  - test/sass/templates/complex.sass
140
- - test/sass/css2sass_test.rb
141
- - test/sass/plugin_test.rb
172
+ - test/sass/templates/bork2.sass
173
+ - test/sass/more_templates/_more_partial.sass
142
174
  - test/sass/more_templates/more1.sass
143
175
  - test/sass/more_templates/more_import.sass
144
- - test/sass/more_templates/_more_partial.sass
145
176
  - test/sass/functions_test.rb
146
- - test/sass/results/nested.css
147
- - test/sass/results/units.css
148
- - test/sass/results/script.css
149
- - test/sass/results/subdir/nested_subdir/nested_subdir.css
150
- - test/sass/results/subdir/subdir.css
151
- - test/sass/results/import.css
152
- - test/sass/results/compact.css
153
- - test/sass/results/expanded.css
154
- - test/sass/results/alt.css
155
- - test/sass/results/mixins.css
156
- - test/sass/results/complex.css
157
- - test/sass/results/compressed.css
158
- - test/sass/results/parent_ref.css
159
- - test/sass/results/line_numbers.css
160
- - test/sass/results/multiline.css
161
- - test/sass/results/basic.css
162
177
  - test/sass/engine_test.rb
178
+ - test/sass/plugin_test.rb
163
179
  - test/haml/mocks/article.rb
164
- - test/haml/util_test.rb
165
- - test/haml/template_test.rb
166
- - test/haml/html2haml_test.rb
167
- - test/haml/rhtml/_av_partial_1.rhtml
180
+ - test/haml/rhtml/_av_partial_2.rhtml
168
181
  - test/haml/rhtml/standard.rhtml
182
+ - test/haml/rhtml/_av_partial_1.rhtml
169
183
  - test/haml/rhtml/action_view.rhtml
170
- - test/haml/rhtml/_av_partial_2.rhtml
171
- - test/haml/helper_test.rb
172
- - test/haml/templates/action_view_ugly.haml
173
- - test/haml/templates/list.haml
174
- - test/haml/templates/_text_area.haml
175
- - test/haml/templates/_partial.haml
176
- - test/haml/templates/nuke_outer_whitespace.haml
177
- - test/haml/templates/render_layout.haml
178
- - test/haml/templates/_av_partial_2.haml
179
- - test/haml/templates/partial_layout.haml
180
- - test/haml/templates/helpful.haml
181
- - test/haml/templates/_av_partial_1_ugly.haml
182
- - test/haml/templates/just_stuff.haml
183
- - test/haml/templates/standard_ugly.haml
184
- - test/haml/templates/silent_script.haml
185
- - test/haml/templates/very_basic.haml
186
- - test/haml/templates/nuke_inner_whitespace.haml
187
- - test/haml/templates/eval_suppressed.haml
188
- - test/haml/templates/tag_parsing.haml
189
- - test/haml/templates/whitespace_handling.haml
190
- - test/haml/templates/partials.haml
191
- - test/haml/templates/standard.haml
192
- - test/haml/templates/partialize.haml
193
- - test/haml/templates/_layout_for_partial.haml
194
- - test/haml/templates/_av_partial_1.haml
195
- - test/haml/templates/filters.haml
196
- - test/haml/templates/_layout.erb
197
- - test/haml/templates/content_for_layout.haml
198
- - test/haml/templates/_av_partial_2_ugly.haml
199
- - test/haml/templates/helpers.haml
200
- - test/haml/templates/original_engine.haml
201
- - test/haml/templates/breakage.haml
202
- - test/haml/templates/action_view.haml
203
- - test/haml/spec/tests.json
204
- - test/haml/spec/lua_haml_spec.lua
184
+ - test/haml/util_test.rb
205
185
  - test/haml/spec/ruby_haml_test.rb
206
186
  - test/haml/spec/README.md
187
+ - test/haml/spec/lua_haml_spec.lua
188
+ - test/haml/spec/tests.json
189
+ - test/haml/html2haml_test.rb
190
+ - test/haml/template_test.rb
191
+ - test/haml/helper_test.rb
192
+ - test/haml/results/tag_parsing.xhtml
207
193
  - test/haml/results/content_for_layout.xhtml
208
- - test/haml/results/just_stuff.xhtml
209
- - test/haml/results/whitespace_handling.xhtml
210
- - test/haml/results/nuke_outer_whitespace.xhtml
211
- - test/haml/results/silent_script.xhtml
212
- - test/haml/results/filters.xhtml
213
- - test/haml/results/standard.xhtml
214
- - test/haml/results/nuke_inner_whitespace.xhtml
215
- - test/haml/results/helpful.xhtml
194
+ - test/haml/results/helpers.xhtml
195
+ - test/haml/results/original_engine.xhtml
216
196
  - test/haml/results/very_basic.xhtml
217
- - test/haml/results/eval_suppressed.xhtml
197
+ - test/haml/results/helpful.xhtml
198
+ - test/haml/results/list.xhtml
218
199
  - test/haml/results/partials.xhtml
200
+ - test/haml/results/eval_suppressed.xhtml
201
+ - test/haml/results/nuke_inner_whitespace.xhtml
202
+ - test/haml/results/whitespace_handling.xhtml
219
203
  - test/haml/results/render_layout.xhtml
220
- - test/haml/results/original_engine.xhtml
221
- - test/haml/results/helpers.xhtml
222
- - test/haml/results/list.xhtml
204
+ - test/haml/results/silent_script.xhtml
205
+ - test/haml/results/standard.xhtml
206
+ - test/haml/results/just_stuff.xhtml
223
207
  - test/haml/results/partial_layout.xhtml
224
- - test/haml/results/tag_parsing.xhtml
208
+ - test/haml/results/filters.xhtml
209
+ - test/haml/results/nuke_outer_whitespace.xhtml
225
210
  - test/haml/markaby/standard.mab
211
+ - test/haml/templates/tag_parsing.haml
212
+ - test/haml/templates/nuke_inner_whitespace.haml
213
+ - test/haml/templates/partial_layout.haml
214
+ - test/haml/templates/_av_partial_2_ugly.haml
215
+ - test/haml/templates/partials.haml
216
+ - test/haml/templates/_layout_for_partial.haml
217
+ - test/haml/templates/original_engine.haml
218
+ - test/haml/templates/helpers.haml
219
+ - test/haml/templates/_layout.erb
220
+ - test/haml/templates/action_view_ugly.haml
221
+ - test/haml/templates/content_for_layout.haml
222
+ - test/haml/templates/silent_script.haml
223
+ - test/haml/templates/very_basic.haml
224
+ - test/haml/templates/render_layout.haml
225
+ - test/haml/templates/filters.haml
226
+ - test/haml/templates/_av_partial_1.haml
227
+ - test/haml/templates/standard_ugly.haml
228
+ - test/haml/templates/_partial.haml
229
+ - test/haml/templates/nuke_outer_whitespace.haml
230
+ - test/haml/templates/breakage.haml
231
+ - test/haml/templates/list.haml
232
+ - test/haml/templates/standard.haml
233
+ - test/haml/templates/whitespace_handling.haml
234
+ - test/haml/templates/eval_suppressed.haml
235
+ - test/haml/templates/action_view.haml
236
+ - test/haml/templates/_av_partial_2.haml
237
+ - test/haml/templates/partialize.haml
238
+ - test/haml/templates/just_stuff.haml
239
+ - test/haml/templates/helpful.haml
240
+ - test/haml/templates/_av_partial_1_ugly.haml
241
+ - test/haml/templates/_text_area.haml
226
242
  - test/haml/engine_test.rb
227
- - test/linked_rails.rb
228
- - test/benchmark.rb
229
243
  - test/test_helper.rb
230
- - extra/sass-mode.el
231
244
  - extra/haml-mode.el
245
+ - extra/sass-mode.el
232
246
  - extra/update_watch.rb
233
247
  - Rakefile
234
248
  - init.rb
235
249
  - .yardopts
236
- - VERSION
237
- - MIT-LICENSE
238
- - README.md
239
250
  - VERSION_NAME
240
- - REVISION
241
251
  - CONTRIBUTING
252
+ - README.md
242
253
  - REMEMBER
254
+ - MIT-LICENSE
255
+ - VERSION
256
+ - REVISION
243
257
  has_rdoc: true
244
258
  homepage: http://haml-lang.com/
245
259
  licenses: []
@@ -260,30 +274,32 @@ required_ruby_version: !ruby/object:Gem::Requirement
260
274
  requirements:
261
275
  - - ">="
262
276
  - !ruby/object:Gem::Version
277
+ segments:
278
+ - 0
263
279
  version: "0"
264
- version:
265
280
  required_rubygems_version: !ruby/object:Gem::Requirement
266
281
  requirements:
267
282
  - - ">="
268
283
  - !ruby/object:Gem::Version
284
+ segments:
285
+ - 0
269
286
  version: "0"
270
- version:
271
287
  requirements: []
272
288
 
273
289
  rubyforge_project: haml
274
- rubygems_version: 1.3.5
290
+ rubygems_version: 1.3.6
275
291
  signing_key:
276
292
  specification_version: 3
277
293
  summary: An elegant, structured XHTML/XML templating engine. Comes with Sass, a similar CSS templating engine.
278
294
  test_files:
279
295
  - test/sass/script_test.rb
280
296
  - test/sass/css2sass_test.rb
281
- - test/sass/plugin_test.rb
282
297
  - test/sass/functions_test.rb
283
298
  - test/sass/engine_test.rb
299
+ - test/sass/plugin_test.rb
284
300
  - test/haml/util_test.rb
285
- - test/haml/template_test.rb
301
+ - test/haml/spec/ruby_haml_test.rb
286
302
  - test/haml/html2haml_test.rb
303
+ - test/haml/template_test.rb
287
304
  - test/haml/helper_test.rb
288
- - test/haml/spec/ruby_haml_test.rb
289
305
  - test/haml/engine_test.rb