haml 3.2.0.alpha.4 → 3.2.0.alpha.5

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/REVISION CHANGED
@@ -1 +1 @@
1
- 5c22304b9d03505917f839dea9c84d39418e18d7
1
+ ffb73065aa2843b73b4a85766085cc93b9c8fd85
data/VERSION CHANGED
@@ -1 +1 @@
1
- 3.2.0.alpha.4
1
+ 3.2.0.alpha.5
@@ -54,7 +54,7 @@ end
54
54
  # Patching was necessary for versions <= 2.0.1,
55
55
  # but we can make it a normal handler for higher versions.
56
56
  if defined?(ActionView::TemplateHandler) ||
57
- (defined?(ActionView::Template) && defined?(ActionView::Template::Handler))
57
+ (defined?(ActionView::Template) && defined?(ActionView::Template::Handlers))
58
58
  require 'haml/template/plugin'
59
59
  else
60
60
  require 'haml/template/patch'
@@ -424,8 +424,11 @@ WARNING
424
424
  # For example, `:Error` will return `ActionView::TemplateError`
425
425
  # or `ActionView::Template::Error`.
426
426
  def av_template_class(name)
427
- return ActionView.const_get("Template#{name}") if ActionView.const_defined?("Template#{name}")
428
- return ActionView::Template.const_get(name.to_s)
427
+ if ActionView::Template.const_defined?(name)
428
+ ActionView::Template.const_get(name)
429
+ else
430
+ ActionView.const_get("Template#{name}")
431
+ end
429
432
  end
430
433
 
431
434
  ## Rails XSS Safety
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: 3.2.0.alpha.4
4
+ version: 3.2.0.alpha.5
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: 2011-06-07 00:00:00 -04:00
13
+ date: 2011-06-08 00:00:00 -04:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency