haml 1.0.2 → 1.0.3

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
@@ -73,7 +73,11 @@ if is_task?('package', 'repackage', 'clobber_package')
73
73
  spec.test_files = FileList['test/**/*_test.rb'].to_a
74
74
  end
75
75
 
76
- Rake::GemPackageTask.new(spec) { |pkg| }
76
+ Rake::GemPackageTask.new(spec) do |pkg|
77
+ pkg.need_zip = true
78
+ pkg.need_tar_gz = true
79
+ pkg.need_tar_bz2 = true
80
+ end
77
81
  end
78
82
 
79
83
  # ----- Benchmarking -----
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.0.2
1
+ 1.0.3
@@ -1,6 +1,7 @@
1
1
  begin
2
2
  require 'rubygems'
3
3
  require 'active_support'
4
+ require 'action_controller'
4
5
  require 'action_view'
5
6
  action_view_included = true
6
7
  rescue LoadError
@@ -93,7 +93,7 @@ class HelperTest < Test::Unit::TestCase
93
93
  # two behaviors.
94
94
 
95
95
  result = render("- form_tag 'foo' do\n %p bar\n %strong baz", :action_view)
96
- new_rails = "<form action=\"foo\" method=\"post\">\n <p>foo</p>\n</form>\n"
96
+ new_rails = "<form action=\"foo\" method=\"post\">\n <p>bar</p>\n <strong>baz</strong>\n</form>"
97
97
  old_rails = ""
98
98
  assert(result == new_rails || result == old_rails)
99
99
  end
@@ -50,7 +50,7 @@
50
50
  <li>z</li>
51
51
  </ul>
52
52
  <h1>I can catch errors!</h1>
53
- Oh no! "uninitialized constant Foo" happened!
53
+ Oh no! "undefined method `silly' for String:Class" happened!
54
54
  <p>
55
55
  "false" is:
56
56
  false
@@ -8,7 +8,7 @@
8
8
  %li= i
9
9
  %h1 I can catch errors!
10
10
  - begin
11
- - Foo.silly
11
+ - String.silly
12
12
  - rescue NameError => e
13
13
  = "Oh no! \"#{e}\" happened!"
14
14
  %p
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
3
3
  specification_version: 1
4
4
  name: haml
5
5
  version: !ruby/object:Gem::Version
6
- version: 1.0.2
7
- date: 2007-01-02 00:00:00 -08:00
6
+ version: 1.0.3
7
+ date: 2007-01-18 00:00:00 -08:00
8
8
  summary: An elegant, structured XHTML/XML templating engine.
9
9
  require_paths:
10
10
  - lib
@@ -47,6 +47,7 @@ files:
47
47
  - test/runner.rb
48
48
  - test/benchmark.rb
49
49
  - test/template_test.rb
50
+ - test/results/silent_script.xhtml
50
51
  - test/results/whitespace_handling.xhtml
51
52
  - test/results/eval_suppressed.xhtml
52
53
  - test/results/very_basic.xhtml
@@ -58,21 +59,20 @@ files:
58
59
  - test/results/helpful.xhtml
59
60
  - test/results/partials.xhtml
60
61
  - test/results/standard.xhtml
61
- - test/results/silent_script.xhtml
62
62
  - test/results/helpers.xhtml
63
63
  - test/rhtml/standard.rhtml
64
64
  - test/mocks/article.rb
65
+ - test/templates/eval_suppressed.haml
65
66
  - test/templates/standard.haml
66
67
  - test/templates/helpful.haml
67
- - test/templates/whitespace_handling.haml
68
68
  - test/templates/helpers.haml
69
+ - test/templates/whitespace_handling.haml
69
70
  - test/templates/partialize.haml
70
- - test/templates/eval_suppressed.haml
71
- - test/templates/list.haml
72
71
  - test/templates/_text_area.haml
72
+ - test/templates/list.haml
73
+ - test/templates/silent_script.haml
73
74
  - test/templates/content_for_layout.haml
74
75
  - test/templates/partials.haml
75
- - test/templates/silent_script.haml
76
76
  - test/templates/very_basic.haml
77
77
  - test/templates/original_engine.haml
78
78
  - test/templates/_partial.haml